summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-11 11:46:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-21 12:08:04 +0100
commitc6c1ed6ba0b7e529d955eeda71c4a66317fa1331 (patch)
tree4174c13f698b7dc06aa400bec834ebdbab8a13f5 /meta
parent4758e1c43aa4327d452a9470d59a01c04f6cb736 (diff)
downloadpoky-c6c1ed6ba0b7e529d955eeda71c4a66317fa1331.tar.gz
dwarfsrcfiles: Switch to S = UNPACKDIR
Since the recipe uses a single source file, use UNPACKDIR = ${S}. (From OE-Core rev: e302088dc08b230fe841a3447348f4dd7eff964d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb b/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb
index c596497b8e..8e42b12b77 100644
--- a/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb
+++ b/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb
@@ -1,19 +1,22 @@
1SUMMARY = "A small utility for printing debug source file locations embedded in binaries" 1SUMMARY = "A small utility for printing debug source file locations embedded in binaries"
2DESCRIPTION = "${SUMMARY}" 2DESCRIPTION = "${SUMMARY}"
3LICENSE = "GPL-2.0-or-later" 3LICENSE = "GPL-2.0-or-later"
4LIC_FILES_CHKSUM = "file://../dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8" 4LIC_FILES_CHKSUM = "file://dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8"
5 5
6SRC_URI = "file://dwarfsrcfiles.c" 6SRC_URI = "file://dwarfsrcfiles.c"
7BBCLASSEXTEND = "native" 7BBCLASSEXTEND = "native"
8DEPENDS = "elfutils" 8DEPENDS = "elfutils"
9DEPENDS:append:libc-musl = " argp-standalone" 9DEPENDS:append:libc-musl = " argp-standalone"
10 10
11S = "${WORKDIR}/sources"
12UNPACKDIR = "${S}"
13
11do_compile () { 14do_compile () {
12 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw 15 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ${S}/dwarfsrcfiles.c -lelf -ldw
13} 16}
14 17
15do_compile:libc-musl () { 18do_compile:libc-musl () {
16 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw -largp 19 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ${S}/dwarfsrcfiles.c -lelf -ldw -largp
17} 20}
18 21
19do_install () { 22do_install () {