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" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | |
| 6 | RPROVIDES_${PN}-editenv += "${PN}-efi-editenv" |
| 7 | |
| 8 | PACKAGES =+ "${PN}-editenv ${PN}-common" |
| 9 | FILES_${PN}-editenv = "${bindir}/grub-editenv" |
| 10 | FILES_${PN}-common = " \ |
| 11 | ${bindir} \ |
| 12 | ${sysconfdir} \ |
| 13 | ${sbindir} \ |
| 14 | ${datadir}/grub \ |
| 15 | " |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 17 | FILES_${PN}-common_append_aarch64 = " \ |
| 18 | ${libdir}/${BPN} \ |
| 19 | " |
| 20 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | do_install_append () { |
| 22 | install -d ${D}${sysconfdir}/grub.d |
| 23 | # Remove build host references... |
| 24 | find "${D}" -name modinfo.sh -type f -exec \ |
| 25 | sed -i \ |
| 26 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 27 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 28 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 29 | {} + |
| 30 | } |
| 31 | |
| 32 | INSANE_SKIP_${PN} = "arch" |
| 33 | INSANE_SKIP_${PN}-dbg = "arch" |