mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 15:49:32 +02:00
* When adding new source files from upstream the autogen.sh script needs to be run * Rework grub2-remove-sparc64-setup-from-x86-builds.patch to remove the grub-setup helper program grub-sparc64-setup in Makefile.util.def instead of the previous Makefile.util.am to avoid the update for Makefile.util.am in do_patch phase is overwritten by the autogen.sh in do_configure phase (From OE-Core rev: 949df030cf39e7f551302e1e6f86b0a270cd2181) Signed-off-by: Catalin Enache <catalin.enache@windriver.com> Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
47 lines
1.4 KiB
BlitzBasic
47 lines
1.4 KiB
BlitzBasic
require grub2.inc
|
|
|
|
DEFAULT_PREFERENCE = "-1"
|
|
DEFAULT_PREFERENCE_arm = "1"
|
|
|
|
FILESEXTRAPATHS =. "${FILE_DIRNAME}/grub-git:"
|
|
|
|
PV = "2.00+${SRCPV}"
|
|
SRCREV = "7a5b301e3adb8e054288518a325135a1883c1c6c"
|
|
SRC_URI = "git://git.savannah.gnu.org/grub.git \
|
|
file://0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch \
|
|
file://autogen.sh-exclude-pc.patch \
|
|
file://0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
|
|
COMPATIBLE_HOST_armv7a = 'null'
|
|
|
|
inherit autotools gettext texinfo
|
|
|
|
# configure.ac has code to set this automagically from the target tuple
|
|
# but the OE freeform one (core2-foo-bar-linux) don't work with that.
|
|
|
|
GRUBPLATFORM_arm = "uboot"
|
|
GRUBPLATFORM_aarch64 = "efi"
|
|
GRUBPLATFORM ??= "pc"
|
|
|
|
EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} --disable-grub-mkfont --program-prefix="" \
|
|
--enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no"
|
|
|
|
EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile', '--disable-largefile', d)}"
|
|
|
|
do_install_append () {
|
|
install -d ${D}${sysconfdir}/grub.d
|
|
rm -rf ${D}${libdir}/charset.alias
|
|
}
|
|
|
|
# debugedit chokes on bare metal binaries
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
|
|
RDEPENDS_${PN} = "diffutils freetype"
|
|
|
|
INSANE_SKIP_${PN} = "arch"
|
|
INSANE_SKIP_${PN}-dbg = "arch"
|