kmeta reorganization
PATCH v2 1/5 kmeta reorganization
Reorganize the rockchip kmeta data so linux-yocto and linux-yocto-dev share the same files.
---
changes since v1:
- none
---
.../realtek-r8169.cfg | 0
.../rockchip/remove-non-rockchip-arch-arm.cfg | 0
.../rockchip/remove-non-rockchip-arch-arm.scc | 0
.../remove-non-rockchip-arch-arm64.cfg | 0
.../remove-non-rockchip-arch-arm64.scc | 0
recipes-kernel/linux/linux-yocto-dev.bbappend | 2 +-
.../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 -
recipes-kernel/linux/linux-yocto_%.bbappend | 2 +-
11 files changed, 2 insertions(+), 151 deletions(-)
rename recipes-kernel/linux/{linux-yocto => linux-rockchip}/realtek-r8169.cfg (100%)
rename recipes-kernel/linux/{linux-yocto-dev => linux-rockchip}/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg (100%)
rename recipes-kernel/linux/{linux-yocto-dev => linux-rockchip}/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc (100%)
rename recipes-kernel/linux/{linux-yocto-dev => linux-rockchip}/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg (100%)
rename recipes-kernel/linux/{linux-yocto-dev => linux-rockchip}/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.scc (100%)
delete mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg
delete mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
delete mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg
delete mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.sccrecipes-kernel/linux/linux-rockchip/realtek-r8169.cfg renamed from recipes-kernel/linux/linux-yocto/realtek-r8169.cfg +0 -0
recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg renamed from recipes-kernel/linux/linux-yocto-dev/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg +0 -0
recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc renamed from recipes-kernel/linux/linux-yocto-dev/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc +0 -0
recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg renamed from recipes-kernel/linux/linux-yocto-dev/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg +0 -0
recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.scc renamed from recipes-kernel/linux/linux-yocto-dev/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.scc +0 -0
recipes-kernel/linux/linux-yocto-dev.bbappend +1 -1
@@ -1,3 +1,3 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/linux-rockchip:" SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg deleted +0 -85
85 lines not on this page · raw message
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc deleted +0 -1
@@ -1 +0,0 @@ -kconf hardware remove-non-rockchip-arch-arm.cfg
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg deleted +0 -62
62 lines not on this page · raw message
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.scc deleted +0 -1
@@ -1 +0,0 @@ -kconf hardware remove-non-rockchip-arch-arm64.cfg
recipes-kernel/linux/linux-yocto_%.bbappend +1 -1
@@ -1,4 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/linux-rockchip:" # 32-bit devices COMPATIBLE_MACHINE:firefly-rk3288 = "firefly-rk3288"
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v2 2/5 provide kernel *.inc
Consolidate the two bbappends for linux-yocto and linux-yocto-dev and provide the "guts" of the rockchip additions in an *inc file which could be used by other linux kernel recipes outside this layer when a rockchip machine is used.
---
changes since v1:
- changed kernel bbappend name from "linux-%" to "linux-yocto_%"
--- recipes-kernel/linux/linux-rockchip.inc | 35 ++++++++++++++++++ recipes-kernel/linux/linux-yocto-dev.bbappend | 3 -- recipes-kernel/linux/linux-yocto_%.bbappend | 36 +------------------ 3 files changed, 36 insertions(+), 38 deletions(-) create mode 100644 recipes-kernel/linux/linux-rockchip.inc delete mode 100644 recipes-kernel/linux/linux-yocto-dev.bbappend
recipes-kernel/linux/linux-rockchip.inc new file +35 -0
@@ -0,0 +1,35 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/linux-rockchip:" + +# 32-bit devices +COMPATIBLE_MACHINE:firefly-rk3288 = "firefly-rk3288" +COMPATIBLE_MACHINE:marsboard-rk3066 = "marsboard-rk3066" +COMPATIBLE_MACHINE:radxarock = "radxarock" +COMPATIBLE_MACHINE:rock2-square = "rock2-square" +COMPATIBLE_MACHINE:tinker-board = "tinker-board" +COMPATIBLE_MACHINE:tinker-board-s = "tinker-board-s" +COMPATIBLE_MACHINE:vyasa-rk3288 = "vyasa-rk3288" + +# 64-bit devices +COMPATIBLE_MACHINE:nanopc-t6 = "nanopc-t6" +COMPATIBLE_MACHINE:nanopi-m4 = "nanopi-m4" +COMPATIBLE_MACHINE:nanopi-m4-2gb = "nanopi-m4-2gb" +COMPATIBLE_MACHINE:nanopi-m4b = "nanopi-m4b" +COMPATIBLE_MACHINE:nanopi-r2s = "nanopi-r2s" +COMPATIBLE_MACHINE:nanopi-r4s = "nanopi-r4s" +COMPATIBLE_MACHINE:orangepi-3b = "orangepi-3b" +COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus" +COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3" +COMPATIBLE_MACHINE:roc-rk3308-cc = "roc-rk3308-cc" +COMPATIBLE_MACHINE:roc-rk3328-cc = "roc-rk3328-cc" +COMPATIBLE_MACHINE:rock-3a = "rock-3a" +COMPATIBLE_MACHINE:rock-4c-plus = "rock-4c-plus" +COMPATIBLE_MACHINE:rock-5a = "rock-5a" +COMPATIBLE_MACHINE:rock-5b = "rock-5b" +COMPATIBLE_MACHINE:rock-pi-4 = "rock-pi-4" +COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e" +COMPATIBLE_MACHINE:rock-pi-s = "rock-pi-s" +COMPATIBLE_MACHINE:rock64 = "rock64" +COMPATIBLE_MACHINE:soquartz = "soquartz" + +SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" +SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg"
recipes-kernel/linux/linux-yocto-dev.bbappend deleted +0 -3
@@ -1,3 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/linux-rockchip:" - -SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
recipes-kernel/linux/linux-yocto_%.bbappend +1 -35
@@ -1,35 +1 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/linux-rockchip:" - -# 32-bit devices -COMPATIBLE_MACHINE:firefly-rk3288 = "firefly-rk3288" -COMPATIBLE_MACHINE:marsboard-rk3066 = "marsboard-rk3066" -COMPATIBLE_MACHINE:radxarock = "radxarock" -COMPATIBLE_MACHINE:rock2-square = "rock2-square" -COMPATIBLE_MACHINE:tinker-board = "tinker-board" -COMPATIBLE_MACHINE:tinker-board-s = "tinker-board-s" -COMPATIBLE_MACHINE:vyasa-rk3288 = "vyasa-rk3288" - -# 64-bit devices -COMPATIBLE_MACHINE:nanopc-t6 = "nanopc-t6" -COMPATIBLE_MACHINE:nanopi-m4 = "nanopi-m4" -COMPATIBLE_MACHINE:nanopi-m4-2gb = "nanopi-m4-2gb" -COMPATIBLE_MACHINE:nanopi-m4b = "nanopi-m4b" -COMPATIBLE_MACHINE:nanopi-r2s = "nanopi-r2s" -COMPATIBLE_MACHINE:nanopi-r4s = "nanopi-r4s" -COMPATIBLE_MACHINE:orangepi-3b = "orangepi-3b" -COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus" -COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3" -COMPATIBLE_MACHINE:roc-rk3308-cc = "roc-rk3308-cc" -COMPATIBLE_MACHINE:roc-rk3328-cc = "roc-rk3328-cc" -COMPATIBLE_MACHINE:rock-3a = "rock-3a" -COMPATIBLE_MACHINE:rock-4c-plus = "rock-4c-plus" -COMPATIBLE_MACHINE:rock-5a = "rock-5a" -COMPATIBLE_MACHINE:rock-5b = "rock-5b" -COMPATIBLE_MACHINE:rock-pi-4 = "rock-pi-4" -COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e" -COMPATIBLE_MACHINE:rock-pi-s = "rock-pi-s" -COMPATIBLE_MACHINE:rock64 = "rock64" -COMPATIBLE_MACHINE:soquartz = "soquartz" - -SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" -SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" +require linux-rockchip.inc
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v2 3/5 move KERNEL_FEATURES
In reply to Trevor WoernerMove KERNEL_FEATURES from SoC configurations to linux kernel recipes.
---
changes since v1:
- none
--- conf/machine/include/rk3066.inc | 1 - conf/machine/include/rk3188.inc | 1 - conf/machine/include/rk3288.inc | 1 - conf/machine/include/rk3308.inc | 1 - conf/machine/include/rk3328.inc | 1 - conf/machine/include/rk3399.inc | 1 - conf/machine/include/rk3566.inc | 1 - conf/machine/include/rk3568.inc | 1 - conf/machine/include/rk3588s.inc | 1 - recipes-kernel/linux/linux-rockchip.inc | 3 +++ 10 files changed, 3 insertions(+), 9 deletions(-)
conf/machine/include/rk3066.inc +0 -1
@@ -11,6 +11,5 @@ require conf/machine/include/arm/armv7a/tune-cortexa9.inc SERIAL_CONSOLES = "115200;ttyS2" KBUILD_DEFCONFIG = "multi_v7_defconfig" -KERNEL_FEATURES:append:rk3066 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" ENABLE_STATELESS_VPU_GST ?= "1"
conf/machine/include/rk3188.inc +0 -1
@@ -11,6 +11,5 @@ require conf/machine/include/arm/armv7a/tune-cortexa9.inc SERIAL_CONSOLES = "115200;ttyFIQ0" KBUILD_DEFCONFIG = "multi_v7_defconfig" -KERNEL_FEATURES:append:rk3188 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" ENABLE_STATELESS_VPU_GST ?= "1"
conf/machine/include/rk3288.inc +0 -1
@@ -11,7 +11,6 @@ require conf/machine/include/arm/armv7a/tune-cortexa17.inc SERIAL_CONSOLES = "115200;ttyS2" KBUILD_DEFCONFIG ?= "multi_v7_defconfig" -KERNEL_FEATURES:append:rk3288 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" # Set UBOOT_SUFFIX to "itb" if you are going to use OP-TEE UBOOT_SUFFIX ?= "img"
conf/machine/include/rk3308.inc +0 -1
@@ -12,7 +12,6 @@ require conf/machine/include/rockchip-wic.inc SERIAL_CONSOLES = "1500000;ttyS0" KBUILD_DEFCONFIG ?= "defconfig" -KERNEL_FEATURES:append:rk3308 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000"
conf/machine/include/rk3328.inc +0 -1
@@ -11,7 +11,6 @@ require conf/machine/include/arm/armv8a/tune-cortexa53.inc require conf/machine/include/rockchip-wic.inc KBUILD_DEFCONFIG ?= "defconfig" -KERNEL_FEATURES:append:rk3328 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" TFA_PLATFORM = "rk3328" TFA_BUILD_TARGET = "bl31"
conf/machine/include/rk3399.inc +0 -1
@@ -11,7 +11,6 @@ require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc require conf/machine/include/rockchip-wic.inc KBUILD_DEFCONFIG ?= "defconfig" -KERNEL_FEATURES:append:rk3399 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" TFA_PLATFORM = "rk3399" TFA_BUILD_TARGET = "bl31"
conf/machine/include/rk3566.inc +0 -1
@@ -10,7 +10,6 @@ require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc require conf/machine/include/rockchip-wic.inc KBUILD_DEFCONFIG ?= "defconfig" -KERNEL_FEATURES:append:rk3566 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" PREFERRED_PROVIDER_trusted-firmware-a = "rockchip-rkbin-tf-a" PREFERRED_PROVIDER_optee-os = "rockchip-rkbin-optee-os"
conf/machine/include/rk3568.inc +0 -1
@@ -10,7 +10,6 @@ require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc require conf/machine/include/rockchip-wic.inc KBUILD_DEFCONFIG ?= "defconfig" -KERNEL_FEATURES:append:rk3568 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" PREFERRED_PROVIDER_trusted-firmware-a = "rockchip-rkbin-tf-a" PREFERRED_PROVIDER_optee-os = "rockchip-rkbin-optee-os"
conf/machine/include/rk3588s.inc +0 -1
@@ -9,7 +9,6 @@ require conf/machine/include/arm/armv8-2a/tune-cortexa76-cortexa55.inc require conf/machine/include/rockchip-wic.inc KBUILD_DEFCONFIG ?= "defconfig" -KERNEL_FEATURES:append:rk3588s = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" PREFERRED_PROVIDER_trusted-firmware-a = "rockchip-rkbin-tf-a" PREFERRED_PROVIDER_optee-os = "rockchip-rkbin-optee-os"
recipes-kernel/linux/linux-rockchip.inc +3 -0
@@ -33,3 +33,6 @@ COMPATIBLE_MACHINE:soquartz = "soquartz" SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" + +KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" +KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v2 4/5 kernel: clean up non-rockchip arch removal
In reply to Trevor WoernerOver time more architectures are supported by the linux kernel (both 32-bit and 64-bit), and others are dropped; architectures unrelated to rockchip. Clean up these non-rockchip architectures from the kernel config to help keep its size small.
---
changes since v1:
- none
--- .../bsp/rockchip/remove-non-rockchip-arch-arm.cfg | 11 +++++++---- .../bsp/rockchip/remove-non-rockchip-arch-arm64.cfg | 5 +++++ 2 files changed, 12 insertions(+), 4 deletions(-)
recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.cfg +7 -4
@@ -38,14 +38,16 @@ CONFIG_ARCH_MESON=n CONFIG_ARCH_MILBEAUT=n CONFIG_ARCH_MILBEAUT_M10V=n CONFIG_ARCH_MMP=n -CONFIG_ARCH_MSM8916=n -CONFIG_ARCH_MSM8960=n -CONFIG_ARCH_MSM8974=n -CONFIG_ARCH_MSM8X60=n CONFIG_ARCH_MVEBU=n CONFIG_ARCH_MXC=n +CONFIG_ARCH_OMAP=n +CONFIG_ARCH_OMAP2PLUS=n CONFIG_ARCH_OMAP3=n CONFIG_ARCH_OMAP4=n +CONFIG_SOC_OMAP5=n +CONFIG_SOC_AM33XX=n +CONFIG_SOC_AM43XX=n +CONFIG_SOC_DRA7XX=n CONFIG_ARCH_QCOM=n CONFIG_ARCH_R7S72100=n CONFIG_ARCH_R7S9210=n
@@ -66,6 +68,7 @@ CONFIG_ARCH_R8A7794=n CONFIG_ARCH_R9A06G032=n CONFIG_ARCH_RENESAS=n CONFIG_ARCH_SH73A0=n +CONFIG_PLAT_SPEAR=n CONFIG_ARCH_SPEAR13XX=n CONFIG_ARCH_STI=n CONFIG_ARCH_STM32=n
recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm64.cfg +5 -0
@@ -1,12 +1,16 @@ CONFIG_ARCH_ACTIONS=n +CONFIG_ARCH_AIROHA=n CONFIG_ARCH_ALPINE=n CONFIG_ARCH_APPLE=n +CONFIG_ARCH_AXIADO=n CONFIG_ARCH_BCM2835=n CONFIG_ARCH_BCM=n CONFIG_ARCH_BCMBCA=n CONFIG_ARCH_BCM_IPROC=n CONFIG_ARCH_BERLIN=n +CONFIG_ARCH_BLAIZE=n CONFIG_ARCH_BRCMSTB=n +CONFIG_ARCH_CIX=n CONFIG_ARCH_EXYNOS=n CONFIG_ARCH_SPARX5=n CONFIG_ARCH_HISI=n
@@ -46,6 +50,7 @@ CONFIG_ARCH_R9A09G011=n CONFIG_ARCH_RENESAS=n CONFIG_ARCH_S32=n CONFIG_ARCH_SEATTLE=n +CONFIG_ARCH_SOPHGO=n CONFIG_ARCH_STM32=n CONFIG_ARCH_SPRD=n CONFIG_ARCH_SUNXI=n
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH v2 5/5 fix u-boot for tf-a firmware
In reply to Trevor WoernerA change was made in the location and name of the bl31 artifact for device firmware built with trusted-firmware-a. Update the build to match so these devices continue to build successfully.
---
changes since v1:
- none
--- .../trusted-firmware-a/trusted-firmware-a_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+)
recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +11 -0
@@ -47,3 +47,14 @@ fixup_baudrate:rk3588s() { # If you use upstream U-Boot with SPL_ATF_NO_PLATFORM_PARAM disabled, you can # simply override this function to do nothing. do_patch[postfuncs] += "fixup_baudrate" + +do_deploy() { + : +} +do_deploy:rk3328() { + cp -rf ${D}/firmware/trusted-firmware-a/bl31.elf ${DEPLOYDIR}/bl31-rk3328.elf +} +do_deploy:rk3399() { + cp -rf ${D}/firmware/trusted-firmware-a/bl31.elf ${DEPLOYDIR}/bl31-rk3399.elf +} +addtask deploy after do_install
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
Re: [yocto-patches] [meta-rockchip][PATCH v2 2/5] provide kernel *.inc
In reply to Trevor WoernerHi Trevor,
On 12/21/25 1:48 AM, Trevor Woerner via lists.yoctoproject.org wrote:
[...]
recipes-kernel/linux/linux-yocto-dev.bbappend line 3
Quoted 9 lines
recipes-kernel/linux/linux-yocto-dev.bbappend deleted +0
-3@@ -1,3 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/linux-rockchip:" - -SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
Don't you want to keep a linux-yocto-dev_%.bbappend with require linux-rockchip.inc in there? Or would you rather not have it as to not give ideas to people to try linux-yocto-dev instead of linux-yocto?
Cheers,
Quentin
Re: [yocto-patches] [meta-rockchip][PATCH v2 3/5] move KERNEL_FEATURES
In reply to Trevor WoernerHi Trevor,
Quoted 2 lines · Trevor Woerner via lists.yoctoproject.org
Move
KERNEL_FEATURESfrom SoC configurations to linux kernel recipes.
Thanks <3
Cheers,
Quentin
Re: [yocto-patches] [meta-rockchip][PATCH v2 4/5] kernel: clean up non-rockchip arch removal
In reply to Trevor WoernerHi Trevor,
Quoted 5 lines · Trevor Woerner via lists.yoctoproject.org
Over time more architectures are supported by the linux kernel (both 32-bit and 64-bit), and others are dropped; architectures unrelated to rockchip. Clean up these non-rockchip architectures from the kernel config to help keep its size small.
How do you generate this list? I'm wondering if we cannot patch it on the go via a new task?
For Aarch64, I think it could be as simple as:
grep -P 'config ARCH_(?!ROCKCHIP)' arch/arm64/Kconfig.platforms | sed 's/.* \(ARCH_\w*\)$/CONFIG_\1=n/'
which will return all config ARCH_ and menuconfig ARCH_ lines which don't contain ROCKCHIP, then strip the config/menuconfig part, add CONFIG_ in front of the symbol and add =n to unselect them.
For Aarch32, it's a bit more involved.
grep -P 'config ARCH_(?!ROCKCHIP|MULTI_.*V7)' arch/arm/Kconfig.platforms arch/arm/mach-*/Kconfig | sed 's/.* \(ARCH_\w*\)$/CONFIG_\1=n/'
Same logic as for Aarch64, except that we need ARCH_MULTI_V7 (and ARCH_MULTI_V6_V7 which is selected by ARCH_MULTI_V7) otherwise we cannot select ARCH_ROCKCHIP.
But then we need to add ARCH_LPC18XX=n, ARCH_MPS2=n and ARCH_ACORN=n from arch/arm/Kconfig if we really wanted to be pedantic.
Disclaimer: I have not tested if those command lines lead to a usable kernel.
What I am wondering is how you handle the multiple linux-yocto recipe versions? I'm assuming you're only building the latest one (the default), and not older versions. But considering you said some new architectures are added and some dropped, can we really use the same .cfg for all linux-yocto recipe versions?
Also, if the plan is to support other kernel recipes (e.g. linux-mainline) with this config fragment, we also do not know what kernel version those will be running.
Hence I'm wondering if we should try being smart or if it's too much risk in getting things wrong?
What do you think? (I do not run linux-yocto or linux-mainline on my devices... so these are more question for you as a maintainer in terms of what you're comfortable supporting and debugging :) ).
Cheers,
Quentin
Re: [yocto-patches] [meta-rockchip][PATCH v2 5/5] fix u-boot for tf-a firmware
In reply to Trevor WoernerHi Trevor,
Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org
A change was made in the location and name of the bl31 artifact for device firmware built with trusted-firmware-a. Update the build to match so these devices continue to build successfully.
Thanks for pinging me in private on this. And thanks for the quick band-aid patch to fix the build :)
This patch is probably not enough. I believe all SoCs are impacted by this issue.
I think this is due to 7bce36a2c64b ("arm/trusted-firmware-a: Use firmware.bbclass") in meta-arm which now uses firmware.bbclass, which deploys in a per-recipe directory in DEPLOY_IMAGE_DIR instead of dumping stuff directly there.
Checking now... ping me next week if I haven't answered here or sent a patch to fix it.
Cheers,
Quentin