diff options
Diffstat (limited to 'common/recipes-core/images/core-image-tiny-initramfs.bbappend')
-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 @@ | |||
1 | # Set WKS file depending on the MACHINE picked by the user | ||
2 | def wks_intel(d): | ||
3 | if d.getVar('MACHINE', True) == "intel-core2-32": | ||
4 | d.setVar('WKS_FILE', "systemd-bootdisk-tiny32.wks") | ||
5 | elif d.getVar('MACHINE', True) == "intel-corei7-64": | ||
6 | d.setVar('WKS_FILE', "systemd-bootdisk-tiny64.wks") | ||
7 | elif d.getVar('MACHINE', True) == "intel-quark": | ||
8 | d.setVar('WKS_FILE', "mktinygalileodisk.wks") | ||
9 | |||
10 | WKS_FILE_poky-tiny ?= "${@wks_intel(d)}" | ||