summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd-boot.bbclass
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-05-17 09:07:47 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-25 22:59:31 (GMT)
commit95bdb9a1bc1cf56d5c631aec8a0f70fa0aced976 (patch)
treeb01ae21d5e65d150417e1cb3f11c62fed5d3df73 /meta/classes/systemd-boot.bbclass
parenta3d160f9e5826140cc8d6b2ed1b38bf022443b08 (diff)
downloadpoky-95bdb9a1bc1cf56d5c631aec8a0f70fa0aced976.tar.gz
systemd-boot: create output dir if it doesn't exist
build_efi_cfg function creates configuration files for systemd-boot entries in 'S' directory. This directory may not exist when api is called, which breaks the build. Creating the directory if it doesn't exist should fix this issue. (From OE-Core rev: 2731d1efba7a03b2c658c8bb57629f5469184599) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/systemd-boot.bbclass')
-rw-r--r--meta/classes/systemd-boot.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 4e69a2c..4412fb1 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -99,6 +99,8 @@ python build_efi_cfg() {
99 bb.fatal('OVERRIDES not defined') 99 bb.fatal('OVERRIDES not defined')
100 100
101 entryfile = "%s/%s.conf" % (s, label) 101 entryfile = "%s/%s.conf" % (s, label)
102 if not os.path.exists(s):
103 os.makedirs(s)
102 d.appendVar("SYSTEMD_BOOT_ENTRIES", " " + entryfile) 104 d.appendVar("SYSTEMD_BOOT_ENTRIES", " " + entryfile)
103 try: 105 try:
104 entrycfg = open(entryfile, "w") 106 entrycfg = open(entryfile, "w")