wks: added wks-file.

Added a custom wks-file.

BugzID: 54224

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
Lucien Mueller 2018-11-12 17:17:00 +01:00 committed by Gogs
parent 876663971c
commit d79edf0034
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
WKS_FILE_sota = "sdimage-sota-nmhw21.wks"

View File

@ -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"

View File

@ -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