From ce81e55f62f22f662e3466593c9434a46142f3c5 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Date: Mon, 20 Feb 2017 22:42:16 +0000 Subject: core-image-tiny-initramfs: Choose WKS_FILE correctly between architectures Signed-off-by: Alejandro Hernandez --- common/recipes-core/images/core-image-tiny-initramfs.bbappend | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/recipes-core/images/core-image-tiny-initramfs.bbappend (limited to 'common') 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)}" -- cgit v1.2.3-54-g00ecf