diff options
-rw-r--r-- | common/recipes-core/images/core-image-tiny-initramfs.bbappend | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/recipes-core/images/core-image-tiny-initramfs.bbappend b/common/recipes-core/images/core-image-tiny-initramfs.bbappend new file mode 100644 index 00000000..bb1a4770 --- /dev/null +++ b/common/recipes-core/images/core-image-tiny-initramfs.bbappend @@ -0,0 +1,10 @@ +# Set WKS file depending on the MACHINE picked by the user +def wks_intel(d): + if d.getVar('MACHINE', True) == "intel-core2-32": + d.setVar('WKS_FILE', "systemd-bootdisk-tiny32.wks") + elif d.getVar('MACHINE', True) == "intel-corei7-64": + d.setVar('WKS_FILE', "systemd-bootdisk-tiny64.wks") + elif d.getVar('MACHINE', True) == "intel-quark": + d.setVar('WKS_FILE', "mktinygalileodisk.wks") + +WKS_FILE_poky-tiny ?= "${@wks_intel(d)}" |