You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
605 B
20 lines
605 B
CHROOT_CMD := chroot build/rootfs /bin/bash -c
|
|
ITDIR := build/rootfs/etc/initramfs-tools
|
|
|
|
build/rootfs/initrd.img: build/rootfs initramfs/modules initramfs/download.sh
|
|
$(CHROOT_CMD) "apt update && apt install -y linux-image-4.19.0-6-amd64"
|
|
cp initramfs/download.sh $(ITDIR)/scripts/local-top
|
|
chmod +x $(ITDIR)/scripts/local-top/download.sh
|
|
cp initramfs/modules $(ITDIR)
|
|
$(CHROOT_CMD) "update-initramfs -c -kall"
|
|
|
|
build/rootfs: build/cache
|
|
rm -r build/rootfs || true
|
|
cp -r build/cache build/rootfs
|
|
|
|
build/cache:
|
|
rm -r build/cache || true
|
|
debootstrap buster build/cache
|
|
|
|
clean:
|
|
rm -r build/rootfs
|
|
|