diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-07-25 13:25:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 13:25:03 +0200 |
commit | 2b6af2ab43c8b82bd2c6146a9273abd9d1875abf (patch) | |
tree | 17fed339506954c5d9895d7f7887bf77e64d7de1 | |
parent | 34591f25071df55ccadf01fa33076578583f5db4 (diff) | |
parent | 942562e70a01440c4586d25870a8d7be92a6602e (diff) | |
download | meta-updater-2b6af2ab43c8b82bd2c6146a9273abd9d1875abf.tar.gz |
Merge pull request #565 from ricardosalveti/master
sota: add support for freedom-u540
-rw-r--r-- | classes/sota.bbclass | 1 | ||||
-rw-r--r-- | classes/sota_freedom-u540.bbclass | 16 | ||||
-rw-r--r-- | conf/include/bblayers/sota_freedom-u540.inc | 2 |
3 files changed, 19 insertions, 0 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass index 1a9d68b..d2a065c 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
@@ -58,6 +58,7 @@ SOTA_MACHINE_m3ulcb = "m3ulcb" | |||
58 | SOTA_MACHINE_intel-corei7-64 ?= "minnowboard" | 58 | SOTA_MACHINE_intel-corei7-64 ?= "minnowboard" |
59 | SOTA_MACHINE_qemux86-64 ?= "qemux86-64" | 59 | SOTA_MACHINE_qemux86-64 ?= "qemux86-64" |
60 | SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi" | 60 | SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi" |
61 | SOTA_MACHINE_freedom-u540 ?= "freedom-u540" | ||
61 | 62 | ||
62 | SOTA_OVERRIDES_BLACKLIST = "ostree ota" | 63 | SOTA_OVERRIDES_BLACKLIST = "ostree ota" |
63 | SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO" | 64 | SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO" |
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 @@ | |||
1 | # Support fitImage by default | ||
2 | KERNEL_CLASSES_sota = " kernel-fitimage " | ||
3 | KERNEL_IMAGETYPE_sota = "fitImage" | ||
4 | KERNEL_IMAGETYPES_remove_sota = "uImage" | ||
5 | OSTREE_KERNEL = "${KERNEL_IMAGETYPE}-${INITRAMFS_IMAGE}-${MACHINE}-${MACHINE}" | ||
6 | |||
7 | OSTREE_BOOTLOADER ?= "u-boot" | ||
8 | INITRAMFS_FSTYPES = "cpio.gz" | ||
9 | PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" | ||
10 | |||
11 | IMAGE_BOOT_FILES_sota ?= "fw_payload.bin boot.scr uEnv.txt" | ||
12 | KERNEL_DEVICETREE_sota ?= "sifive/${RISCV_SBI_FDT}" | ||
13 | |||
14 | OSTREE_KERNEL_ARGS_sota ?= "earlycon=sbi console=ttySIF0 ramdisk_size=16384 root=/dev/ram0 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/mmcblk0p3" | ||
15 | |||
16 | WKS_FILE_sota = "freedom-u540-opensbi-sota.wks" | ||
diff --git a/conf/include/bblayers/sota_freedom-u540.inc b/conf/include/bblayers/sota_freedom-u540.inc new file mode 100644 index 0000000..977f96b --- /dev/null +++ b/conf/include/bblayers/sota_freedom-u540.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | BBLAYERS += "${METADIR}/meta-riscv" | ||
2 | BBLAYERS += "${METADIR}/meta-updater-riscv" | ||