diff options
-rw-r--r-- | recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc b/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc index e27d4951..bbe3aea2 100644 --- a/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc +++ b/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc | |||
@@ -1,6 +1,19 @@ | |||
1 | # This patchset contains hooks that allows systemd-boot to use RMC capablilities. | 1 | # This patchset contains hooks that allows systemd-boot to use RMC capablilities. |
2 | python __anonymous () { | ||
3 | import re | ||
4 | target = d.getVar('TARGET_ARCH') | ||
5 | prefix = "" if d.getVar('EFI_PROVIDER') == "rmc-boot" else "systemd-" | ||
6 | if target == "x86_64": | ||
7 | systemdimage = prefix + "bootx64.efi" | ||
8 | else: | ||
9 | systemdimage = prefix + "bootia32.efi" | ||
10 | d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage) | ||
11 | prefix = "systemd-" if prefix == "" else "" | ||
12 | d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix) | ||
13 | } | ||
2 | 14 | ||
3 | DEPENDS_append_intel-x86-common = " rmc rmc-efi" | 15 | DEPENDS_append_intel-x86-common = " rmc rmc-efi" |
16 | RDEPENDS_${PN}_append_intel-x86-common = " rmc-db" | ||
4 | 17 | ||
5 | EXTRA_OEMESON_append_intel-x86-common = ' \ | 18 | EXTRA_OEMESON_append_intel-x86-common = ' \ |
6 | -Drmc-includedir="${STAGING_INCDIR}/rmc" \ | 19 | -Drmc-includedir="${STAGING_INCDIR}/rmc" \ |
@@ -13,3 +26,5 @@ SRC_URI_append_intel-x86-common = " \ | |||
13 | file://0004-sd-boot-Support-global-kernel-command-line-fragment.patch \ | 26 | file://0004-sd-boot-Support-global-kernel-command-line-fragment.patch \ |
14 | file://0005-sd-boot-support-global-kernel-command-line-in-EFI-st.patch \ | 27 | file://0005-sd-boot-support-global-kernel-command-line-in-EFI-st.patch \ |
15 | " | 28 | " |
29 | |||
30 | RPROVIDES_${PN} += "rmc-boot" | ||