diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-05-17 12:07:47 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-25 23:59:31 +0100 |
commit | 95bdb9a1bc1cf56d5c631aec8a0f70fa0aced976 (patch) | |
tree | b01ae21d5e65d150417e1cb3f11c62fed5d3df73 /meta | |
parent | a3d160f9e5826140cc8d6b2ed1b38bf022443b08 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/systemd-boot.bbclass | 2 |
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() { | |||
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") |