The kernel-module recipes set PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" which is 
broken
because kernel modules depend on the kernel which is MACHINE specific. The
assignment claims that you could use a kernel module built for some other board
for any other zynqmp board, which is not true since their kernel versions and
configuration will differ.

Remove the assignment so that the kernel module becomes MACHINE_ARCH again.

This solves issues with kernel modules that refuse to install during the
do_rootfs stage, and various setscene tasks running over and again when
switching between MACHINEs.

Signed-off-by: Mike Looijmans <[email protected]>
---
 meta-xilinx-bsp/recipes-graphics/mali/kernel-module-mali.bb   | 2 --
 meta-xilinx-bsp/recipes-kernel/dp/kernel-module-dp_git.bb     | 2 --
 meta-xilinx-bsp/recipes-kernel/hdmi/kernel-module-hdmi_git.bb | 2 --
 meta-xilinx-bsp/recipes-multimedia/vcu/kernel-module-vcu.bb   | 2 --
 4 files changed, 8 deletions(-)

diff --git a/meta-xilinx-bsp/recipes-graphics/mali/kernel-module-mali.bb 
b/meta-xilinx-bsp/recipes-graphics/mali/kernel-module-mali.bb
index 747ec72..c4f7eff 100644
--- a/meta-xilinx-bsp/recipes-graphics/mali/kernel-module-mali.bb
+++ b/meta-xilinx-bsp/recipes-graphics/mali/kernel-module-mali.bb
@@ -40,8 +40,6 @@ COMPATIBLE_MACHINE = "^$"
 COMPATIBLE_MACHINE_zynqmpeg = "zynqmpeg"
 COMPATIBLE_MACHINE_zynqmpev = "zynqmpev"
 
-PACKAGE_ARCH = "${SOC_VARIANT_ARCH}"
-
 EXTRA_OEMAKE = 'KDIR="${STAGING_KERNEL_DIR}" \
                ARCH="${ARCH}" \
                BUILD=release \
diff --git a/meta-xilinx-bsp/recipes-kernel/dp/kernel-module-dp_git.bb 
b/meta-xilinx-bsp/recipes-kernel/dp/kernel-module-dp_git.bb
index e5356d8..9a83cc0 100755
--- a/meta-xilinx-bsp/recipes-kernel/dp/kernel-module-dp_git.bb
+++ b/meta-xilinx-bsp/recipes-kernel/dp/kernel-module-dp_git.bb
@@ -22,5 +22,3 @@ EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
 COMPATIBLE_MACHINE = "^$"
 COMPATIBLE_MACHINE_zynqmp = "zynqmp"
 COMPATIBLE_MACHINE_versal = "versal"
-
-PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"
diff --git a/meta-xilinx-bsp/recipes-kernel/hdmi/kernel-module-hdmi_git.bb 
b/meta-xilinx-bsp/recipes-kernel/hdmi/kernel-module-hdmi_git.bb
index b26ecd9..4b21fd4 100644
--- a/meta-xilinx-bsp/recipes-kernel/hdmi/kernel-module-hdmi_git.bb
+++ b/meta-xilinx-bsp/recipes-kernel/hdmi/kernel-module-hdmi_git.bb
@@ -22,5 +22,3 @@ EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
 COMPATIBLE_MACHINE = "^$"
 COMPATIBLE_MACHINE_zynqmp = "zynqmp"
 COMPATIBLE_MACHINE_versal = "versal"
-
-PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"
diff --git a/meta-xilinx-bsp/recipes-multimedia/vcu/kernel-module-vcu.bb 
b/meta-xilinx-bsp/recipes-multimedia/vcu/kernel-module-vcu.bb
index 817aa38..b3f88a8 100644
--- a/meta-xilinx-bsp/recipes-multimedia/vcu/kernel-module-vcu.bb
+++ b/meta-xilinx-bsp/recipes-multimedia/vcu/kernel-module-vcu.bb
@@ -25,6 +25,4 @@ RDEPENDS_${PN} = "vcu-firmware"
 COMPATIBLE_MACHINE = "^$"
 COMPATIBLE_MACHINE_zynqmp = "zynqmp"
 
-PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"
-
 KERNEL_MODULE_AUTOLOAD += "dmaproxy"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4884): 
https://lists.yoctoproject.org/g/meta-xilinx/message/4884
Mute This Topic: https://lists.yoctoproject.org/mt/82086114/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to