Skip to contentSkip to conversation

genericx86: add genericx86.wks

PATCH New Ed Bartosh 1 participant 1 message Jan 9, 2017

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 genericx86: add genericx86.wks

Currently genericx86* machines use mkefidisk.wks from scripts/lib/wic/canned-wks. It'd be easier to find this file if it's name contains machine name and it's located in the same layer.

Added genericx86.wks to meta-yocto-bsp/wic/ to make it independent from changes in oe-core and easier to maintain.

[YOCTO #8719]

---
 meta-yocto-bsp/conf/machine/include/genericx86-common.inc | 2 +-
 meta-yocto-bsp/wic/genericx86.wks                         | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 meta-yocto-bsp/wic/genericx86.wks
meta-yocto-bsp/conf/machine/include/genericx86-common.inc +1 -1
index eb6f0b9..cec7970 100644
@@ -21,6 +21,6 @@ GLIBC_ADDONS = "nptl"
 EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi"
 
 IMAGE_FSTYPES += "wic wic.bmap"
-WKS_FILE ?= "mkefidisk.wks"
+WKS_FILE ?= "genericx86.wks"
 do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot"
 do_image_wic[recrdeptask] += "do_bootimg"
meta-yocto-bsp/wic/genericx86.wks new file +7 -0
new file mode 100644
index 0000000..dab719c
@@ -0,0 +1,7 @@
+# short-description: Create an EFI disk image for genericx86*
+# long-description: Creates a partitioned EFI disk image for genericx86* machines
+part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active --align 1024
+part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
+part swap --ondisk sda --size 44 --label swap1 --fstype=swap
+
+bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4 console=ttyS0,115200 console=tty0"
Signature · 1 line
2.1.4