mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

* both use KERNEL_IMAGETYPE variable which is MACHINE specific * fixes: === Comparing signatures for task do_configure.sigdata between hammerhead and mako === ERROR: grub-bootconf different signature for task do_configure.sigdata between hammerhead and mako basehash changed from 710332f3ec15670302dd690708730c9e418d53790ce36d6a91b049ae4f7069b1 to c9a46e58b4634b5fd47d20683f8320e15f5c4cb7628e3a62ed97d8528d7aabd2 Variable KERNEL_IMAGETYPE value changed from 'zImage-dtb' to 'zImage' ERROR: systemd-bootconf different signature for task do_configure.sigdata between hammerhead and mako basehash changed from 2abbaf6d7760696fbf1ff5df5705239b475ccbf6f0c831fc4031984c0ce0e9f2 to 24f1e7886dee02b04bc180acc1c946ad82ce842655e5a5f4a8006f4a8490f985 Variable KERNEL_IMAGETYPE value changed from 'zImage-dtb' to 'zImage' detected with: openembedded-core/scripts/sstate-diff-machines.sh --targets=world --tmpdir=tmp-glibc/ --analyze --machines="hammerhead mako qemux86" (From OE-Core rev: 90a47da8c50da49ecaf0e2786dc4d9a78c61189e) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
|
|
SYSTEMD_BOOT_ENTRIES ?= ""
|
|
SYSTEMD_BOOT_TIMEOUT ?= "10"
|
|
|
|
# Uses MACHINE specific KERNEL_IMAGETYPE
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
# Need UUID utility code.
|
|
inherit fs-uuid
|
|
|
|
python build_efi_cfg() {
|
|
s = d.getVar("S")
|
|
labels = d.getVar('LABELS')
|
|
if not labels:
|
|
bb.debug(1, "LABELS not defined, nothing to do")
|
|
return
|
|
|
|
if labels == []:
|
|
bb.debug(1, "No labels, nothing to do")
|
|
return
|
|
|
|
cfile = d.getVar('SYSTEMD_BOOT_CFG')
|
|
cdir = os.path.dirname(cfile)
|
|
if not os.path.exists(cdir):
|
|
os.makedirs(cdir)
|
|
try:
|
|
cfgfile = open(cfile, 'w')
|
|
except OSError:
|
|
bb.fatal('Unable to open %s' % cfile)
|
|
|
|
cfgfile.write('# Automatically created by OE\n')
|
|
cfgfile.write('default %s\n' % (labels.split()[0]))
|
|
timeout = d.getVar('SYSTEMD_BOOT_TIMEOUT')
|
|
if timeout:
|
|
cfgfile.write('timeout %s\n' % timeout)
|
|
else:
|
|
cfgfile.write('timeout 10\n')
|
|
cfgfile.close()
|
|
|
|
for label in labels.split():
|
|
localdata = d.createCopy()
|
|
|
|
entryfile = "%s/%s.conf" % (s, label)
|
|
if not os.path.exists(s):
|
|
os.makedirs(s)
|
|
d.appendVar("SYSTEMD_BOOT_ENTRIES", " " + entryfile)
|
|
try:
|
|
entrycfg = open(entryfile, "w")
|
|
except OSError:
|
|
bb.fatal('Unable to open %s' % entryfile)
|
|
|
|
entrycfg.write('title %s\n' % label)
|
|
|
|
kernel = localdata.getVar("KERNEL_IMAGETYPE")
|
|
entrycfg.write('linux /%s\n' % kernel)
|
|
|
|
append = localdata.getVar('APPEND')
|
|
initrd = localdata.getVar('INITRD')
|
|
|
|
if initrd:
|
|
entrycfg.write('initrd /initrd\n')
|
|
lb = label
|
|
if label == "install":
|
|
lb = "install-efi"
|
|
entrycfg.write('options LABEL=%s ' % lb)
|
|
if append:
|
|
append = replace_rootfs_uuid(d, append)
|
|
entrycfg.write('%s' % append)
|
|
entrycfg.write('\n')
|
|
entrycfg.close()
|
|
}
|