diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2014-10-25 00:20:50 +0400 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2014-11-05 15:09:58 +0300 |
commit | cbdd9a9737cc598838b071dd57ec8315a7625cc8 (patch) | |
tree | 6e3e7e309238d9f2960bf03f85b3e1c567efb97d | |
parent | d9a204764132c6c0ed1824c54d90721e17e53adf (diff) | |
download | u-boot-cbdd9a9737cc598838b071dd57ec8315a7625cc8.tar.xz |
sunxi: kconfig: Add %_felconfig rule to enable FEL build of sunxi platforms.
$ make BOARD_felconfig
is more convenient than
$ make BOARD_defconfig
$ echo CONFIG_SPL_FEL=y >> .config
$ echo CONFIG_SPL_FEL=y >> spl/.config
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | scripts/multiconfig.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh index 3e3040b2e2..70f3a5df6f 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;; |