firecracker-netns/rootfs-kernel/Makefile
RouxAntoine a2b5884726 feature: build and use rootf dynamically and use kernel
support rootfs :
- archlinux
- ubuntu
kernel 5.10.204 from url amazon url
Co-authored-by: RouxAntoine <antoinroux@hotmail.fr>
Co-committed-by: RouxAntoine <antoinroux@hotmail.fr>
2024-01-06 13:25:47 +00:00

28 lines
738 B
Makefile

.PHONY: use-arch use-ubuntu
# aarch64
# x86_64
ARCH=x86_64
use-arch: ../out/arch-rootfs.ext4
ln -fs $< ../out/rootfs.ext4
use-ubuntu: ../out/ubuntu-22.04.ext4 ../out/ubuntu-22.04.id_rsa
ln -fs $< ../out/rootfs.ext4
kernel: ../out/vmlinux-5.10.204
@echo "linux kernel retrieve"
../out/vmlinux-5.10.204:
wget -O $@ https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/$(ARCH)/vmlinux-5.10.204
../out/arch-rootfs.ext4: ./arch-rootfs.sh
bash ./arch-rootfs.sh
../out/ubuntu-22.04.ext4:
wget -O $@ https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/$(ARCH)/ubuntu-22.04.ext4
../out/ubuntu-22.04.id_rsa:
wget -O $@ https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/$(ARCH)/ubuntu-22.04.id_rsa
chmod 400 $@