1require grub2.inc 2 3RDEPENDS:${PN}-common += "${PN}-editenv" 4RDEPENDS:${PN} += "${PN}-common" 5RDEPENDS:${PN}:class-native = "" 6 7RPROVIDES:${PN}-editenv += "${PN}-efi-editenv" 8 9PROVIDES:append:class-native = " grub-efi-native" 10 11PACKAGES =+ "${PN}-editenv ${PN}-common" 12FILES:${PN}-editenv = "${bindir}/grub-editenv" 13FILES:${PN}-common = " \ 14 ${bindir} \ 15 ${sysconfdir} \ 16 ${sbindir} \ 17 ${datadir}/grub \ 18" 19ALLOW_EMPTY:${PN} = "1" 20 21do_install:append () { 22 # Avoid conflicts with the EFI package for systems such as arm64 where we 23 # need to build grub and grub-efi but only EFI is supported by removing EFI 24 # from this package. 25 rm -rf ${D}${libdir}/grub/*-efi/ 26 rmdir --ignore-fail-on-non-empty ${D}${libdir}/grub ${D}${libdir} 27 28 install -d ${D}${sysconfdir}/grub.d 29 # Remove build host references... 30 find "${D}" -name modinfo.sh -type f -exec \ 31 sed -i \ 32 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ 33 -e 's|${DEBUG_PREFIX_MAP}||g' \ 34 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ 35 {} + 36} 37 38INSANE_SKIP:${PN} = "arch" 39INSANE_SKIP:${PN}-dbg = "arch" 40 41BBCLASSEXTEND = "native nativesdk" 42