2014-02-04 10:25:57 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# intel-microcode
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-06-21 22:18:48 +02:00
|
|
|
INTEL_MICROCODE_VERSION = 20200616
|
package: remove non-conventional prefix/suffix from github-fetched packages
On Github, a large number of projects name their tag
<some-prefix>-0.3-<some-suffix> (i.e release-3.0, poco-0.1-release,
etc.). In fact majority of the cased adressed in this commit concerns
prefixes.
In most packages, we encode those prefix/suffix in the <pkg>_VERSION
variable.
The problem with this approach is that when used in conjunction with
release-monitoring.org, it doesn't work very well, because
release-monitoring.org has the concept of "version prefix/suffix" and
using that they drop the prefix/suffix to really get the version. For
example on https://release-monitoring.org/project/5418/ the latest
release of "poco" is "1.8.1", not "poco-1.8.1-release".
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org.
Since really the version number of 1.8.1, is makes sense to update our
packages to drop these prefixes/suffixes.
This commit addreses the case of github-fetched packages with
non-conventional prefixes/suffixes.
Note that these changes modify the name of the files stored in DL_DIR,
which means that this will force a re-download of those package source
code for all users, and requires a change to their .hash file.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 08:42:08 +02:00
|
|
|
INTEL_MICROCODE_SITE = $(call github,intel,Intel-Linux-Processor-Microcode-Data-Files,microcode-$(INTEL_MICROCODE_VERSION))
|
2014-02-04 10:25:57 +01:00
|
|
|
INTEL_MICROCODE_LICENSE = PROPRIETARY
|
2018-11-04 22:02:39 +01:00
|
|
|
INTEL_MICROCODE_LICENSE_FILES = license
|
2014-02-04 10:25:57 +01:00
|
|
|
INTEL_MICROCODE_REDISTRIBUTE = NO
|
2019-05-21 00:17:10 +02:00
|
|
|
INTEL_MICROCODE_INSTALL_IMAGES = YES
|
|
|
|
|
|
|
|
define INTEL_MICROCODE_INSTALL_IMAGES_CMDS
|
|
|
|
mkdir -p $(BINARIES_DIR)/intel-ucode
|
|
|
|
$(INSTALL) -m 0644 -t $(BINARIES_DIR)/intel-ucode \
|
|
|
|
$(@D)/intel-ucode/*
|
|
|
|
endef
|
2014-02-04 10:25:57 +01:00
|
|
|
|
2019-05-21 00:17:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_INTEL_MICROCODE_INSTALL_TARGET),y)
|
2014-02-04 10:25:57 +01:00
|
|
|
define INTEL_MICROCODE_INSTALL_TARGET_CMDS
|
2018-12-11 16:30:05 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/lib/firmware/intel-ucode
|
|
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/lib/firmware/intel-ucode \
|
2018-11-04 22:02:39 +01:00
|
|
|
$(@D)/intel-ucode/*
|
2014-02-04 10:25:57 +01:00
|
|
|
endef
|
2019-05-21 00:17:12 +02:00
|
|
|
else
|
|
|
|
INTEL_MICROCODE_INSTALL_TARGET = NO
|
|
|
|
endif
|
2014-02-04 10:25:57 +01:00
|
|
|
|
2020-04-04 14:10:23 +02:00
|
|
|
define INTEL_MICROCODE_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MICROCODE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MICROCODE_INTEL)
|
|
|
|
endef
|
|
|
|
|
2014-02-04 10:25:57 +01:00
|
|
|
$(eval $(generic-package))
|