summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaisuke Yamane <yamane07ynct@gmail.com>2019-12-06 10:13:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-09 11:56:41 +0000
commite63dc57f0950dbfc594efe8570333a16baadf51a (patch)
treea32092254cfa09498cd0511ea658c512e6d0de93
parent8c626421840da9441be03587a57e9cf1ebd3d6f0 (diff)
downloadopenembedded-core-contrib-e63dc57f0950dbfc594efe8570333a16baadf51a.tar.gz
openembedded-core-contrib-e63dc57f0950dbfc594efe8570333a16baadf51a.tar.bz2
openembedded-core-contrib-e63dc57f0950dbfc594efe8570333a16baadf51a.zip
u-boot-fw-utils: Add capability of building from out-of-tree
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>
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-fw-utils_2020.01.bb12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2020.01.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2020.01.bb
index 04321b7b66..7de91ffbd7 100644
--- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2020.01.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2020.01.bb
@@ -12,22 +12,22 @@ EXTRA_OEMAKE_class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
inherit uboot-config
do_compile () {
- oe_runmake ${UBOOT_MACHINE}
- oe_runmake envtools
+ oe_runmake -C ${S} ${UBOOT_MACHINE} O=${B}
+ oe_runmake -C ${S} envtools O=${B}
}
do_install () {
install -d ${D}${base_sbindir}
install -d ${D}${sysconfdir}
- install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
- install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
+ install -m 755 ${B}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
+ install -m 755 ${B}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
}
do_install_class-cross () {
install -d ${D}${bindir_cross}
- install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
- install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
+ install -m 755 ${B}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
+ install -m 755 ${B}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
}
SYSROOT_DIRS_append_class-cross = " ${bindir_cross}"