aboutsummaryrefslogtreecommitdiff
path: root/system/intel-microcode/intel-microcode.SlackBuild
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2018-07-29 17:12:33 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-04 08:40:01 +0700
commit13917c6ac8dcbcc6ca838011dec603613ae0a7f6 (patch)
tree911e9ca7b39fabd8011576219a9eba14cd3763d4 /system/intel-microcode/intel-microcode.SlackBuild
parentd2eba675e8ed130532ed918cda31e176c83d1e91 (diff)
system/intel-microcode: Updated for version 20180703.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/intel-microcode/intel-microcode.SlackBuild')
-rw-r--r--system/intel-microcode/intel-microcode.SlackBuild39
1 files changed, 25 insertions, 14 deletions
diff --git a/system/intel-microcode/intel-microcode.SlackBuild b/system/intel-microcode/intel-microcode.SlackBuild
index 327292b8626d..8311ed2cd379 100644
--- a/system/intel-microcode/intel-microcode.SlackBuild
+++ b/system/intel-microcode/intel-microcode.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for intel-microcode
-# Copyright 2018 Andrzej Telszewski, Banie
+# Copyright 2018 Andrzej Telszewski, Szczecin
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=intel-microcode
SRCNAM=microcode
-VERSION=${VERSION:-20180312}
+VERSION=${VERSION:-20180703}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -39,24 +39,35 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
-mkdir $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tgz -C $SRCNAM-$VERSION
-cd $SRCNAM-$VERSION
-chown root:root microcode.dat
-chmod 0644 microcode.dat
+mkdir $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tgz -C $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/lib/firmware
-cp -a microcode.dat $PKG/lib/firmware
+cp -a intel-ucode $PKG/lib/firmware
-if [ -x /usr/sbin/iucode_tool ]; then
- mkdir -p $PKG/lib/firmware/intel-ucode
- /usr/sbin/iucode_tool -v --list-all -K$PKG/lib/firmware/intel-ucode microcode.dat
- mkdir -p $PKG/boot
- /usr/sbin/iucode_tool -v --write-earlyfw=$PKG/boot/intel-ucode.cpio microcode.dat
+if [ ${INCLUDE_UCODE_WITH_CAVEATS:-no} = yes ]; then
+ if [ -d intel-ucode-with-caveats ]; then
+ cp -a intel-ucode-with-caveats/* $PKG/lib/firmware/intel-ucode
+ fi
fi
+# The "list" file is not always present in the upstream tarball.
+# For consistency, let's ensure it's never present in the package.
+rm -rf $PKG/lib/firmware/intel-ucode/list
+
+mkdir -p $PKG/boot
+iucode_tool -v --write-earlyfw=$PKG/boot/intel-ucode.cpio \
+ $PKG/lib/firmware/intel-ucode
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat releasenote > $PKG/usr/doc/$PRGNAM-$VERSION/RELEASE_NOTE