summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd-boot.bbclass
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-05-17 12:07:47 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-23 17:44:57 +0100
commit2731d1efba7a03b2c658c8bb57629f5469184599 (patch)
treeb276d6a823f0099e92574bf23832a161739936d0 /meta/classes/systemd-boot.bbclass
parent496a9dc179fe9dc370c940f4a2f7bcab869a804f (diff)
downloadopenembedded-core-2731d1efba7a03b2c658c8bb57629f5469184599.tar.gz
openembedded-core-2731d1efba7a03b2c658c8bb57629f5469184599.tar.bz2
openembedded-core-2731d1efba7a03b2c658c8bb57629f5469184599.zip
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. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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 4e69a2c6b5..4412fb1ef7 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -99,6 +99,8 @@ python build_efi_cfg() {
bb.fatal('OVERRIDES not defined')
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")