mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
Merge pull request #1813 from MilhouseVH/le90_intel_ucode
intel-ucode: update to intel-ucode-20170707
This commit is contained in:
commit
b3babe1a6d
@ -17,12 +17,12 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="intel-ucode"
|
PKG_NAME="intel-ucode"
|
||||||
PKG_VERSION="20170511"
|
PKG_VERSION="20170707"
|
||||||
PKG_SHA256="2f77fd2d87403b754d01a66c78a36a8b8ffc16dc3c50fb7aa2c4cd4da7f681a3"
|
PKG_SHA256="4fd44769bf52a7ac11e90651a307aa6e56ca6e1a814e50d750ba8207973bee93"
|
||||||
PKG_ARCH="x86_64"
|
PKG_ARCH="x86_64"
|
||||||
PKG_LICENSE="other"
|
PKG_LICENSE="other"
|
||||||
PKG_SITE="https://downloadcenter.intel.com/search?keyword=linux+microcode"
|
PKG_SITE="https://downloadcenter.intel.com/search?keyword=linux+microcode"
|
||||||
PKG_URL="https://downloadmirror.intel.com/26798/eng/microcode-${PKG_VERSION}.tgz"
|
PKG_URL="https://downloadmirror.intel.com/26925/eng/microcode-${PKG_VERSION}.tgz"
|
||||||
PKG_DEPENDS_HOST="toolchain"
|
PKG_DEPENDS_HOST="toolchain"
|
||||||
PKG_DEPENDS_TARGET="toolchain intel-ucode:host"
|
PKG_DEPENDS_TARGET="toolchain intel-ucode:host"
|
||||||
PKG_SECTION="linux-firmware"
|
PKG_SECTION="linux-firmware"
|
||||||
@ -38,17 +38,9 @@ unpack() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
make_host() {
|
make_host() {
|
||||||
$CC $CFLAGS -o intel-microcode2ucode intel-microcode2ucode.c
|
:
|
||||||
}
|
}
|
||||||
|
|
||||||
makeinstall_host() {
|
makeinstall_host() {
|
||||||
cp intel-microcode2ucode $TOOLCHAIN/bin/
|
|
||||||
}
|
|
||||||
|
|
||||||
make_target() {
|
|
||||||
intel-microcode2ucode ./microcode.dat
|
|
||||||
}
|
|
||||||
|
|
||||||
makeinstall_target() {
|
|
||||||
:
|
:
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ PKG_AUTORECONF="no"
|
|||||||
PKG_MAKE_OPTS_HOST="ARCH=$TARGET_KERNEL_ARCH headers_check"
|
PKG_MAKE_OPTS_HOST="ARCH=$TARGET_KERNEL_ARCH headers_check"
|
||||||
|
|
||||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET intel-ucode kernel-firmware"
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET intel-ucode:host kernel-firmware"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$BUILD_ANDROID_BOOTIMG" = "yes" ]; then
|
if [ "$BUILD_ANDROID_BOOTIMG" = "yes" ]; then
|
||||||
@ -159,10 +159,9 @@ pre_make_target() {
|
|||||||
mkdir -p $PKG_BUILD/external-firmware
|
mkdir -p $PKG_BUILD/external-firmware
|
||||||
cp -a $(get_build_dir kernel-firmware)/{amdgpu,amd-ucode,i915,radeon,rtl_nic} $PKG_BUILD/external-firmware
|
cp -a $(get_build_dir kernel-firmware)/{amdgpu,amd-ucode,i915,radeon,rtl_nic} $PKG_BUILD/external-firmware
|
||||||
|
|
||||||
mkdir -p $PKG_BUILD/external-firmware/intel-ucode
|
cp -a $(get_build_dir intel-ucode)/intel-ucode $PKG_BUILD/external-firmware
|
||||||
cp -a $(get_build_dir intel-ucode)/microcode.bin $PKG_BUILD/external-firmware/intel-ucode
|
|
||||||
|
|
||||||
FW_LIST="$(find $PKG_BUILD/external-firmware \( -type f -o -type l \) \( -iname '*.bin' -o -iname '*.fw' \) | sed 's|.*external-firmware/||' | sort | xargs)"
|
FW_LIST="$(find $PKG_BUILD/external-firmware \( -type f -o -type l \) \( -iname '*.bin' -o -iname '*.fw' -o -path '*/intel-ucode/*' \) | sed 's|.*external-firmware/||' | sort | xargs)"
|
||||||
sed -i "s|CONFIG_EXTRA_FIRMWARE=.*|CONFIG_EXTRA_FIRMWARE=\"${FW_LIST}\"|" $PKG_BUILD/.config
|
sed -i "s|CONFIG_EXTRA_FIRMWARE=.*|CONFIG_EXTRA_FIRMWARE=\"${FW_LIST}\"|" $PKG_BUILD/.config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user