diff options
Diffstat (limited to 'meta/recipes-bsp/systemd-boot/systemd-boot_232.bb')
| -rw-r--r-- | meta/recipes-bsp/systemd-boot/systemd-boot_232.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-bsp/systemd-boot/systemd-boot_232.bb b/meta/recipes-bsp/systemd-boot/systemd-boot_232.bb new file mode 100644 index 0000000000..70366643c6 --- /dev/null +++ b/meta/recipes-bsp/systemd-boot/systemd-boot_232.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | require recipes-core/systemd/systemd.inc | ||
| 2 | |||
| 3 | DEPENDS = "intltool-native libcap util-linux gnu-efi" | ||
| 4 | |||
| 5 | SRC_URI += "file://0001-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch" | ||
| 6 | |||
| 7 | inherit autotools pkgconfig gettext | ||
| 8 | inherit deploy | ||
| 9 | |||
| 10 | # Man pages are packaged through the main systemd recipe | ||
| 11 | EXTRA_OECONF = " --enable-gnuefi \ | ||
| 12 | --with-efi-includedir=${STAGING_INCDIR} \ | ||
| 13 | --with-efi-ldsdir=${STAGING_LIBDIR} \ | ||
| 14 | --with-efi-libdir=${STAGING_LIBDIR} \ | ||
| 15 | --disable-manpages \ | ||
| 16 | " | ||
| 17 | |||
| 18 | # Imported from gummiboot recipe | ||
| 19 | TUNE_CCARGS_remove = "-mfpmath=sse" | ||
| 20 | COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux" | ||
| 21 | |||
| 22 | do_compile() { | ||
| 23 | SYSTEMD_BOOT_EFI_ARCH="ia32" | ||
| 24 | if [ "${TARGET_ARCH}" = "x86_64" ]; then | ||
| 25 | SYSTEMD_BOOT_EFI_ARCH="x64" | ||
| 26 | fi | ||
| 27 | |||
| 28 | oe_runmake systemd-boot${SYSTEMD_BOOT_EFI_ARCH}.efi | ||
| 29 | } | ||
| 30 | |||
| 31 | do_install() { | ||
| 32 | # Bypass systemd installation with a NOP | ||
| 33 | : | ||
| 34 | } | ||
| 35 | |||
| 36 | do_deploy () { | ||
| 37 | install ${B}/systemd-boot*.efi ${DEPLOYDIR} | ||
| 38 | } | ||
| 39 | addtask deploy before do_build after do_compile | ||
