Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=iucode-tool
  9. PKG_VERSION:=2.3.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=iucode-tool_$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://gitlab.com/iucode-tool/releases/raw/latest
  13. PKG_HASH:=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
  14. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
  15. PKG_MAINTAINER:=Zoltan HERPAI <[email protected]>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_FLAGS:=nonshared
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/host-build.mk
  21. define Package/iucode-tool
  22. SECTION:=utils
  23. CATEGORY:=Base system
  24. URL:=$(PKG_SOURCE_URL)
  25. DEPENDS:=@TARGET_x86
  26. TITLE:=Intel microcode loader
  27. endef
  28. define Package/iucode-tool/install
  29. $(INSTALL_DIR) $(1)/lib/firmware
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/iucode_tool $(1)/usr/bin/
  32. endef
  33. define Host/Install
  34. $(INSTALL_BIN) $(HOST_BUILD_DIR)/iucode_tool $(STAGING_DIR_HOST)/bin/iucode_tool
  35. endef
  36. $(eval $(call HostBuild))
  37. $(eval $(call BuildPackage,iucode-tool))