diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/recipes-core/images/core-image-tiny-initramfs.bbappend | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/recipes-core/images/core-image-tiny-initramfs.bbappend b/common/recipes-core/images/core-image-tiny-initramfs.bbappend index bb1a4770..6fe2d7c4 100644 --- a/common/recipes-core/images/core-image-tiny-initramfs.bbappend +++ b/common/recipes-core/images/core-image-tiny-initramfs.bbappend | |||
@@ -1,10 +1,11 @@ | |||
1 | # Set WKS file depending on the MACHINE picked by the user | 1 | # Set WKS file depending on the MACHINE picked by the user applies |
2 | def wks_intel(d): | 2 | # only when using an Intel MACHINE, otherwise leaves it as it is. |
3 | |||
4 | python (){ | ||
3 | if d.getVar('MACHINE', True) == "intel-core2-32": | 5 | if d.getVar('MACHINE', True) == "intel-core2-32": |
4 | d.setVar('WKS_FILE', "systemd-bootdisk-tiny32.wks") | 6 | d.setVar('WKS_FILE', "systemd-bootdisk-tiny32.wks") |
5 | elif d.getVar('MACHINE', True) == "intel-corei7-64": | 7 | elif d.getVar('MACHINE', True) == "intel-corei7-64": |
6 | d.setVar('WKS_FILE', "systemd-bootdisk-tiny64.wks") | 8 | d.setVar('WKS_FILE', "systemd-bootdisk-tiny64.wks") |
7 | elif d.getVar('MACHINE', True) == "intel-quark": | 9 | elif d.getVar('MACHINE', True) == "intel-quark": |
8 | d.setVar('WKS_FILE', "mktinygalileodisk.wks") | 10 | d.setVar('WKS_FILE', "mktinygalileodisk.wks") |
9 | 11 | } | |
10 | WKS_FILE_poky-tiny ?= "${@wks_intel(d)}" | ||