Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | require grub2.inc |
| 2 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 3 | RDEPENDS_${PN}-common += "${PN}-editenv" |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 4 | RDEPENDS_${PN} += "${PN}-common" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 5 | RDEPENDS_${PN}_class-native = "" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 6 | |
| 7 | RPROVIDES_${PN}-editenv += "${PN}-efi-editenv" |
| 8 | |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 9 | PROVIDES_append_class-native = " grub-efi-native" |
| 10 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 11 | PACKAGES =+ "${PN}-editenv ${PN}-common" |
| 12 | FILES_${PN}-editenv = "${bindir}/grub-editenv" |
| 13 | FILES_${PN}-common = " \ |
| 14 | ${bindir} \ |
| 15 | ${sysconfdir} \ |
| 16 | ${sbindir} \ |
| 17 | ${datadir}/grub \ |
| 18 | " |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 20 | FILES_${PN}-common_append_aarch64 = " \ |
| 21 | ${libdir}/${BPN} \ |
| 22 | " |
| 23 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | do_install_append () { |
| 25 | install -d ${D}${sysconfdir}/grub.d |
| 26 | # Remove build host references... |
| 27 | find "${D}" -name modinfo.sh -type f -exec \ |
| 28 | sed -i \ |
| 29 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 30 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 31 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 32 | {} + |
| 33 | } |
| 34 | |
| 35 | INSANE_SKIP_${PN} = "arch" |
| 36 | INSANE_SKIP_${PN}-dbg = "arch" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 37 | |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 38 | BBCLASSEXTEND = "native nativesdk" |