1
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <wigyori@uid0.hu>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/host-build.mk
  20. define Package/iucode-tool
  21. SECTION:=utils
  22. CATEGORY:=Base system
  23. URL:=$(PKG_SOURCE_URL)
  24. DEPENDS:=@TARGET_x86
  25. TITLE:=Intel microcode loader
  26. endef
  27. define Package/iucode-tool/install
  28. $(INSTALL_DIR) $(1)/lib/firmware
  29. $(INSTALL_DIR) $(1)/usr/bin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/iucode_tool $(1)/usr/bin/
  31. endef
  32. define Host/Install
  33. $(INSTALL_BIN) $(HOST_BUILD_DIR)/iucode_tool $(STAGING_DIR_HOST)/bin/iucode_tool
  34. endef
  35. $(eval $(call HostBuild))
  36. $(eval $(call BuildPackage,iucode-tool))