intel-ucode: enable generation in dracut

This commit is contained in:
Andrea Brancaleoni 2017-06-27 08:12:24 -04:00 committed by Andrea Brancaleoni
parent 761b916fa6
commit 01b9c2863d

View file

@ -1,7 +1,7 @@
# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20170511
revision=1
revision=2
noarch=yes
create_wrksrc=yes
short_desc="Microcode update files for Intel CPUs"
@ -11,6 +11,8 @@ homepage="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22
distfiles="http://downloadmirror.intel.com/26798/eng/microcode-${version}.tgz"
checksum=2f77fd2d87403b754d01a66c78a36a8b8ffc16dc3c50fb7aa2c4cd4da7f681a3
conf_files="/etc/dracut.conf.d/intel_ucode.conf"
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
do_build() {
@ -20,5 +22,7 @@ do_build() {
do_install() {
vmkdir usr/lib/firmware/intel-ucode
vcopy "intel-ucode/*" usr/lib/firmware/intel-ucode
vmkdir etc/dracut.conf.d
echo "early_microcode=yes" >> ${DESTDIR}/etc/dracut.conf.d/intel_ucode.conf
vlicense ${FILESDIR}/LICENSE
}