grub_2.12.bb 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. require grub2.inc
  2. RDEPENDS:${PN}-common += "${PN}-editenv"
  3. RDEPENDS:${PN} += "${PN}-common"
  4. RDEPENDS:${PN}:class-native = ""
  5. RPROVIDES:${PN}-editenv += "${PN}-efi-editenv"
  6. PROVIDES:append:class-native = " grub-efi-native"
  7. PACKAGES =+ "${PN}-editenv ${PN}-common"
  8. FILES:${PN}-editenv = "${bindir}/grub-editenv"
  9. FILES:${PN}-common = " \
  10. ${bindir} \
  11. ${sysconfdir} \
  12. ${sbindir} \
  13. ${datadir}/grub \
  14. "
  15. ALLOW_EMPTY:${PN} = "1"
  16. do_install:append () {
  17. # Avoid conflicts with the EFI package for systems such as arm64 where we
  18. # need to build grub and grub-efi but only EFI is supported by removing EFI
  19. # from this package.
  20. rm -rf ${D}${libdir}/grub/*-efi/
  21. rmdir --ignore-fail-on-non-empty ${D}${libdir}/grub ${D}${libdir}
  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. INSANE_SKIP:${PN} = "arch"
  32. INSANE_SKIP:${PN}-dbg = "arch"
  33. BBCLASSEXTEND = "native nativesdk"