summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-05-24 10:08:43 -0700
committerKhem Raj <raj.khem@gmail.com>2023-05-25 08:56:32 -0700
commit0d2df1e4c404fd93ee0095a15db00d17f2321e18 (patch)
treea604a08da67fc828c8844495059943ded8eecaf2 /meta-oe
parentaca77cfa3c0b6ba4ae011918bef7cadc7fe365db (diff)
downloadmeta-openembedded-0d2df1e4c404fd93ee0095a15db00d17f2321e18.tar.gz
minifi-cpp: Remove references to buildpaths in generated files
bison/flex emits line directives which can be safely removed from generated files. agent_version.h is generated by cmake which has build information like compiler and cflags etc. which contains buildpaths too, therefore replace real workdir with <WORKDIR> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb
index b76f120ee..9ae72d2e9 100644
--- a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb
+++ b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb
@@ -61,6 +61,8 @@ EXTRA_OECMAKE += " \
61 -DGCC_AR=${STAGING_BINDIR_TOOLCHAIN}/${AR} \ 61 -DGCC_AR=${STAGING_BINDIR_TOOLCHAIN}/${AR} \
62 -DGCC_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${RANLIB} \ 62 -DGCC_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${RANLIB} \
63 -DDISABLE_PYTHON_SCRIPTING=ON \ 63 -DDISABLE_PYTHON_SCRIPTING=ON \
64 -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \
65 -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines --file-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' \
64 " 66 "
65EXTRA_OECMAKE:append:toolchain-clang = " -DCMAKE_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ranlib" 67EXTRA_OECMAKE:append:toolchain-clang = " -DCMAKE_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ranlib"
66LDFLAGS:append:toolchain-clang = " -fuse-ld=lld" 68LDFLAGS:append:toolchain-clang = " -fuse-ld=lld"
@@ -88,6 +90,10 @@ do_configure:prepend:libc-musl() {
88 sed -i -e 's/-DHAVE_POSIX_STRERROR_R=0/-DHAVE_POSIX_STRERROR_R=1/' ${S}/CMakeLists.txt 90 sed -i -e 's/-DHAVE_POSIX_STRERROR_R=0/-DHAVE_POSIX_STRERROR_R=1/' ${S}/CMakeLists.txt
89} 91}
90 92
93do_configure:append() {
94 sed -i -e 's|${WORKDIR}|<WORKDIR>|g' ${S}/libminifi/include/agent/agent_version.h
95}
96
91CFLAGS:append:libc-glibc = " -D_GNU_SOURCE" 97CFLAGS:append:libc-glibc = " -D_GNU_SOURCE"
92CXXFLAGS:append:libc-glibc = " -D_GNU_SOURCE" 98CXXFLAGS:append:libc-glibc = " -D_GNU_SOURCE"
93 99