]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
skeleton/service: Ensure debug path handling works as intended
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Aug 2022 09:30:25 +0000 (10:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2022 18:57:28 +0000 (19:57 +0100)
DEBUG_PREFIX_MAP uses ${S} but that wasn't set correctly for this
recipe meaning cwd during the build (WORKDIR) was encoded into the
binary leading to buildpath warnings in debug symbols. Set S correctly
to avoid this issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-skeleton/recipes-skeleton/service/service_0.1.bb

index d1d8c5f3656fd78818a042117c6e13dba07eeb9d..912f6b0f6111a6bfffe1e7ed8192077e58060e7b 100644 (file)
@@ -9,6 +9,8 @@ SRC_URI = "file://skeleton \
           file://COPYRIGHT \
           "
 
+S = "${WORKDIR}"
+
 do_compile () {
        ${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/skeleton_test.c -o ${WORKDIR}/skeleton-test
 }