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.

66 lines
1.8 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:=gummiboot
  7. PKG_VERSION:=45
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_URL:=https://github.com/rzr/gummiboot.git
  11. PKG_SOURCE_DATE:=2021-04-11
  12. PKG_SOURCE_VERSION:=eb3daf2ca4cb1657cf1f780957485d690a552bf6
  13. PKG_MIRROR_HASH:=4c57791693b57bbe36e85b49d70310728b8008c4c545006a71c5a5f71b8df501
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_BUILD_DEPENDS:=gnu-efi
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/gummiboot
  22. SECTION:=boot
  23. CATEGORY:=Boot Loaders
  24. TITLE:=Simple UEFI boot manager
  25. DEPENDS:=@TARGET_X86_64 +libblkid
  26. URL:=https://github.com/rzr/gummiboot
  27. endef
  28. define Package/gummiboot/description
  29. gummiboot Simple UEFI boot manager
  30. gummiboot executes EFI images. The default entry is selected by a configured
  31. pattern (glob) or an on-screen menu.
  32. endef
  33. CONFIGURE_ARGS += \
  34. --with-efi-libdir=$(STAGING_DIR)/usr/lib \
  35. --with-efi-ldsdir=$(STAGING_DIR)/usr/lib \
  36. --with-efi-includedir=$(STAGING_DIR)/usr/include
  37. define Build/Compile
  38. +$(MAKE_VARS) EFI_CFLAGS="-I$(TOOLCHAIN_DIR)/include $(TARGET_CFLAGS)" \
  39. $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
  40. $(MAKE_FLAGS) \
  41. $(1);
  42. endef
  43. define Build/Install
  44. $(MAKE_VARS) EFI_CFLAGS="-I$(TOOLCHAIN_DIR)/include $(TARGET_CFLAGS)" \
  45. $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
  46. $(MAKE_INSTALL_FLAGS) install
  47. endef
  48. define Package/gummiboot/install
  49. $(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/lib/gummiboot
  50. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/gummiboot/gummibootx64.efi $(1)/usr/lib/gummiboot/
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gummiboot $(1)/usr/sbin/
  52. endef
  53. $(eval $(call BuildPackage,gummiboot))