2016-05-05 18:20:37 +00:00
|
|
|
require recipes-core/systemd/systemd.inc
|
|
|
|
|
|
|
|
DEPENDS = "intltool-native libcap util-linux gnu-efi"
|
|
|
|
|
2016-07-27 02:42:29 +00:00
|
|
|
SRC_URI += "file://0001-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch"
|
|
|
|
|
2016-05-05 18:20:37 +00:00
|
|
|
inherit autotools pkgconfig gettext
|
|
|
|
inherit deploy
|
|
|
|
|
2016-09-29 13:24:20 +00:00
|
|
|
# Man pages are packaged through the main systemd recipe
|
2016-05-05 18:20:37 +00:00
|
|
|
EXTRA_OECONF = " --enable-gnuefi \
|
|
|
|
--with-efi-includedir=${STAGING_INCDIR} \
|
|
|
|
--with-efi-ldsdir=${STAGING_LIBDIR} \
|
|
|
|
--with-efi-libdir=${STAGING_LIBDIR} \
|
|
|
|
--disable-manpages \
|
|
|
|
"
|
|
|
|
|
2016-11-23 22:53:30 +00:00
|
|
|
# Imported from the old gummiboot recipe
|
2016-05-05 18:20:37 +00:00
|
|
|
TUNE_CCARGS_remove = "-mfpmath=sse"
|
2016-06-11 01:04:47 +00:00
|
|
|
COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
|
2016-05-05 18:20:37 +00:00
|
|
|
|
|
|
|
do_compile() {
|
|
|
|
SYSTEMD_BOOT_EFI_ARCH="ia32"
|
|
|
|
if [ "${TARGET_ARCH}" = "x86_64" ]; then
|
|
|
|
SYSTEMD_BOOT_EFI_ARCH="x64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
oe_runmake systemd-boot${SYSTEMD_BOOT_EFI_ARCH}.efi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# Bypass systemd installation with a NOP
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
do_deploy () {
|
|
|
|
install ${B}/systemd-boot*.efi ${DEPLOYDIR}
|
|
|
|
}
|
|
|
|
addtask deploy before do_build after do_compile
|