This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/packages/microcode-ctl/default.bash

40 lines
704 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
"1.17"
)
url=\
(
"http://ftp.de.debian.org/debian/pool/contrib/m/microcode.ctl/microcode.ctl_$version.orig.tar.gz"
)
md5=\
(
"d27e3294938d9951b25308fd68732e62"
)
post_unpack()
{
sed \
's,/dev/cpu/microcode,/dev/microcode,g' \
"../microcode.ctl-$version/microcode_ctl.c" -i &&
sed \
's,/etc/microcode.dat,/lib/firmware/intel-microcode.dat,g' \
"../microcode.ctl-$version/microcode_ctl.c" -i
}
build()
{
$cmd_make \
CC="$cmd_target_cc" \
-C "../microcode.ctl-$version"
}
target_install()
{
$cmd_target_strip \
"../microcode.ctl-$version/microcode_ctl" \
-o "$cfg_dir_rootfs/sbin/microcode_ctl"
}