diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-11 11:46:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-21 12:08:04 +0100 |
commit | c6c1ed6ba0b7e529d955eeda71c4a66317fa1331 (patch) | |
tree | 4174c13f698b7dc06aa400bec834ebdbab8a13f5 /meta | |
parent | 4758e1c43aa4327d452a9470d59a01c04f6cb736 (diff) | |
download | poky-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.bb | 9 |
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 @@ | |||
1 | SUMMARY = "A small utility for printing debug source file locations embedded in binaries" | 1 | SUMMARY = "A small utility for printing debug source file locations embedded in binaries" |
2 | DESCRIPTION = "${SUMMARY}" | 2 | DESCRIPTION = "${SUMMARY}" |
3 | LICENSE = "GPL-2.0-or-later" | 3 | LICENSE = "GPL-2.0-or-later" |
4 | LIC_FILES_CHKSUM = "file://../dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8" | 4 | LIC_FILES_CHKSUM = "file://dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8" |
5 | 5 | ||
6 | SRC_URI = "file://dwarfsrcfiles.c" | 6 | SRC_URI = "file://dwarfsrcfiles.c" |
7 | BBCLASSEXTEND = "native" | 7 | BBCLASSEXTEND = "native" |
8 | DEPENDS = "elfutils" | 8 | DEPENDS = "elfutils" |
9 | DEPENDS:append:libc-musl = " argp-standalone" | 9 | DEPENDS:append:libc-musl = " argp-standalone" |
10 | 10 | ||
11 | S = "${WORKDIR}/sources" | ||
12 | UNPACKDIR = "${S}" | ||
13 | |||
11 | do_compile () { | 14 | do_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 | ||
15 | do_compile:libc-musl () { | 18 | do_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 | ||
19 | do_install () { | 22 | do_install () { |