You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=gnu-efi
  7. PKG_VERSION:=3.0.9
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_URL:=https://github.com/vathpela/gnu-efi.git
  11. PKG_SOURCE_DATE:=2021-04-11
  12. PKG_SOURCE_VERSION:=3e4d5c79905afcd815b0beb3dcfe2dfae5b3e6dd
  13. PKG_MIRROR_HASH:=7660d2259c1d5208bcabee5a0ffb6dc61f41363a79ba9158f3dd413a8af8e238
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
  16. PKG_LICENSE_FILES:=README.efilib
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/gnu-efi
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=GNU's EFI library
  22. URL:=https://github.com/vathpela/gnu-efi
  23. HIDDEN:=1
  24. DEPENDS:=@TARGET_x86_64
  25. endef
  26. define Package/gnu-efi/description
  27. GNU's EFI library
  28. endef
  29. define Build/Install
  30. $(MAKE_VARS) \
  31. $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
  32. $(MAKE_INSTALL_FLAGS) \
  33. INSTALLROOT=$(PKG_INSTALL_DIR) \
  34. install
  35. endef
  36. define Package/gnu-efi/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/local/lib/** $(1)/usr/lib/
  39. endef
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include/efi
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/local/lib/** $(1)/usr/lib/
  43. cp -aR $(PKG_INSTALL_DIR)/usr/local/include/efi/** $(1)/usr/include/efi/
  44. endef
  45. $(eval $(call BuildPackage,gnu-efi))