From 95bdb9a1bc1cf56d5c631aec8a0f70fa0aced976 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 17 May 2017 12:07:47 +0300 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/systemd-boot.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/systemd-boot.bbclass') 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") -- cgit v1.2.3-54-g00ecf