From 942562e70a01440c4586d25870a8d7be92a6602e Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Wed, 24 Jul 2019 11:25:22 -0300 Subject: sota: add support for freedom-u540 fitImage used by default. Signed-off-by: Ricardo Salveti --- classes/sota_freedom-u540.bbclass | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 classes/sota_freedom-u540.bbclass (limited to 'classes/sota_freedom-u540.bbclass') diff --git a/classes/sota_freedom-u540.bbclass b/classes/sota_freedom-u540.bbclass new file mode 100644 index 0000000..90d11c2 --- /dev/null +++ b/classes/sota_freedom-u540.bbclass @@ -0,0 +1,16 @@ +# Support fitImage by default +KERNEL_CLASSES_sota = " kernel-fitimage " +KERNEL_IMAGETYPE_sota = "fitImage" +KERNEL_IMAGETYPES_remove_sota = "uImage" +OSTREE_KERNEL = "${KERNEL_IMAGETYPE}-${INITRAMFS_IMAGE}-${MACHINE}-${MACHINE}" + +OSTREE_BOOTLOADER ?= "u-boot" +INITRAMFS_FSTYPES = "cpio.gz" +PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" + +IMAGE_BOOT_FILES_sota ?= "fw_payload.bin boot.scr uEnv.txt" +KERNEL_DEVICETREE_sota ?= "sifive/${RISCV_SBI_FDT}" + +OSTREE_KERNEL_ARGS_sota ?= "earlycon=sbi console=ttySIF0 ramdisk_size=16384 root=/dev/ram0 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/mmcblk0p3" + +WKS_FILE_sota = "freedom-u540-opensbi-sota.wks" -- cgit v1.2.3-54-g00ecf