summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-fitimage.bbclass
diff options
context:
space:
mode:
authorAndré Draszik <adraszik@tycoint.com>2017-10-06 13:12:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:39:47 +0000
commit01e24eb47b493a1c5aa9fa1b851a4ba653c5e5db (patch)
tree3d54ea85d2b72806dbf2afcd4d5d67abc3c67111 /meta/classes/kernel-fitimage.bbclass
parent637fec385a446de21a0be218099f6a16421e08fa (diff)
downloadpoky-01e24eb47b493a1c5aa9fa1b851a4ba653c5e5db.tar.gz
kernel-fitimage: unbreak UBOOT_ENTRYSYMBOL support
- vmlinux is located in ${B}, not ${S}. - parsing of nm output got broken completely in commit b406a89935f148779569fa3770776e009dd51f13 ("kernel-fitimage: add initramfs support"), commit ec755d2524fcbd9dfded23a576f25c990d405a6c in yocto While at it, make awk exit on match to save a few CPU cycles. (From OE-Core rev: 1353892f3a130bcfa4e9c5b36b3ed7eb4a2c872d) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry picked from commit 9d2ec9c046c4a9c6a842d28133d40639f5a65297) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-fitimage.bbclass')
-rw-r--r--meta/classes/kernel-fitimage.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 6f1b7667bc..5583b4472e 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -97,8 +97,8 @@ fitimage_emit_section_kernel() {
97 97
98 ENTRYPOINT=${UBOOT_ENTRYPOINT} 98 ENTRYPOINT=${UBOOT_ENTRYPOINT}
99 if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then 99 if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then
100 ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \ 100 ENTRYPOINT=`${HOST_PREFIX}nm vmlinux | \
101 awk '$4=="${UBOOT_ENTRYSYMBOL}" {print $2}'` 101 awk '$3=="${UBOOT_ENTRYSYMBOL}" {print "0x"$1;exit}'`
102 fi 102 fi
103 103
104 cat << EOF >> ${1} 104 cat << EOF >> ${1}