mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 10:59:41 +01:00
Use lnr instead of "ln --relative" as systemd does to avoid needing coreutils 8.16. The patch is from systemd recipe and is rebased so it can be applied for systemd-boot. (From OE-Core rev: 7acc8c456fee53bf637fe08e492dd5466998c585) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
959 B
BlitzBasic
39 lines
959 B
BlitzBasic
require recipes-core/systemd/systemd.inc
|
|
|
|
DEPENDS = "intltool-native libcap util-linux gnu-efi"
|
|
|
|
SRC_URI += "file://0001-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch"
|
|
|
|
inherit autotools pkgconfig gettext
|
|
inherit deploy
|
|
|
|
EXTRA_OECONF = " --enable-gnuefi \
|
|
--with-efi-includedir=${STAGING_INCDIR} \
|
|
--with-efi-ldsdir=${STAGING_LIBDIR} \
|
|
--with-efi-libdir=${STAGING_LIBDIR} \
|
|
--disable-manpages \
|
|
"
|
|
|
|
# Imported from gummiboot recipe
|
|
TUNE_CCARGS_remove = "-mfpmath=sse"
|
|
COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
|
|
|
|
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
|