From d79edf003429c54e5e6ff7a4d4ed8355fcc2c22a Mon Sep 17 00:00:00 2001 From: Lucien Mueller Date: Mon, 12 Nov 2018 17:17:00 +0100 Subject: [PATCH] wks: added wks-file. Added a custom wks-file. BugzID: 54224 Signed-off-by: Lucien Mueller --- classes/sota_am335x-nmhw21.bbclass | 1 + conf/machine/am335x-nmhw21.conf | 3 +++ wic/sdimage-sota-nmhw21.wks | 6 ++++++ 3 files changed, 10 insertions(+) create mode 100644 classes/sota_am335x-nmhw21.bbclass create mode 100644 wic/sdimage-sota-nmhw21.wks diff --git a/classes/sota_am335x-nmhw21.bbclass b/classes/sota_am335x-nmhw21.bbclass new file mode 100644 index 0000000..50d735b --- /dev/null +++ b/classes/sota_am335x-nmhw21.bbclass @@ -0,0 +1 @@ +WKS_FILE_sota = "sdimage-sota-nmhw21.wks" diff --git a/conf/machine/am335x-nmhw21.conf b/conf/machine/am335x-nmhw21.conf index 02f56bf..25e9b05 100644 --- a/conf/machine/am335x-nmhw21.conf +++ b/conf/machine/am335x-nmhw21.conf @@ -12,6 +12,9 @@ MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-devicetree" KERNEL_DEFCONFIG ??= "am335x-nmhw21_defconfig" KERNEL_DEVICETREE = "am335x-nmhw21-prod1.dtb \ " + +SOTA_MACHINE = "${MACHINE}" + KERNEL_IMAGETYPE = "zImage" KERNEL_CLASSES_append_sota = " kernel-fitimage" KERNEL_IMAGETYPE_sota = "fitImage" diff --git a/wic/sdimage-sota-nmhw21.wks b/wic/sdimage-sota-nmhw21.wks new file mode 100644 index 0000000..80607a3 --- /dev/null +++ b/wic/sdimage-sota-nmhw21.wks @@ -0,0 +1,6 @@ +# short-description: Create OTA-enabled SD card image +# long-description: Creates a partitioned SD card image with OSTree + +part SPL --source rawcopy --sourceparams="file=MLO" --ondisk mmcblk --no-table --align 128 +part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 384 +part / --source otaimage --ondisk mmcblk --fstype=ext4 --align 4096