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