diff options
author | Daisuke Yamane <yamane07ynct@gmail.com> | 2019-12-06 10:13:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-09 12:00:43 +0000 |
commit | 50fec7cce59e74b999ae397cbe18f6e2f8f0e893 (patch) | |
tree | f479c168509382c33c366d85252b7aeb076d93f0 | |
parent | f901ea834c7043d714e865fc592c06fa63f00bf1 (diff) | |
download | poky-50fec7cce59e74b999ae397cbe18f6e2f8f0e893.tar.gz |
u-boot-fw-utils: Add capability of building from out-of-tree
This patch also helps to build with EXTERNALSRC.
(From OE-Core rev: e63dc57f0950dbfc594efe8570333a16baadf51a)
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.bb | 12 |
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' | |||
12 | inherit uboot-config | 12 | inherit uboot-config |
13 | 13 | ||
14 | do_compile () { | 14 | do_compile () { |
15 | oe_runmake ${UBOOT_MACHINE} | 15 | oe_runmake -C ${S} ${UBOOT_MACHINE} O=${B} |
16 | oe_runmake envtools | 16 | oe_runmake -C ${S} envtools O=${B} |
17 | } | 17 | } |
18 | 18 | ||
19 | do_install () { | 19 | do_install () { |
20 | install -d ${D}${base_sbindir} | 20 | install -d ${D}${base_sbindir} |
21 | install -d ${D}${sysconfdir} | 21 | install -d ${D}${sysconfdir} |
22 | install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv | 22 | install -m 755 ${B}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv |
23 | install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv | 23 | install -m 755 ${B}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv |
24 | install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config | 24 | install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config |
25 | } | 25 | } |
26 | 26 | ||
27 | do_install_class-cross () { | 27 | do_install_class-cross () { |
28 | install -d ${D}${bindir_cross} | 28 | install -d ${D}${bindir_cross} |
29 | install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv | 29 | install -m 755 ${B}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv |
30 | install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv | 30 | install -m 755 ${B}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv |
31 | } | 31 | } |
32 | 32 | ||
33 | SYSROOT_DIRS_append_class-cross = " ${bindir_cross}" | 33 | SYSROOT_DIRS_append_class-cross = " ${bindir_cross}" |