]> git.plutz.net Git - bootimage/blobdiff - Makefile
auto generate kernel and initrd links
[bootimage] / Makefile
index ff9b317d2b747b76c4dd5b8776c6c9c5103cfb89..2843f5dc8ed5259d3f70879d7aab1173844349ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ stretch_%.squashfs: stretch_%_config/
        rm "$@" || true
        mksquashfs "$<" "$@" -comp xz
 
+vmlinuz: stretch_*_root/
+       ln -s '$<$@' ./
+
+initrd.img: stretch_*_root/
+       ln -s '$<$@' ./
+
 /dev/sd%: partitions .FORCE
        sfdisk ${@} <partitions
        dd of=${@} if=/usr/lib/syslinux/mbr/gptmbr.bin