aimee-os/Makefile

97 lines
1.7 KiB
Makefile

update.tar: output/update.tar.zstd
.prepared: \
prepare.sh \
config-portage.sh \
setup-local-repo.sh \
$(shell find portage host-portage -type f) \
$(shell find patches/ebuilds -type f)
./prepare.sh
./config-portage.sh
./setup-local-repo.sh
touch .prepared
prepare: .prepared
.host-tools: \
build-host-tools.sh \
.prepared
./build-host-tools.sh
touch .host-tools
host-tools: .host-tools
images/rootfs.squashfs: \
build.sh \
build-rootfs.sh \
build-squashfs.sh \
linux/arch/arm64/boot/Image.gz \
.host-tools \
.prepared
./build.sh
./build-rootfs.sh
./build-squashfs.sh
squashfs: images/rootfs.squashfs
linux/arch/arm64/boot/Image.gz: \
build-kernel.sh \
linux.config \
.host-tools \
.prepared
./build-kernel.sh
kernel: linux/arch/arm64/boot/Image.gz
output/efi-part/EFI/BOOT/BOOTAA64.efi: \
build-grub.sh \
grub.cfg \
.host-tools \
.prepared
./build-grub.sh
grub: output/efi-part/EFI/BOOT/BOOTAA64.efi
output/efi-part/u-boot.bin: \
build-uboot.sh \
u-boot.config
./build-uboot.sh
uboot: output/efi-part/u-boot.bin
images/sdcard.img: \
genimage.cfg \
genimage.sh \
post-build.sh \
output/efi-part/u-boot.bin \
output/efi-part/EFI/BOOT/BOOTAA64.efi
./post-build.sh
./genimage.sh
sdcard.img: images/sdcard.img
images/firmware.img: images/sdcard.img
output/update.tar.zstd: \
images/rootfs.squashfs \
images/firmware.img \
install-update.sh \
.host-tools \
.prepared
./build-update.sh
clean:
git -C u-boot clean -fdx && git -C u-boot checkout -- .
rm -rf linux output images tmp
rm -f .prepared .host-tools
.PHONY: \
grub \
host-tools \
kernel \
prepare \
sdcard.img \
squashfs \
uboot \
update.tar