aboutsummaryrefslogtreecommitdiff
path: root/package/intel-microcode
diff options
context:
space:
mode:
authorGravatar Luca Ceresoli <luca@lucaceresoli.net>2015-07-11 16:15:06 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-12 00:51:19 +0200
commit570566ddc5c0222d89484e8865ed79ba4d543aad (patch)
treeff75ed45da54632224974aa2f5f26711a5d62a29 /package/intel-microcode
parent62803be844b19e32c952cfff995354cf263d0f5d (diff)
downloadbuildroot-570566ddc5c0222d89484e8865ed79ba4d543aad.tar.gz
buildroot-570566ddc5c0222d89484e8865ed79ba4d543aad.tar.bz2
intel-microcode: use <PKG>_STRIP_COMPONENTS
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/intel-microcode')
-rw-r--r--package/intel-microcode/intel-microcode.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/intel-microcode/intel-microcode.mk b/package/intel-microcode/intel-microcode.mk
index 4e8ea906c6..23c4b3ebfb 100644
--- a/package/intel-microcode/intel-microcode.mk
+++ b/package/intel-microcode/intel-microcode.mk
@@ -7,17 +7,17 @@
INTEL_MICROCODE_VERSION = 20150107
INTEL_MICROCODE_SOURCE = microcode-$(INTEL_MICROCODE_VERSION).tgz
INTEL_MICROCODE_SITE = http://downloadmirror.intel.com/24616/eng
+INTEL_MICROCODE_STRIP_COMPONENTS = 0
INTEL_MICROCODE_LICENSE = PROPRIETARY
INTEL_MICROCODE_LICENSE_FILES = license.txt
INTEL_MICROCODE_REDISTRIBUTE = NO
-# N.B. Don't strip any path components during extraction.
-define INTEL_MICROCODE_EXTRACT_CMDS
- gzip -d -c $(DL_DIR)/$(INTEL_MICROCODE_SOURCE) | \
- tar --strip-components=0 -C $(@D) -xf -
+define INTEL_MICROCODE_EXTRACT_LICENSE
head -n 33 $(@D)/microcode.dat > $(@D)/license.txt
endef
+INTEL_MICROCODE_POST_EXTRACT_HOOKS += INTEL_MICROCODE_EXTRACT_LICENSE
+
define INTEL_MICROCODE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0644 $(@D)/microcode.dat \
$(TARGET_DIR)/usr/share/misc/intel-microcode.dat