Skip to contentSkip to conversation

linux-yocto: remove non-rockchip archs

PATCH New Trevor Woerner 1 participant 1 message Sep 10, 2023 Arm Rockchip

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-yocto: remove non-rockchip archs

Remove the non-rockchip architectures from the kernel build since these are all a waste of build time, filesystem space, and runtime memory.

---
 conf/machine/include/rk3066.inc               |  1 +
 conf/machine/include/rk3188.inc               |  1 +
 conf/machine/include/rk3288.inc               |  1 +
 conf/machine/include/rk3328.inc               |  1 +
 conf/machine/include/rk3399.inc               |  1 +
 .../rockchip/remove-non-rockchip-arch-arm.cfg | 85 +++++++++++++++++++
 .../rockchip/remove-non-rockchip-arch-arm.scc |  1 +
 .../remove-non-rockchip-arch-arm64.cfg        | 62 ++++++++++++++
 .../remove-non-rockchip-arch-arm64.scc        |  1 +
 ...yocto%.bbappend => linux-yocto_%.bbappend} |  4 +-
 10 files changed, 157 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
 create mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.scc
 rename recipes-kernel/linux/{linux-yocto%.bbappend => linux-yocto_%.bbappend} (79%)
conf/machine/include/rk3066.inc +1 -0
index 4e9498266cfd..fa9790680ed2 100644
@@ -10,4 +10,5 @@ require conf/machine/include/rockchip-defaults.inc
 SERIAL_CONSOLES = "115200;ttyS2"
 
 KBUILD_DEFCONFIG = "multi_v7_defconfig"
+KERNEL_FEATURES:append:rk3066 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
 KERNEL_IMAGETYPE = "zImage"
conf/machine/include/rk3188.inc +1 -0
index cc6cd3f6ae1e..bc96a0c040d0 100644
@@ -10,4 +10,5 @@ require conf/machine/include/rockchip-defaults.inc
 SERIAL_CONSOLES = "115200;ttyFIQ0"
 
 KBUILD_DEFCONFIG = "multi_v7_defconfig"
+KERNEL_FEATURES:append:rk3188 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
 KERNEL_IMAGETYPE = "zImage"
conf/machine/include/rk3288.inc +1 -0
index 1d4a0e3d40bc..b4c559db70cd 100644
@@ -10,6 +10,7 @@ require conf/machine/include/rockchip-defaults.inc
 SERIAL_CONSOLES = "115200;ttyS2"
 
 KBUILD_DEFCONFIG ?= "multi_v7_defconfig"
+KERNEL_FEATURES:append:rk3288 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
 KERNEL_IMAGETYPE = "zImage"
 
 UBOOT_SUFFIX ?= "bin"
conf/machine/include/rk3328.inc +1 -0
index acc9afd8bf32..f9f8792ca521 100644
@@ -11,6 +11,7 @@ require conf/machine/include/rockchip-defaults.inc
 require conf/machine/include/rockchip-wic.inc
 
 KBUILD_DEFCONFIG ?= "defconfig"
+KERNEL_FEATURES:append:rk3328 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
 KERNEL_CLASSES = "kernel-fitimage"
 KERNEL_IMAGETYPE = "fitImage"
 
conf/machine/include/rk3399.inc +1 -0
index 1e6c3b623065..88c87af3a03e 100644
@@ -11,6 +11,7 @@ require conf/machine/include/rockchip-defaults.inc
 require conf/machine/include/rockchip-wic.inc
 
 KBUILD_DEFCONFIG ?= "defconfig"
+KERNEL_FEATURES:append:rk3399 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
 KERNEL_CLASSES = "kernel-fitimage"
 KERNEL_IMAGETYPE = "fitImage"
 
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg new file +85 -0

85 lines not on this page · raw message

recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc new file +1 -0
new file mode 100644
index 000000000000..ce7770456ea4
@@ -0,0 +1 @@
+kconf hardware remove-non-rockchip-arch-arm.cfg
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg new file +62 -0

62 lines not on this page · raw message

recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.scc new file +1 -0
new file mode 100644
index 000000000000..e169240f5067
@@ -0,0 +1 @@
+kconf hardware remove-non-rockchip-arch-arm64.cfg
recipes-kernel/linux/linux-yocto_%.bbappend renamed from recipes-kernel/linux/linux-yocto%.bbappend +3 -1
similarity index 79%
rename from recipes-kernel/linux/linux-yocto%.bbappend
rename to recipes-kernel/linux/linux-yocto_%.bbappend
index 470dc0911ca0..d0d24f1b074f 100644
@@ -1,3 +1,5 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
 COMPATIBLE_MACHINE:marsboard-rk3066 = "marsboard-rk3066"
 COMPATIBLE_MACHINE:rock2-square = "rock2-square"
 COMPATIBLE_MACHINE:radxarock = "radxarock"
@@ -11,4 +13,4 @@ COMPATIBLE_MACHINE:nanopi-m4-2gb = "nanopi-m4-2gb"
 COMPATIBLE_MACHINE:rock64 = "rock64"
 COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+SRC_URI:append = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
Signature · 1 line
2.41.0.327.gaa9166bcc0ba