firecracker-netns/rootfs-kernel/Makefile
RouxAntoine 77e8c07dc0
I know what I am doing. Trust me.
Signed-off-by: RouxAntoine <antoinroux@hotmail.fr>
2024-01-06 19:22:16 +01:00

35 lines
924 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
use-kernel: ../out/vmlinux-5.10.204
ln -fs $< ../out/vmlinux
use-kernel-custom: ../out/vmlinux-5.11
ln -fs $< ../out/vmlinux
../out/vmlinux-5.10.204:
wget -O $@ https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/$(ARCH)/vmlinux-5.10.204
CONFIG_FILE=$(wildcard ./kernel-config/*.config)
../out/vmlinux-5.11: ./kernel.sh $(CONFIG_FILE)
bash ./kernel.sh 5.11
../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 $@