blob: 0b2d171203c29eb3f7b3f6efd29a52d767ee0200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
all: initramfs.img amd-uc.img
initramfs.img:
./make
-include initramfs.d
amd-uc.img: kernel/x86/microcode/AuthenticAMD.bin
echo $^ | bsdcpio -o -H newc -R 0:0 > $@
kernel/x86/microcode/AuthenticAMD.bin: /lib/firmware/amd-ucode/microcode_amd_fam17h.bin /lib/firmware/amd/amd_sev_fam17h_model0xh.sbin
mkdir -p $(@D)
cat $^ > $@
install: /boot/initramfs.img /boot/amd-uc.img
/boot/initramfs.img: initramfs.img
rm -f $@.old $@.new
cp $< $@.new
if [ -e $@ ]; then mv $@ $@.old; fi
mv $@.new $@
/boot/amd-uc.img: amd-uc.img
cp $< $@
clean:
$(RM) -r initramfs.img initramfs.d amd-uc.img kernel
|