summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-03 10:41:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-07 15:12:00 +0000
commitc960514cc02fc02950c2ad52a1e39ff65a04e83d (patch)
tree92058030ab22c5022e7ac1ced9bba27f5d67f36d
parent369ef217ff8a0a765b80cf0bfaaf30dcd2669b13 (diff)
downloadpoky-c960514cc02fc02950c2ad52a1e39ff65a04e83d.tar.gz
dhcp/ruby/ffpmeg: Use CFLAGS, not TARGET_CFLAGS
There isn't anything specific about the target in these cases an in general recipes should touch CFLAGS. This ensures people don't copy/paste bad example usages. In reality, behaviour is mostly unchanged. (From OE-Core rev: ae6e7dd19b6da81090a38792dfdf31b459290466) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp.inc2
-rw-r--r--meta/recipes-devtools/ruby/ruby.inc2
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_4.2.1.bb4
3 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index 18bbaf8841..c4697beaf1 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -43,7 +43,7 @@ INITSCRIPT_PACKAGES = "dhcp-server"
43INITSCRIPT_NAME_dhcp-server = "dhcp-server" 43INITSCRIPT_NAME_dhcp-server = "dhcp-server"
44INITSCRIPT_PARAMS_dhcp-server = "defaults" 44INITSCRIPT_PARAMS_dhcp-server = "defaults"
45 45
46TARGET_CFLAGS += "-D_GNU_SOURCE" 46CFLAGS += "-D_GNU_SOURCE"
47EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \ 47EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \
48 --with-srv6-lease-file=${localstatedir}/lib/dhcp/dhcpd6.leases \ 48 --with-srv6-lease-file=${localstatedir}/lib/dhcp/dhcpd6.leases \
49 --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \ 49 --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \
diff --git a/meta/recipes-devtools/ruby/ruby.inc b/meta/recipes-devtools/ruby/ruby.inc
index c0ceb1c10b..ce1b02f012 100644
--- a/meta/recipes-devtools/ruby/ruby.inc
+++ b/meta/recipes-devtools/ruby/ruby.inc
@@ -35,6 +35,6 @@ inherit autotools ptest
35# built. 35# built.
36 36
37do_configure_prepend() { 37do_configure_prepend() {
38 sed -i "s#%%TARGET_CFLAGS%%#$TARGET_CFLAGS#; s#%%TARGET_LDFLAGS%%#$TARGET_LDFLAGS#" ${S}/common.mk 38 sed -i "s#%%TARGET_CFLAGS%%#$CFLAGS#; s#%%TARGET_LDFLAGS%%#$LDFLAGS#" ${S}/common.mk
39 rm -rf ${S}/ruby/ 39 rm -rf ${S}/ruby/
40} 40}
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.2.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.2.1.bb
index ec306afaaa..5ac18ba3f1 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.2.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.2.1.bb
@@ -102,8 +102,8 @@ EXTRA_OECONF = " \
102 --arch=${TARGET_ARCH} \ 102 --arch=${TARGET_ARCH} \
103 --target-os="linux" \ 103 --target-os="linux" \
104 --enable-cross-compile \ 104 --enable-cross-compile \
105 --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ 105 --extra-cflags="${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
106 --extra-ldflags="${TARGET_LDFLAGS}" \ 106 --extra-ldflags="${LDFLAGS}" \
107 --sysroot="${STAGING_DIR_TARGET}" \ 107 --sysroot="${STAGING_DIR_TARGET}" \
108 ${EXTRA_FFCONF} \ 108 ${EXTRA_FFCONF} \
109 --libdir=${libdir} \ 109 --libdir=${libdir} \