]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sunxi: kconfig: Add %_felconfig rule to enable FEL build of sunxi platforms.
authorIan Campbell <ijc@hellion.org.uk>
Fri, 24 Oct 2014 20:20:50 +0000 (21:20 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 5 Nov 2014 12:09:58 +0000 (13:09 +0100)
    $ 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>
scripts/multiconfig.sh

index 3e3040b2e2ab9210ebef73859b93e158d2875ecc..70f3a5df6f711081d9808cb67bd807a843164df9 100644 (file)
@@ -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;;