summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-11-05 07:23:32 -0500
committerTom Rini <trini@ti.com>2014-11-05 07:23:32 -0500
commitd5325eff10922acb11c39efece6d5f24de5b1998 (patch)
tree8ab0ce7214dcb242ab4edcc5d79f5ff78cd0446b /scripts
parent7417e7fdf2481320f1253393f6d560981849c9cb (diff)
parent44fd5914fb08ffcd96c9db7e448787f1d2aed801 (diff)
downloadu-boot-imx-d5325eff10922acb11c39efece6d5f24de5b1998.zip
u-boot-imx-d5325eff10922acb11c39efece6d5f24de5b1998.tar.gz
u-boot-imx-d5325eff10922acb11c39efece6d5f24de5b1998.tar.bz2
Merge git://www.denx.de/git/u-boot-sunxi
Diffstat (limited to 'scripts')
-rw-r--r--scripts/multiconfig.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh
index 3e3040b..70f3a5d 100644
--- a/scripts/multiconfig.sh
+++ b/scripts/multiconfig.sh
@@ -162,6 +162,16 @@ do_defconfig () {
fi
}
+do_board_felconfig () {
+ do_board_defconfig ${1%%_felconfig}_defconfig
+ if ! grep -q CONFIG_ARCH_SUNXI=y .config || ! grep -q CONFIG_SPL=y .config ; then
+ echo "$progname: Cannot felconfig a non-sunxi or non-SPL platform" >&2
+ exit 1
+ fi
+ sed -i -e 's/\# CONFIG_SPL_FEL is not set/CONFIG_SPL_FEL=y/g' \
+ .config spl/.config
+}
+
do_savedefconfig () {
if [ -r "$KCONFIG_CONFIG" ]; then
subimages=$(get_enabled_subimages)
@@ -323,6 +333,8 @@ target=$1
case $target in
*_defconfig)
do_board_defconfig $target;;
+*_felconfig)
+ do_board_felconfig $target;;
*_config)
# backward compatibility
do_board_defconfig ${target%_config}_defconfig;;