]> code.ossystems Code Review - openembedded-core.git/commitdiff
u-boot-tools: Add capability of building from out-of-tree
authorDaisuke Yamane <yamane07ynct@gmail.com>
Thu, 23 Jan 2020 10:33:32 +0000 (10:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jan 2020 16:38:54 +0000 (16:38 +0000)
This patch also helps to build with EXTERNALSRC.

Signed-off-by: Daisuke Yamane <yamane07ynct@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/u-boot/u-boot-tools_2020.01.bb

index bede984ef739733bbbad735e154c48ea7ff32673..414ee333fff0c873f1a2ef47339d333efeb4c912 100644 (file)
@@ -25,14 +25,14 @@ SED_CONFIG_EFI_armeb = ''
 SED_CONFIG_EFI_aarch64 = ''
 
 do_compile () {
-       oe_runmake sandbox_defconfig
+       oe_runmake -C ${S} sandbox_defconfig O=${B}
 
        # 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 -e "s/CONFIG_CMD_LICENSE=.*/# CONFIG_CMD_LICENSE is not set/" ${SED_CONFIG_EFI} .config
+       sed -i -e "s/CONFIG_CMD_LICENSE=.*/# CONFIG_CMD_LICENSE is not set/" ${SED_CONFIG_EFI} ${B}/.config
 
-       oe_runmake cross_tools NO_SDL=1
+       oe_runmake -C ${S} cross_tools NO_SDL=1 O=${B}
 }
 
 do_install () {