Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:=amd64-microcode
  9. PKG_VERSION:=20180524
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=amd64-microcode_3.$(PKG_VERSION).$(PKG_RELEASE).tar.xz
  12. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/non-free/a/amd64-microcode/
  13. PKG_HASH:=7c389c357c242e7161f6872bf4e12011a71e4c0683f06fb1bcfad650a78bf0a9
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-3.$(PKG_VERSION).$(PKG_RELEASE)
  15. PKG_LICENSE_FILE:=LICENSE.amd-ucode
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/amd64-microcode
  18. SECTION:=firmware
  19. CATEGORY:=Firmware
  20. URL:=$(PKG_SOURCE_URL)
  21. DEPENDS:=@TARGET_x86
  22. TITLE:=AMD64 CPU microcode
  23. endef
  24. define Build/Prepare
  25. rm -rf $(PKG_BUILD_DIR)
  26. mkdir -p $(PKG_BUILD_DIR)
  27. $(TAR) -C $(BUILD_DIR) -xJf $(DL_DIR)/$(PKG_SOURCE)
  28. endef
  29. define Build/Compile
  30. endef
  31. define Package/amd64-microcode/install
  32. $(INSTALL_DIR) $(1)/lib/firmware/amd-ucode
  33. $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.bin $(1)/lib/firmware/amd-ucode
  34. endef
  35. $(eval $(call BuildPackage,amd64-microcode))