From 5818da262dc0ce56bb1d5439b6d139bc08c25554 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Fri, 13 Dec 2013 16:56:23 -0600 Subject: cpu/intel: (non-FSP) Remove microcode updates from tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we use the microcode updates in the blobs repository, remove them from the main repo. Since the microcode updates are blobs, it makes more sense to ship them in the blobs repo rather than the main one. The update-microcodes.sh script is also deleted, as a more current version resides in 3rdparty. Change-Id: Iee74a3ede3b5eb684ef0386d270120e70173c1b4 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/4531 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Kyösti Mälkki Reviewed-by: Patrick Georgi --- src/cpu/intel/microcode/update-microcodes.sh | 107 --------------------------- 1 file changed, 107 deletions(-) delete mode 100755 src/cpu/intel/microcode/update-microcodes.sh (limited to 'src/cpu/intel/microcode') diff --git a/src/cpu/intel/microcode/update-microcodes.sh b/src/cpu/intel/microcode/update-microcodes.sh deleted file mode 100755 index febf6f9761..0000000000 --- a/src/cpu/intel/microcode/update-microcodes.sh +++ /dev/null @@ -1,107 +0,0 @@ -#!/bin/bash -# -# This file is part of the coreboot project. -# -# Copyright (C) 2007-2010 coresystems GmbH -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# - -MICROCODE_VERSION=20130222 -MICROCODE_ARCHIVE=microcode-$MICROCODE_VERSION.tgz -MICROCODE_FILE=microcode.dat -INTEL_MICROCODE=http://downloadmirror.intel.com/22508/eng/$MICROCODE_ARCHIVE - -# -# Getting Intel(R) Microcode -# - -get_microcode() { - printf "Getting microcode...\n" - wget -nv $INTEL_MICROCODE - tar xzf $MICROCODE_ARCHIVE -} - -# -# Creating separate files per microcode -# - -separate_microcode() { - printf "Separating microcode...\n" - csplit -s -n4 -k $MICROCODE_FILE '/^\/\*.*\.inc.*\*\//' '{500}' 2> /dev/null - mv xx0000 header.inc - perl -pi -e 's,\ \ \ \ \ \ \ ,\ ,' header.inc - perl -pi -e 's,^,/,g' header.inc - perl -pi -e 's,^//\*,/\*,' header.inc - for i in xx????; do - name="`head -1 $i`" - name=${name%??} - name=${name:2} - name=$( echo $name ) - name=microcode-${name%.inc}.h - cat header.inc $i > $name - done - rm -f xx???? header.inc -} - -# -# Dump CPUIDs from all separated files -# - -dump_cpuids() { - ls -1 microcode-*.h | while read F; do - CPUID="$( echo $( head -36 $F |tail -1|cut -d, -f4|sed s,0x,, ) | sed 's/0*//')" - echo "$CPUID:$F" - done -} - -# -# Move microcode to target positions -# - -move_microcode() { - printf "Moving microcode...\n" - dump_cpuids | sort | while read N; do - ID=$( echo $N | cut -d: -f1 ) - F=$( echo $N | cut -d: -f2 ) - - if [ -d ../model_$ID ]; then - echo "Model: $ID Microcode: $F" - mv $F ../model_$ID/$F - else - ID2=${ID%?}x - if [ -d ../model_$ID2 ]; then - echo "Model: $ID($ID2) Microcode: $F (copied)" - mv $F ../model_$ID2/$F - else - ID1=${ID%??}xx - if [ -d ../model_$ID1 ]; then - echo "Model: $ID($ID1) Microcode: $F (copied)" - mv $F ../model_$ID1/$F - else - echo "Model: $ID Microcode: $F (erased)" - rm -f $F - fi - fi - fi - done -} - -get_microcode -separate_microcode -move_microcode - -rm -f $MICROCODE_ARCHIVE -rm -f $MICROCODE_FILE - -- cgit v1.2.3