Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# There are two valid types: "openssl" or "HSM".
|
||||
# Currently, default support openssl only.
|
||||
SIGN_TYPE ?= "openssl"
|
||||
|
||||
KEY_BB_INDEX ?= "1"
|
||||
SKMT_BL31_KEY_INDEX ?= "1"
|
||||
SKMT_BL32_KEY_INDEX ?= "1"
|
||||
SKMT_BL33_KEY_INDEX ?= "1"
|
||||
|
||||
KEY_BB_ID ?= "11"
|
||||
KEY_BL31_ID ?= "11"
|
||||
KEY_OPTEE_ID ?= "11"
|
||||
KEY_UBOOT_ID ?= "11"
|
||||
|
||||
KEY_FOLDER ?= ""
|
||||
KEY_FOLDER_DEFAULT ?= "${DEPLOY_DIR_IMAGE}/${SIGN_TYPE}"
|
||||
KEY_BB ?= "skmt_ecc_key_1.der"
|
||||
KEY_BL31 ?= "skmt_ecc_key_1.der"
|
||||
KEY_OPTEE ?= "skmt_ecc_key_1.der"
|
||||
KEY_UBOOT ?= "skmt_ecc_key_1.der"
|
||||
@@ -0,0 +1,33 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Nuvoton NPCM7XX
|
||||
#@DESCRIPTION: Common machine configuration for Nuvoton NPCM7XX Chip
|
||||
|
||||
require conf/machine/include/nuvoton.inc
|
||||
|
||||
KERNEL_IMAGETYPE ?= "uImage"
|
||||
KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000"
|
||||
|
||||
UBOOT_MACHINE ?= "PolegSVB_config"
|
||||
UBOOT_ENTRYPOINT ?= "0x00008000"
|
||||
UBOOT_LOADADDRESS ?= "0x00008000"
|
||||
|
||||
FLASH_UBOOT_OFFSET = "0"
|
||||
FLASH_UBOOT_ENV_OFFSET = "1024"
|
||||
FLASH_KERNEL_OFFSET = "2048"
|
||||
FLASH_UBI_OFFSET = "${FLASH_KERNEL_OFFSET}"
|
||||
FLASH_ROFS_OFFSET = "7680"
|
||||
FLASH_RWFS_OFFSET = "30720"
|
||||
|
||||
# UBI volume sizes in KB unless otherwise noted.
|
||||
FLASH_UBI_RWFS_SIZE = "6144"
|
||||
FLASH_UBI_RWFS_TXT_SIZE = "6MiB"
|
||||
|
||||
DEFAULTTUNE ?= "arm7a-novfp"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS3"
|
||||
|
||||
SOC_FAMILY = "npcm7xx"
|
||||
include conf/machine/include/soc-family.inc
|
||||
MACHINEOVERRIDES .= ":npcm7xx"
|
||||
|
||||
require conf/machine/include/tune-arm7a-novfp.inc
|
||||
@@ -0,0 +1,59 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: Nuvoton NPCM8XX
|
||||
#@DESCRIPTION: Common machine configuration for Nuvoton NPCM8XX Chip
|
||||
|
||||
require conf/machine/include/nuvoton.inc
|
||||
require conf/machine/include/igps-keys.inc
|
||||
|
||||
KERNEL_IMAGETYPE ?= "Image"
|
||||
KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000"
|
||||
|
||||
UBOOT_MACHINE ?= "ArbelEVB_defconfig"
|
||||
UBOOT_ENTRYPOINT ?= "0x6200000"
|
||||
UBOOT_LOADADDRESS ?= "0x6200000"
|
||||
|
||||
FLASH_SIZE ?= "32768"
|
||||
FLASH_UBOOT_OFFSET ?= "0"
|
||||
FLASH_UBOOT_ENV_OFFSET = "1024"
|
||||
FLASH_KERNEL_OFFSET ?= "2048"
|
||||
FLASH_ROFS_OFFSET ?= "8192"
|
||||
FLASH_RWFS_OFFSET ?= "31744"
|
||||
|
||||
# UBI volume sizes in KB unless otherwise noted.
|
||||
FLASH_UBI_RWFS_SIZE ?= "6144"
|
||||
FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB"
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
|
||||
BB_ALIGN ?= "524288"
|
||||
ATF_ALIGN ?= "4096"
|
||||
OPTEE_ALIGN ?= "4096"
|
||||
UBOOT_ALIGN ?= "4096"
|
||||
ALIGN_END ?= "4096"
|
||||
PAD_ALIGN ?= "32"
|
||||
|
||||
SOC_FAMILY = "npcm8xx"
|
||||
include conf/machine/include/soc-family.inc
|
||||
MACHINEOVERRIDES .= ":npcm8xx"
|
||||
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa35.inc
|
||||
|
||||
UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8"
|
||||
|
||||
COMPATIBLE_MACHINE:npcm8xx = "npcm8xx"
|
||||
TFA_PLATFORM = "npcm845x"
|
||||
|
||||
# Nuvoton prefers optee for BL32.
|
||||
TFA_SPD = "opteed"
|
||||
|
||||
# Nuvoton prefers u-boot as BL33.
|
||||
TFA_UBOOT = "1"
|
||||
|
||||
# Nuvoton prefers TFA default build is BL31.
|
||||
TFA_BUILD_TARGET = "bl31"
|
||||
|
||||
OPTEEMACHINE ?= "nuvoton"
|
||||
|
||||
SECURED_IMAGE ?= "True"
|
||||
|
||||
TIP_IMAGE ?= "True"
|
||||
@@ -0,0 +1,16 @@
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-nuvoton"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-nuvoton"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot-nuvoton"
|
||||
PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-fw-utils-nuvoton"
|
||||
|
||||
WKS_FILE ?= "emmc-nuvoton.wks.in"
|
||||
WKS_FILE_DEPENDS ?= " \
|
||||
virtual/kernel \
|
||||
"
|
||||
WKS_RWFS_SIZE ??= "256M"
|
||||
WKS_ROFS_SIZE ??= "256M"
|
||||
IMAGE_BOOT_FILES ?= "fitImage-${INITRAMFS_IMAGE}-${MACHINE}-${MACHINE};fitImage"
|
||||
IMAGE_FSTYPES:remove:df-phosphor-mmc = "mtd-static mtd-static-tar mtd-static-alltar"
|
||||
|
||||
MACHINEOVERRIDES .= ":nuvoton"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "udev-nuvoton-mtd-partitions"
|
||||
@@ -0,0 +1,11 @@
|
||||
DEFAULTTUNE ?= "arm7a-novfp"
|
||||
|
||||
require conf/machine/include/arm/arch-armv7a.inc
|
||||
|
||||
TUNEVALID[arm7a-novfp] = "Enable arm7a-novfp specific processor optimizations"
|
||||
|
||||
AVAILTUNES += "arm7a-novfp"
|
||||
ARMPKGARCH:tune-arm7a-novfp = "armv7a"
|
||||
TUNE_FEATURES:tune-armv7a = "arm armv7a"
|
||||
TUNE_FEATURES:tune-arm7a-novfp = "${TUNE_FEATURES:tune-armv7a} arm7a-novfp"
|
||||
PACKAGE_EXTRA_ARCHS:tune-arm7a-novfp = "${PACKAGE_EXTRA_ARCHS:tune-armv7a}"
|
||||
Reference in New Issue
Block a user