diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-08-17 09:41:08 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-18 23:46:37 +0100 |
commit | c0a7913bfe784f011b50b172cfe37c2002888043 (patch) | |
tree | 8d319311e15cab508a044459e5d8d6c6f5593007 /meta/recipes-core | |
parent | 6cf439d4c26f2dea021528dc4159955b73bcb3dd (diff) | |
download | poky-c0a7913bfe784f011b50b172cfe37c2002888043.tar.gz |
systemd-boot: Move adjacent to systemd
We always forget to upgrade it when systemd is upgraded, keeping it
next to systemd will be an easy reminder to upgrade this recipe along
with systemd
Define EFI_CC, so far it has been using detection mechanism which
worked with gcc but falls back to native gcc when using non-gcc compiler
as default system compiler e.g. clang
(From OE-Core rev: e70f843b4fb5ee27d46543165a89d56c2ec5ee2e)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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 | ||