Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require grub2.inc |
| 2 | |
| 3 | DEPENDS += "autogen-native" |
| 4 | |
| 5 | DEFAULT_PREFERENCE = "-1" |
| 6 | DEFAULT_PREFERENCE_arm = "1" |
| 7 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 8 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/grub-git:" |
| 9 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | PV = "2.00+${SRCPV}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 11 | SRCREV = "b95e92678882f56056c64ae29092bc9cf129905f" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | SRC_URI = "git://git.savannah.gnu.org/grub.git \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 13 | file://0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | file://autogen.sh-exclude-pc.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 15 | file://0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | " |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' |
| 21 | |
| 22 | inherit autotools gettext texinfo |
| 23 | |
| 24 | # configure.ac has code to set this automagically from the target tuple |
| 25 | # but the OE freeform one (core2-foo-bar-linux) don't work with that. |
| 26 | |
| 27 | GRUBPLATFORM_arm = "uboot" |
| 28 | GRUBPLATFORM_aarch64 = "efi" |
| 29 | GRUBPLATFORM ??= "pc" |
| 30 | |
| 31 | EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} --disable-grub-mkfont --program-prefix="" \ |
| 32 | --enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no" |
| 33 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 34 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile', '--disable-largefile', d)}" |
| 35 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | do_configure_prepend() { |
| 37 | ( cd ${S} |
| 38 | ${S}/autogen.sh ) |
| 39 | } |
| 40 | |
| 41 | do_install_append () { |
| 42 | install -d ${D}${sysconfdir}/grub.d |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 43 | rm -rf ${D}${libdir}/charset.alias |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | # debugedit chokes on bare metal binaries |
| 47 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
| 48 | |
| 49 | RDEPENDS_${PN} = "diffutils freetype" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | |
| 51 | INSANE_SKIP_${PN} = "arch" |
| 52 | INSANE_SKIP_${PN}-dbg = "arch" |