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" |
| 4 | RDEPENDS_${PN} += "diffutils freetype ${PN}-common" |
| 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 | |
| 17 | do_install_append () { |
| 18 | install -d ${D}${sysconfdir}/grub.d |
| 19 | # Remove build host references... |
| 20 | find "${D}" -name modinfo.sh -type f -exec \ |
| 21 | sed -i \ |
| 22 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 23 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 24 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 25 | {} + |
| 26 | } |
| 27 | |
| 28 | INSANE_SKIP_${PN} = "arch" |
| 29 | INSANE_SKIP_${PN}-dbg = "arch" |