kmeta reorganization
PATCH 1/5 kmeta reorganization
Reorganize the rockchip kmeta data so linux-yocto and linux-yocto-dev share the same files.
---
.../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 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.
---
recipes-kernel/linux/linux-%.bbappend | 1 +
.../linux/{linux-yocto_%.bbappend => linux-rockchip.inc} | 0
recipes-kernel/linux/linux-yocto-dev.bbappend | 3 ---
3 files changed, 1 insertion(+), 3 deletions(-)
create mode 100644 recipes-kernel/linux/linux-%.bbappend
rename recipes-kernel/linux/{linux-yocto_%.bbappend => linux-rockchip.inc} (100%)
delete mode 100644 recipes-kernel/linux/linux-yocto-dev.bbappendrecipes-kernel/linux/linux-%.bbappend new file +1 -0
@@ -0,0 +1 @@ +require linux-rockchip.inc
recipes-kernel/linux/linux-rockchip.inc renamed from recipes-kernel/linux/linux-yocto_%.bbappend +0 -0
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"
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a
PATCH 3/5 move KERNEL_FEATURES
In reply to Trevor WoernerMove KERNEL_FEATURES from SoC configurations to linux kernel recipes.
--- 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 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.
--- .../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 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.
--- .../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 2/5] provide kernel *.inc
In reply to a message not in the archiverecipes-kernel/linux/linux-%.bbappend
Quoted 20 lines · Trevor Woerner via lists.yoctoproject.org
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.
Signed-off-by Trevor Woerner <[email protected]>--- recipes-kernel/linux/linux-%.bbappend | 1 + .../linux/{linux-yocto_%.bbappend => linux-rockchip.inc} | 0 recipes-kernel/linux/linux-yocto-dev.bbappend | 3 --- 3 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 recipes-kernel/linux/linux-%.bbappend rename recipes-kernel/linux/{linux-yocto_%.bbappend => linux-rockchip.inc} (100%) delete mode 100644 recipes-kernel/linux/linux-yocto-dev.bbappendrecipes-kernel/linux/linux-%.bbappend new file +0
-0
I considered this one for quite a while. I saw it in Bruce's meta-virtualization and thought it was clever, but now that I've slept on it, I think it's a bit too aggressive for meta-rockchip.
I think instead of 'linux-%.bbappend' maybe 'linux-yocto%.bbappend'? or 'linux-yocto_%.bbappend' would be better?
Quoted 29 lines
recipes-kernel/linux/linux-%.bbappend new file +1
-0@@ -0,0 +1 @@ +require linux-rockchip.increcipes-kernel/linux/linux-rockchip.inc renamed from recipes-kernel/linux/linux-yocto_%.bbappend +0
-0recipes-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"Signature · 11 lines
2.50.0.173.g8b6f19ccfc3a -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#2824): https://lists.yoctoproject.org/g/yocto-patches/message/2824 Mute This Topic: https://lists.yoctoproject.org/mt/116856174/900817 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-