summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass2
-rw-r--r--classes/machine-overrides-extender.bbclass11
-rw-r--r--classes/mfgtool-initramfs-image.bbclass2
-rw-r--r--classes/use-imx-headers.bbclass4
-rw-r--r--classes/use-imx-security-controller-firmware.bbclass8
5 files changed, 14 insertions, 13 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index cdd16a66..cdfbb97e 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -37,7 +37,7 @@ do_image_wic[depends] += " \
37" 37"
38 38
39# We need to apply a fixup inside of the partition table 39# We need to apply a fixup inside of the partition table
40IMAGE_CMD:wic:append:mxs() { 40IMAGE_CMD:wic:append:mxs-generic-bsp() {
41 # Change partition type for mxs processor family 41 # Change partition type for mxs processor family
42 bbnote "Setting partition type to 0x53 as required for mxs' SoC family." 42 bbnote "Setting partition type to 0x53 as required for mxs' SoC family."
43 echo -n S | dd of=$out${IMAGE_NAME_SUFFIX}.wic bs=1 count=1 seek=450 conv=notrunc 43 echo -n S | dd of=$out${IMAGE_NAME_SUFFIX}.wic bs=1 count=1 seek=450 conv=notrunc
diff --git a/classes/machine-overrides-extender.bbclass b/classes/machine-overrides-extender.bbclass
index 876ddd10..b9b00ebe 100644
--- a/classes/machine-overrides-extender.bbclass
+++ b/classes/machine-overrides-extender.bbclass
@@ -12,19 +12,17 @@
12# 12#
13# MACHINEOVERRIDES_EXTENDER_FILTER_OUT:override = "group1 group2" 13# MACHINEOVERRIDES_EXTENDER_FILTER_OUT:override = "group1 group2"
14# 14#
15# Copyright 2016-2018 (C) O.S. Systems Software LTDA. 15# Copyright 2016-2018, 2022 (C) O.S. Systems Software LTDA.
16 16
17def machine_overrides_extender(d): 17def machine_overrides_extender(d):
18 machine_overrides = (d.getVar('PRISTINE_MACHINEOVERRIDES') or '').split(':') 18 machine_overrides = (d.getVar('PRISTINE_MACHINEOVERRIDES') or '').split(':')
19 19
20 # Gather the list of overrides to filter out 20 # Gather the list of overrides to filter out
21 machine_overrides_filter_out = [] 21 machine_overrides_filter_out = (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT') or '').split()
22 for override in machine_overrides: 22 for override in machine_overrides:
23 machine_overrides_filter_out += (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT:%s' % override) or '').split() 23 machine_overrides_filter_out += (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT:%s' % override) or '').split()
24 24
25 # Drop any overrides of filter_out prior extending 25 # Extend the overrides
26 machine_overrides = [o for o in machine_overrides if o not in machine_overrides_filter_out]
27
28 for override in machine_overrides: 26 for override in machine_overrides:
29 extender = d.getVar('MACHINEOVERRIDES_EXTENDER:%s' % override) 27 extender = d.getVar('MACHINEOVERRIDES_EXTENDER:%s' % override)
30 28
@@ -40,6 +38,9 @@ def machine_overrides_extender(d):
40 for e in extender: 38 for e in extender:
41 machine_overrides.insert(index, e) 39 machine_overrides.insert(index, e)
42 40
41 # Drop any overrides of filter_out after extending
42 machine_overrides = [o for o in machine_overrides if o not in machine_overrides_filter_out]
43
43 return ':'.join(machine_overrides) 44 return ':'.join(machine_overrides)
44 45
45python machine_overrides_extender_handler() { 46python machine_overrides_extender_handler() {
diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass
index 1d4c5513..deae9c93 100644
--- a/classes/mfgtool-initramfs-image.bbclass
+++ b/classes/mfgtool-initramfs-image.bbclass
@@ -13,7 +13,7 @@ FEATURE_PACKAGES_extfs = "packagegroup-fsl-mfgtool-extfs"
13FEATURE_PACKAGES_f2fs = "packagegroup-fsl-mfgtool-f2fs" 13FEATURE_PACKAGES_f2fs = "packagegroup-fsl-mfgtool-f2fs"
14 14
15IMAGE_FSTYPES = "cpio.gz.u-boot" 15IMAGE_FSTYPES = "cpio.gz.u-boot"
16IMAGE_FSTYPES:mxs = "cpio.gz.u-boot" 16IMAGE_FSTYPES:mxs-generic-bsp = "cpio.gz.u-boot"
17IMAGE_ROOTFS_SIZE ?= "8192" 17IMAGE_ROOTFS_SIZE ?= "8192"
18 18
19# Filesystems enabled by default 19# Filesystems enabled by default
diff --git a/classes/use-imx-headers.bbclass b/classes/use-imx-headers.bbclass
index c6c7f043..4baf4574 100644
--- a/classes/use-imx-headers.bbclass
+++ b/classes/use-imx-headers.bbclass
@@ -13,14 +13,14 @@
13# 13#
14# Copyright 2018 (C) O.S. Systems Software LTDA. 14# Copyright 2018 (C) O.S. Systems Software LTDA.
15 15
16DEPENDS:append:imx = " linux-imx-headers" 16DEPENDS:append:imx-nxp-bsp = " linux-imx-headers"
17 17
18# Set runtime dependency of -dev for package inheriting this class to 18# Set runtime dependency of -dev for package inheriting this class to
19# linux-imx-headers-dev package. This is required in order to propagate 19# linux-imx-headers-dev package. This is required in order to propagate
20# headers into the SDK 20# headers into the SDK
21RDEPENDS:${PN}-dev += "linux-imx-headers-dev" 21RDEPENDS:${PN}-dev += "linux-imx-headers-dev"
22 22
23PACKAGE_ARCH:imx ?= "${MACHINE_SOCARCH}" 23PACKAGE_ARCH:imx-nxp-bsp ?= "${MACHINE_SOCARCH}"
24 24
25STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx" 25STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx"
26 26
diff --git a/classes/use-imx-security-controller-firmware.bbclass b/classes/use-imx-security-controller-firmware.bbclass
index 9650059b..bdbf3684 100644
--- a/classes/use-imx-security-controller-firmware.bbclass
+++ b/classes/use-imx-security-controller-firmware.bbclass
@@ -18,14 +18,14 @@
18 18
19SECO_FIRMWARE_NAME ?= "" 19SECO_FIRMWARE_NAME ?= ""
20 20
21SECO_FIRMWARE_NAME:mx8qm = "mx8qmb0-ahab-container.img" 21SECO_FIRMWARE_NAME:mx8qm-nxp-bsp = "mx8qmb0-ahab-container.img"
22SECO_FIRMWARE_NAME:mx8qxp = \ 22SECO_FIRMWARE_NAME:mx8qxp-nxp-bsp = \
23 "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', 'mx8qxb0-ahab-container.img', \ 23 "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', 'mx8qxb0-ahab-container.img', \
24 'mx8qxc0-ahab-container.img', d)}" 24 'mx8qxc0-ahab-container.img', d)}"
25SECO_FIRMWARE_NAME:mx8dxl = "mx8dxla1-ahab-container.img" 25SECO_FIRMWARE_NAME:mx8dxl-nxp-bsp = "mx8dxla1-ahab-container.img"
26 26
27python () { 27python () {
28 if "mx8m" in d.getVar('MACHINEOVERRIDES').split(":"): 28 if "mx8m-nxp-bsp" in d.getVar('MACHINEOVERRIDES').split(":"):
29 return # We need to allow the recipes to be parsed for this case 29 return # We need to allow the recipes to be parsed for this case
30 30
31 seco_firmware = d.getVar('SECO_FIRMWARE_NAME') 31 seco_firmware = d.getVar('SECO_FIRMWARE_NAME')