classes/u-boot: Update getVar syntax
PATCH 1/4 classes/u-boot: Update getVar syntax
This runs:
sed -e 's:\(\.getVar([^,()]*\)):\1, False):g' -i grep -ril getVar *
on the layer to update the getVar usages without an expand parameter, This ensures the layer continues to work with bitbake master.
There is no functionality change although some of these sites may benefit from expand=True.
--- classes/qoriq_build_64bit_kernel.bbclass | 14 +++++++------- recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-)
classes/qoriq_build_64bit_kernel.bbclass +7 -7
@@ -2,15 +2,15 @@ inherit distro_features_check REQUIRED_DISTRO_FEATURES_e6500 += "multiarch" python () { - promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + promote_kernel = d.getVar('BUILD_64BIT_KERNEL', False) if promote_kernel == "1": - sys_multilib = 'powerpc64' + d.getVar('TARGET_VENDOR') + 'mllib64-' + d.getVar('HOST_OS') - tc_options = d.getVar('TOOLCHAIN_OPTIONS') + '/../lib64-' + d.getVar("MACHINE") + sys_multilib = 'powerpc64' + d.getVar('TARGET_VENDOR', False) + 'mllib64-' + d.getVar('HOST_OS', False) + tc_options = d.getVar('TOOLCHAIN_OPTIONS', False) + '/../lib64-' + d.getVar("MACHINE", False) d.setVar('DEPENDS_append', ' lib64-gcc-cross-powerpc64 lib64-libgcc') - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/' + sys_multilib) - d.setVar('KERNEL_CC', d.getVar('CCACHE') + sys_multilib + '-' + 'gcc' + d.getVar('HOST_CC_KERNEL_ARCH') + tc_options) - d.setVar('KERNEL_LD', d.getVar('CCACHE') + sys_multilib + '-' + 'ld.bfd' + d.getVar('HOST_LD_KERNEL_ARCH') + tc_options) - d.setVar('KERNEL_AR', d.getVar('CCACHE') + sys_multilib + '-' + 'ar' + d.getVar('HOST_AR_KERNEL_ARCH')) + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib) + d.setVar('KERNEL_CC', d.getVar('CCACHE', False) + sys_multilib + '-' + 'gcc' + d.getVar('HOST_CC_KERNEL_ARCH', False) + tc_options) + d.setVar('KERNEL_LD', d.getVar('CCACHE', False) + sys_multilib + '-' + 'ld.bfd' + d.getVar('HOST_LD_KERNEL_ARCH', False) + tc_options) + d.setVar('KERNEL_AR', d.getVar('CCACHE', False) + sys_multilib + '-' + 'ar' + d.getVar('HOST_AR_KERNEL_ARCH', False)) error_qa = d.getVar('ERROR_QA', True) if 'arch' in error_qa:
recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb +3 -3
@@ -39,10 +39,10 @@ python () { if "e5500-64b:" in arch or "e6500-64b:" in arch: if not "lib32" in ml: raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") - sys_multilib = 'powerpc' + d.getVar('TARGET_VENDOR') + 'mllib32-' + d.getVar('HOST_OS') + sys_multilib = 'powerpc' + d.getVar('TARGET_VENDOR', False) + 'mllib32-' + d.getVar('HOST_OS', False) d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/' + sys_multilib) - d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib32-' + d.getVar("MACHINE")) + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib) + d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib32-' + d.getVar("MACHINE", False)) d.setVar("WRAP_TARGET_PREFIX", sys_multilib + '-') }
Signature · 1 line
2.4.3
PATCH 2/4 rename udev to eudev to align with change in poky
--- .../eudev/skip-rules-for-mmc-rpmb-partition.patch | 30 ++++++++++++++++ recipes-core/udev/eudev_3.1.5.bbappend | 6 ++++ .../udev/skip-rules-for-mmc-rpmb-partition.patch | 41 ---------------------- recipes-core/udev/udev_182.bbappend | 6 ---- 4 files changed, 36 insertions(+), 47 deletions(-) create mode 100644 recipes-core/udev/eudev/skip-rules-for-mmc-rpmb-partition.patch create mode 100644 recipes-core/udev/eudev_3.1.5.bbappend delete mode 100644 recipes-core/udev/udev/skip-rules-for-mmc-rpmb-partition.patch delete mode 100644 recipes-core/udev/udev_182.bbappend
recipes-core/udev/eudev/skip-rules-for-mmc-rpmb-partition.patch new file +30 -0
@@ -0,0 +1,30 @@ +skip rules for mmc rpmb partition + +Upstream-status: Pending + +In FSL SDK 1.6 Kernel, mmc driver has created a new partition +with "mmcblkXrpmb" if device expresses it support of RPMB. + +RPMB (Replay Protected Memory Block), A signed access to a Replay +Protected Memory Block is provided. This function provides means +for the system to store data to the specific memory area in an +authenticated and replay protected manner. + +In that case, any read/write access to this partition device will +report errors which will not impact any fuction. + +add rules to skip it. + +Signed-off-by: Ting Liu <[email protected]> +Signed-off-by: Zhenhua Luo <[email protected]> + +--- ./rules/60-persistent-storage.rules.orig 2016-03-01 21:07:13.304170363 -0600 ++++ ./rules/60-persistent-storage.rules 2016-03-01 21:07:32.784169668 -0600 +@@ -6,6 +6,7 @@ + ACTION=="remove", GOTO="persistent_storage_end" + + SUBSYSTEM!="block", GOTO="persistent_storage_end" ++KERNEL=="mmcblk*rpmb", GOTO="persistent_storage_end" + KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*", GOTO="persistent_storage_end" + + # ignore partitions that span the entire disk
recipes-core/udev/eudev_3.1.5.bbappend new file +6 -0
@@ -0,0 +1,6 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +SRC_URI_append_qoriq-ppc = " \ + file://skip-rules-for-mmc-rpmb-partition.patch \ +" +
recipes-core/udev/udev/skip-rules-for-mmc-rpmb-partition.patch deleted +0 -41
41 lines not on this page · raw message
recipes-core/udev/udev_182.bbappend deleted +0 -6
@@ -1,6 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" - -SRC_URI_append_qoriq-ppc = " \ - file://skip-rules-for-mmc-rpmb-partition.patch \ -" -
Signature · 1 line
2.4.3
PATCH 3/4 openssl: Explicitly set EXTRA_OEMAKE as required
In reply to Zhenhua LuoThe openssl recipe currently relies on EXTRA_OEMAKE having been set to "-e MAKEFLAGS=" in bitbake.conf to operate. It is necessary to make this explicit so that the default in bitbake.conf can be changed.
(Refer to OE-Core rev: a384ab5cb4701fd1c1475bca4449def66b42c799)
--- recipes-connectivity/openssl/openssl-qoriq.inc | 1 + 1 file changed, 1 insertion(+)
recipes-connectivity/openssl/openssl-qoriq.inc +1 -0
@@ -40,6 +40,7 @@ CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}" export DIRS = "crypto ssl apps" export EX_LIBS = "-lgcc -ldl" export AS = "${CC} -c" +EXTRA_OEMAKE = "-e MAKEFLAGS=" inherit pkgconfig siteinfo multilib_header
Signature · 1 line
2.4.3
PATCH 4/4 openssl-qoriq: remove EXTRA_OECONF from Configure
In reply to Zhenhua LuoThe value(--disable-static) of EXTRA_OECONF set by poky is not supported by openssl-qoriq-1.0.1i. remove it to fix the following build error:
| Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags] | WARNING: .../poky/p4080ds/tmp/work/ppce500mc-poky-linux/openssl-qoriq/1.0.1i-r0/temp/run.do_configure.3739:1 exit 1 from 'perl ./Configure --disable-static shared --prefix=$useprefix --openssldir=/usr/lib/ssl --libdir=`basename /usr/lib` $target' | ERROR: Function failed: do_configure (log file is located at .../poky/p4080ds/tmp/work/ppce500mc-poky-linux/openssl-qoriq/1.0.1i-r0/temp/log.do_configure.3739)
--- recipes-connectivity/openssl/openssl-qoriq.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-connectivity/openssl/openssl-qoriq.inc +1 -1
@@ -145,7 +145,7 @@ do_configure () { if [ "x$useprefix" = "x" ]; then useprefix=/ fi - perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=`basename ${libdir}` $target + perl ./Configure shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=`basename ${libdir}` $target } do_compile () {
Signature · 1 line
2.4.3