diff options
author | Ross Burton <ross.burton@intel.com> | 2018-01-29 17:11:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-30 11:50:11 +0000 |
commit | 563a020870ee0e8212609639c74f19a0f4fc0847 (patch) | |
tree | bc39b9e94dd82161a84d8549b1ffc7ba8443f905 /meta/conf | |
parent | 34c6b6d2044b4611a6dcc855c99aeadaf1c0394d (diff) | |
download | poky-563a020870ee0e8212609639c74f19a0f4fc0847.tar.gz |
meta: don't use deprecated functions from utils.bbclass
These functions were moved to meta/lib/oe in 2010 and the base_* functions in
utils.bbclass were intended to be a short-term compatibility layer. They're
still used in a few places, so update the callers to use the new functions.
(From OE-Core rev: c97acbd034532895ce57c6717ed1b3ccc7900b0d)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 2 | ||||
-rw-r--r-- | meta/conf/distro/include/security_flags.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/qemuarm.conf | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 01416ba741..1473bfb082 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -220,7 +220,7 @@ EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}" | |||
220 | # Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" | 220 | # Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" |
221 | # otherwise it is the same as PN and P | 221 | # otherwise it is the same as PN and P |
222 | SPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -crosssdk -cross-canadian" | 222 | SPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -crosssdk -cross-canadian" |
223 | BPN = "${@base_prune_suffix(d.getVar('PN'), d.getVar('SPECIAL_PKGSUFFIX').split(), d)}" | 223 | BPN = "${@oe.utils.prune_suffix(d.getVar('PN'), d.getVar('SPECIAL_PKGSUFFIX').split(), d)}" |
224 | BP = "${BPN}-${PV}" | 224 | BP = "${BPN}-${PV}" |
225 | 225 | ||
226 | # Package info. | 226 | # Package info. |
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index ab2062b78f..7ea1049edf 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc | |||
@@ -9,7 +9,7 @@ GCCPIE ?= "--enable-default-pie" | |||
9 | 9 | ||
10 | # _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they use | 10 | # _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they use |
11 | # -O0 which then results in a compiler warning. | 11 | # -O0 which then results in a compiler warning. |
12 | lcl_maybe_fortify = "${@base_conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=2',d)}" | 12 | lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=2',d)}" |
13 | 13 | ||
14 | # Error on use of format strings that represent possible security problems | 14 | # Error on use of format strings that represent possible security problems |
15 | SECURITY_STRINGFORMAT ?= "-Wformat -Wformat-security -Werror=format-security" | 15 | SECURITY_STRINGFORMAT ?= "-Wformat -Wformat-security -Werror=format-security" |
diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf index c8932ddc59..aa112f5140 100644 --- a/meta/conf/machine/qemuarm.conf +++ b/meta/conf/machine/qemuarm.conf | |||
@@ -17,4 +17,4 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty" | |||
17 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy | 17 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy |
18 | QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet -device virtio-rng-pci" | 18 | QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet -device virtio-rng-pci" |
19 | PREFERRED_VERSION_linux-yocto ??= "4.12%" | 19 | PREFERRED_VERSION_linux-yocto ??= "4.12%" |
20 | QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}" | 20 | QB_DTB = "${@oe.utils.version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}" |