]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd-boot: create output dir if it doesn't exist
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 17 May 2017 09:07:47 +0000 (12:07 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 May 2017 16:44:57 +0000 (17:44 +0100)
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>
meta/classes/systemd-boot.bbclass

index 4e69a2c6b55f05a8edcc3f6a67bab97427c87bc0..4412fb1ef7dfa7c56d93f18de1644443449ce06e 100644 (file)
@@ -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")