u-boot-tools: Add capability of building from out-of-tree

This patch also helps to build with EXTERNALSRC.

(From OE-Core rev: 8bd7a19b0177cc842d0fabfb9a602208c0617d9e)

Signed-off-by: Daisuke Yamane <yamane07ynct@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Daisuke Yamane 2020-01-23 10:33:32 +00:00 committed by Richard Purdie
parent e223f7cbb1
commit dd2f172fe1

View 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 () {