Allow KERNEL_IMAGETYPE override
So sorry, this is the wrong branch, I will send a new one.
Quoted 152 lines · Anthony Davies via lists.yoctoproject.org
From: Anthony Davies <[email protected]>
Updated inc files to allow overriding
KERNEL_IMAGETYPEin local.confFixed bug where dtb couldnt be found when generating
KERNEL_IMAGETYPEother then fitImage image due toKERNEL_DEVICETREEcontaining the dtb directory which is not available in theDEPLOY_DIR_IMAGEdirectory--- conf/machine/include/px30.inc | 2 +- conf/machine/include/rk3066.inc | 2 +- conf/machine/include/rk3188.inc | 2 +- conf/machine/include/rk3288.inc | 2 +- conf/machine/include/rk3328.inc | 2 +- conf/machine/include/rk3399.inc | 2 +- conf/machine/include/rockchip-defaults.inc | 2 +- conf/machine/include/rockchip-wic.inc | 6 +++++- 8 files changed, 12 insertions(+), 8 deletions(-)conf/machine/include/px30.inc +1
-1@@ -12,7 +12,7 @@ require conf/machine/include/rockchip-wic.inc KBUILD_DEFCONFIG ?= "defconfig" KERNEL_CLASSES = "kernel-fitimage" -KERNEL_IMAGETYPE = "fitImage" +KERNEL_IMAGETYPE ?= "fitImage" TFA_PLATFORM = "px30" TFA_BUILD_TARGET = "bl31"conf/machine/include/rk3066.inc +0
-0@@ -11,4 +11,4 @@ SERIAL_CONSOLES = "115200;ttyS2" KBUILD_DEFCONFIG = "multi_v7_defconfig" KERNEL_FEATURES:append:rk3066 = "bsp/rockchip/remove-non-rockchip-arch-arm.scc"
conf/machine/include/rk3066.inc +1
-1-KERNEL_IMAGETYPE = "zImage" +KERNEL_IMAGETYPE ?= "zImage"conf/machine/include/rk3188.inc +0
-0@@ -11,4 +11,4 @@ SERIAL_CONSOLES = "115200;ttyFIQ0" KBUILD_DEFCONFIG = "multi_v7_defconfig" KERNEL_FEATURES:append:rk3188 = "bsp/rockchip/remove-non-rockchip-arch-arm.scc"
conf/machine/include/rk3188.inc +1
-1-KERNEL_IMAGETYPE = "zImage" +KERNEL_IMAGETYPE ?= "zImage"conf/machine/include/rk3288.inc +0
-0@@ -11,6 +11,6 @@ SERIAL_CONSOLES = "115200;ttyS2" KBUILD_DEFCONFIG ?= "multi_v7_defconfig" KERNEL_FEATURES:append:rk3288 = "bsp/rockchip/remove-non-rockchip-arch-arm.scc"
conf/machine/include/rk3288.inc +1
-1-KERNEL_IMAGETYPE = "zImage" +KERNEL_IMAGETYPE ?= "zImage" UBOOT_SUFFIX ?= "bin"conf/machine/include/rk3328.inc +0
-0@@ -13,7 +13,7 @@ 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"conf/machine/include/rk3328.inc +1
-1-KERNEL_IMAGETYPE = "fitImage" +KERNEL_IMAGETYPE ?= "fitImage" TFA_PLATFORM = "rk3328" TFA_BUILD_TARGET = "bl31"conf/machine/include/rk3399.inc +0
-0@@ -13,7 +13,7 @@ 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"conf/machine/include/rk3399.inc +1
-1-KERNEL_IMAGETYPE = "fitImage" +KERNEL_IMAGETYPE ?= "fitImage" TFA_PLATFORM = "rk3399" TFA_BUILD_TARGET = "bl31"conf/machine/include/rockchip-defaults.inc +1
-1@@ -1,7 +1,7 @@ # meta-rockchip default settings # kernel -PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" +PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto" KCONFIG_MODE ?= "alldefconfig" # xserverconf/machine/include/rockchip-wic.inc +2
-0@@ -11,10 +11,14 @@ WKS_FILE_DEPENDS ?= " \ virtual/bootloader \ virtual/kernel \ " + +KERNEL_DEVICETREE_BASENAME ="${@os.path.basename('${KERNEL_DEVICETREE}')}"
conf/machine/include/rockchip-wic.inc +1
-1+ IMAGE_BOOT_FILES = " \ ${KERNEL_IMAGETYPE} \ - ${@bb.utils.contains('KERNEL_IMAGETYPE', 'fitImage', '','${KERNEL_DEVICETREE}', d)} \
+ ${@bb.utils.contains('KERNEL_IMAGETYPE', 'fitImage', '','${KERNEL_DEVICETREE_BASENAME}', d)} \ "+IMAGE_EFI_BOOT_FILES += ${IMAGE_BOOT_FILES}
# use the first-defined <baud>;<device> pair in SERIAL_CONSOLES # for the console parameter in the wks files -- 2.34.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#61112):
https://lists.yoctoproject.org/g/yocto/message/61112
Mute This Topic: https://lists.yoctoproject.org/mt/101589034/7328908
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-