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