summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-17 09:41:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-18 23:46:37 +0100
commitc0a7913bfe784f011b50b172cfe37c2002888043 (patch)
tree8d319311e15cab508a044459e5d8d6c6f5593007 /meta/recipes-core/systemd
parent6cf439d4c26f2dea021528dc4159955b73bcb3dd (diff)
downloadpoky-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/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd-boot_234.bb41
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 @@
1require systemd.inc
2FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:"
3
4DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native"
5
6SRC_URI += "file://0007-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch"
7
8inherit autotools pkgconfig gettext
9inherit deploy
10
11export EFI_CC="${CC}"
12# Man pages are packaged through the main systemd recipe
13EXTRA_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
21TUNE_CCARGS_remove = "-mfpmath=sse"
22COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
23
24do_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
33do_install() {
34 # Bypass systemd installation with a NOP
35 :
36}
37
38do_deploy () {
39 install ${B}/systemd-boot*.efi ${DEPLOYDIR}
40}
41addtask deploy before do_build after do_compile