mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-05 05:04:45 +02:00

Since there could be a case on which meta-intel is parsed but no Intel MACHINE is selected which would turn out in an error where no value is assigned to WKS_FILE. We set WKS_FILE directly and specifically for any of the available Intel MACHINES, and otherwise we leave it as it is. Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 lines
486 B
Plaintext
12 lines
486 B
Plaintext
# Set WKS file depending on the MACHINE picked by the user applies
|
|
# only when using an Intel MACHINE, otherwise leaves it as it is.
|
|
|
|
python (){
|
|
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")
|
|
}
|