]> code.ossystems Code Review - openembedded-core.git/commitdiff
u-boot: Fix handling of CMD_LICENSE in u-boot-mkimage
authorMarek Vasut <marex@denx.de>
Tue, 28 Feb 2017 19:41:10 +0000 (20:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 Mar 2017 23:18:10 +0000 (23:18 +0000)
Only ever change the CMD_LICENSE in the u-boot config if it is enabled
to prevent corruption of the config file. In case the CMD_LICENSE was
already disabled, the sed substitution inserted another "# " in front
of the CMD_LICENSE which triggered a restart of Kconfig oldconfig and
failed the build.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb

index 66edae812f7b8d7c52627015c0bbdb2aab4a235f..c1102267108830c04636dfb3ab8e923e3542df2a 100644 (file)
@@ -13,7 +13,7 @@ do_compile () {
        # Disable CONFIG_CMD_LICENSE, license.h is not used by tools and
        # generating it requires bin2header tool, which for target build
        # is built with target tools and thus cannot be executed on host.
-       sed -i "s/CONFIG_CMD_LICENSE.*/# CONFIG_CMD_LICENSE is not set/" .config
+       sed -i "s/CONFIG_CMD_LICENSE=.*/# CONFIG_CMD_LICENSE is not set/" .config
 
        oe_runmake cross_tools NO_SDL=1
 }