diff options
author | Tim Lee <timlee660101@gmail.com> | 2024-01-30 08:55:49 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2024-02-26 14:50:22 +0300 |
commit | 3a63ed4088df4b3ad735813abc46c165f690357a (patch) | |
tree | 05d2b31811df3dbee0ac0799bbbb8ec8894d35f8 /meta-nuvoton | |
parent | 1a28efb529b42ee07d7ecb251ec8e191ccb02bce (diff) | |
download | openbmc-3a63ed4088df4b3ad735813abc46c165f690357a.tar.xz |
meta-nuvoton: support build norootfs
default-distrovars.inc depend on ARCH_DEFAULT_KERNELIMAGETYPE
to set KERNEL_IMAGETYPE, vendor could overwrite KERNEL_IMAGETYPE
in configuration file to change kernel target build.
since static-norootfs.inc set KERNEL_IMAGETYPE and KERNEL_IMAGETYPES
as ARCH_DEFAULT_KERNELIMAGETYPE, we overwrite both value to "Image"
since arm64 kernel doesn't support zImage target.
Add FLASH_MANIFEST_OFFSET and merge_bootloader in nuvoton npcm8xx.
Add compress kernel image when build norootfs.
Tested:
build norootfs evb-npcm845 target ok
flash norootfs flash-evb-npcm845 image ok
Signed-off-by: James Chiang <cpchiang1@nuvoton.com>
Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: I688cd48f2cc43f464e23f4a1f5408ce5b7195c56
Diffstat (limited to 'meta-nuvoton')
-rw-r--r-- | meta-nuvoton/conf/machine/evb-npcm845.conf | 1 | ||||
-rw-r--r-- | meta-nuvoton/conf/machine/include/npcm8xx.inc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta-nuvoton/conf/machine/evb-npcm845.conf b/meta-nuvoton/conf/machine/evb-npcm845.conf index 02e0659712..725f2b051d 100644 --- a/meta-nuvoton/conf/machine/evb-npcm845.conf +++ b/meta-nuvoton/conf/machine/evb-npcm845.conf @@ -12,6 +12,7 @@ require conf/machine/include/obmc-bsp-common.inc FLASH_SIZE = "65536" FLASH_UBOOT_OFFSET:flash-65536 = "0" +FLASH_MANIFEST_OFFSET:flash-65536 = "3832" FLASH_UBOOT_ENV_OFFSET:flash-65536 = "3840" FLASH_KERNEL_OFFSET:flash-65536 = "4096" FLASH_ROFS_OFFSET:flash-65536 = "12288" diff --git a/meta-nuvoton/conf/machine/include/npcm8xx.inc b/meta-nuvoton/conf/machine/include/npcm8xx.inc index 24956a245f..a0f347c4ca 100644 --- a/meta-nuvoton/conf/machine/include/npcm8xx.inc +++ b/meta-nuvoton/conf/machine/include/npcm8xx.inc @@ -6,6 +6,10 @@ require conf/machine/include/nuvoton.inc require conf/machine/include/igps-keys.inc KERNEL_IMAGETYPE ?= "Image" + +KERNEL_IMAGETYPE:df-obmc-static-norootfs = "Image" +KERNEL_IMAGETYPES:df-obmc-static-norootfs = "${KERNEL_IMAGETYPE}" + KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000" UBOOT_MACHINE ?= "ArbelEVB_defconfig" |