mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-19 13:20:36 +00:00
1903233f2b
This marks all packages which depend on a target with @TARGET nonshared. If they are not marked nonshared they would be build by the SDK build and if this happens with a different SDK, then the SDK from the target the package depends on, the package would not be added to the index. This should fix the image builder for some of these packages. This should fix the image builder at least for bcm27xx/bcm2710 and bcm4908/generic. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2018 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=intel-microcode
|
|
PKG_VERSION:=20200616
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=intel-microcode_3.$(PKG_VERSION).$(PKG_RELEASE).tar.xz
|
|
PKG_SOURCE_URL:=@DEBIAN/pool/non-free/i/intel-microcode/
|
|
PKG_HASH:=bcc3b81c452fe4649a948c022475d76c1cdfbb730f36749a082f412f1406a3b9
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-3.$(PKG_VERSION).$(PKG_RELEASE)
|
|
|
|
PKG_BUILD_DEPENDS:=iucode-tool/host
|
|
|
|
ifdef CONFIG_TARGET_x86_64
|
|
MICROCODE:="intel-microcode-64"
|
|
else
|
|
MICROCODE:="intel-microcode"
|
|
endif
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/intel-microcode
|
|
SECTION:=firmware
|
|
CATEGORY:=Firmware
|
|
URL:=$(PKG_SOURCE_URL)
|
|
DEPENDS:=@TARGET_x86
|
|
TITLE:=Intel x86 CPU microcode
|
|
endef
|
|
|
|
define Build/Compile
|
|
IUCODE_TOOL=$(STAGING_DIR)/../host/bin/iucode_tool $(MAKE) -C $(PKG_BUILD_DIR)
|
|
mkdir $(PKG_BUILD_DIR)/intel-ucode-ipkg
|
|
$(STAGING_DIR)/../host/bin/iucode_tool -q \
|
|
--write-firmware=$(PKG_BUILD_DIR)/intel-ucode-ipkg $(PKG_BUILD_DIR)/$(MICROCODE).bin
|
|
endef
|
|
|
|
define Package/intel-microcode/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/intel-ucode
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/intel-ucode-ipkg/* $(1)/lib/firmware/intel-ucode
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,intel-microcode))
|