summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2019-08-03 11:47:58 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2019-08-03 11:47:58 -0400
commitcf0b5d4433b6486c8f76be1a92a00ea5bd936190 (patch)
tree0ae76e5733ba3ca192156bbb1b4589aaeb553a32 /Makefile
parentefd5d866be3cdb9c2b5b3221319fbc80aa0d039b (diff)
downloadminitramfs-cf0b5d4433b6486c8f76be1a92a00ea5bd936190.tar.xz
minitramfs-cf0b5d4433b6486c8f76be1a92a00ea5bd936190.zip
remove amd-uc, remove aplay
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 8 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 0b2d171..22883a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,21 @@
-all: initramfs.img amd-uc.img
+all: initramfs.img
initramfs.img:
./make
-include initramfs.d
-amd-uc.img: kernel/x86/microcode/AuthenticAMD.bin
- echo $^ | bsdcpio -o -H newc -R 0:0 > $@
+install: install-initramfs.img
-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
+install-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
+ $(RM) -r initramfs.img initramfs.d kernel
+
+.PHONY: all install install-initramfs.img clean
+
+MAKEFLAGS = -L -R -r