uboot/board/sunxi
Ian Campbell d9a2047641 sunxi: kconfig: Introduce CONFIG_TARGET_<BOARD>
This was done automatically with the following bits of scripting.

The Kconfig choice content was generated with this script snippet:
    for i in $(git grep -l CONFIG_ARCH_SUNXI configs/*) ; do
        TARGET=$(sed -n -e 's/CONFIG_SYS_EXTRA_OPTIONS="\([^,"]\+\).*/\1/p' $i);
        MACH=$(sed -n -e 's/.*CONFIG_\(MACH_SUN.I\)=./\1/p' $i)
        echo "config TARGET_$TARGET"
        echo "	bool \"$TARGET\""
        echo "	depends on $MACH"
        echo
    done

defconfigs were updated with a sed script (t):
    # Extract board from first entry of CONFIG_SYS_EXTRA_OPTIONS,
    /^CONFIG_SYS_EXTRA_OPTIONS/ {
        s/^\(CONFIG_SYS_EXTRA_OPTIONS="\)\([^,"]\+\),\?\(.*\)/\1\3\nCONFIG_TARGET_\2=y/;

        # Print and delete first line (CONFIG_SYS_EXTRA_OPTIONS), leaving
        # CONFIG_TARGET_<BOARD> in pattern space
        P;D;
    };

    # Move CONFIG_TARGET_<BOARD> to hold space
    /^CONFIG_TARGET/{h;n}

    # Print CONFIG_TARGET_<BOARD> after CONFIG_MACH_<SOC> in either SPL or
    # normal mode.
    /^CONFIG_MACH/{p;g;p;n};
    /^\+S:CONFIG_MACH/{p;g;s/^CONFIG_TARGET/+S:&/;p;n};

    # Print any remaining lines normally
    p;
Run as:
    sed -i -n -f t $(git grep -l CONFIG_ARCH_SUNXI configs/*)
and then manually removing the one instance of CONFIG_SYS_EXTRA_OPTIONS="" from
Colombus_defconfig

board/sunxi/Makefile was updated with:
    sed -e 's/^\(obj-\$(CONFIG_\)\(.*\)\().*+= dram_.*\)/\1TARGET_\2\3/g' board/sunxi/Makefile
and manually retabbing a few lines to line up again.

The board descriptions could certainly be improved.

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>
2014-11-05 13:09:58 +01:00
..
Kconfig sunxi: kconfig: Introduce CONFIG_TARGET_<BOARD> 2014-11-05 13:09:58 +01:00
MAINTAINERS ARM: sunxi: Fix Ippo-q8h-v5 defconfig filename 2014-11-05 13:09:57 +01:00
Makefile sunxi: kconfig: Introduce CONFIG_TARGET_<BOARD> 2014-11-05 13:09:58 +01:00
ahci.c ahci: provide sunxi SATA driver using AHCI platform framework 2014-07-31 15:37:22 +02:00
board.c sunxi: Use PG3 - PG8 as io-pins for mmc1 2014-10-24 09:35:38 +02:00
dram_a10_olinuxino_l.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_a10s_olinuxino_m.c sun5i: Add support for a number of new sun5i boards 2014-07-31 15:37:23 +02:00
dram_a13_oli_micro.c
dram_a13_olinuxino.c sun5i: Add support for a number of new sun5i boards 2014-07-31 15:37:23 +02:00
dram_a20_olinuxino_l.c sun7i: Add support for Olimex A20-OLinuXino-LIME 2014-09-05 08:30:38 +01:00
dram_a20_olinuxino_l2.c sun7i: Add support for Olimex A20-OLinuXino-LIME2 2014-10-24 09:35:37 +02:00
dram_bananapi.c sun7i: Add bananapi board 2014-07-31 15:37:24 +02:00
dram_cubieboard.c
dram_cubieboard2.c sunxi: add Cubieboard2 support 2014-07-18 19:42:23 +01:00
dram_cubietruck.c
dram_linksprite_pcduino3.c sun7i: Add support for a number of new sun7i boards 2014-07-31 15:37:23 +02:00
dram_r7dongle.c
dram_sun4i_360_512.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun4i_360_1024_iow8.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun4i_360_1024_iow16.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun4i_384_1024_iow8.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun7i_384_512_busw16_iow16.c sun7i: Add support for a number of new sun7i boards 2014-07-31 15:37:23 +02:00
dram_sun7i_384_1024_iow16.c sun7i: Add support for a number of new sun7i boards 2014-07-31 15:37:23 +02:00
gmac.c sunxi: Fix gmac not working reliable on the Bananapi 2014-10-08 11:19:46 -04:00