From e776978a99a27b790defdb0791757ea1d01ec350 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 26 Jun 2018 13:41:42 +0200 Subject: [PATCH] auto generate kernel and initrd links --- .gitignore | 2 ++ Makefile | 6 ++++++ initrd.img | 1 - vmlinuz | 1 - 4 files changed, 8 insertions(+), 2 deletions(-) delete mode 120000 initrd.img delete mode 120000 vmlinuz diff --git a/.gitignore b/.gitignore index 5e55873..a7074f2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ stretch_*_config/ stretch_*_root/ stretch_*.squashfs mount/ +vmlinuz +initrd.img diff --git a/Makefile b/Makefile index ff9b317..2843f5d 100644 --- 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 ${@}