diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/systemd/systemd-boot_243.bb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_243.bb b/meta/recipes-core/systemd/systemd-boot_243.bb index 56a25c35ba..515abc289b 100644 --- a/meta/recipes-core/systemd/systemd-boot_243.bb +++ b/meta/recipes-core/systemd/systemd-boot_243.bb | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | require systemd.inc | 1 | require systemd.inc |
| 2 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:" | 2 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:" |
| 3 | 3 | ||
| 4 | require conf/image-uefi.conf | ||
| 5 | |||
| 4 | DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native" | 6 | DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native" |
| 5 | 7 | ||
| 6 | # NOTE: These three patches are in theory not needed, but we haven't | 8 | # NOTE: These three patches are in theory not needed, but we haven't |
| @@ -33,16 +35,13 @@ python __anonymous () { | |||
| 33 | import re | 35 | import re |
| 34 | target = d.getVar('TARGET_ARCH') | 36 | target = d.getVar('TARGET_ARCH') |
| 35 | prefix = "" if d.getVar('EFI_PROVIDER') == "systemd-boot" else "systemd-" | 37 | prefix = "" if d.getVar('EFI_PROVIDER') == "systemd-boot" else "systemd-" |
| 36 | if target == "x86_64": | 38 | systemdimage = prefix + d.getVar("EFI_BOOT_IMAGE") |
| 37 | systemdimage = prefix + "bootx64.efi" | ||
| 38 | else: | ||
| 39 | systemdimage = prefix + "bootia32.efi" | ||
| 40 | d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage) | 39 | d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage) |
| 41 | prefix = "systemd-" if prefix == "" else "" | 40 | prefix = "systemd-" if prefix == "" else "" |
| 42 | d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix) | 41 | d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix) |
| 43 | } | 42 | } |
| 44 | 43 | ||
| 45 | FILES_${PN} = "/boot/EFI/BOOT/${SYSTEMD_BOOT_IMAGE}" | 44 | FILES_${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}" |
| 46 | 45 | ||
| 47 | RDEPENDS_${PN} += "virtual/systemd-bootconf" | 46 | RDEPENDS_${PN} += "virtual/systemd-bootconf" |
| 48 | 47 | ||
| @@ -61,10 +60,8 @@ do_compile() { | |||
| 61 | } | 60 | } |
| 62 | 61 | ||
| 63 | do_install() { | 62 | do_install() { |
| 64 | install -d ${D}/boot | 63 | install -d ${D}${EFI_FILES_PATH} |
| 65 | install -d ${D}/boot/EFI | 64 | install ${B}/src/boot/efi/systemd-boot*.efi ${D}${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE} |
| 66 | install -d ${D}/boot/EFI/BOOT | ||
| 67 | install ${B}/src/boot/efi/systemd-boot*.efi ${D}/boot/EFI/BOOT/${SYSTEMD_BOOT_IMAGE} | ||
| 68 | } | 65 | } |
| 69 | 66 | ||
| 70 | do_deploy () { | 67 | do_deploy () { |
