diff options
Diffstat (limited to 'images/cubieboard-2/Makefile')
-rw-r--r-- | images/cubieboard-2/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/images/cubieboard-2/Makefile b/images/cubieboard-2/Makefile new file mode 100644 index 0000000..e25b0c2 --- /dev/null +++ b/images/cubieboard-2/Makefile @@ -0,0 +1,29 @@ +BOOTLOADER=bootloader/u-boot-sunxi-with-spl.bin +ROOTFS=rootfs/rootfs +IMAGE=image + +all: $(IMAGE).bmap + +$(BOOTLOADER): + $(MAKE) -C bootloader u-boot-sunxi-with-spl.bin + +$(ROOTFS): + $(MAKE) -C rootfs rootfs.customized + +$(IMAGE).raw: $(BOOTLOADER) $(ROOTFS) + scripts/mkrootimg $(ROOTFS) $(IMAGE).raw + dd conv=notrunc if=$(BOOTLOADER) of=$(IMAGE).raw bs=1024 seek=8 + touch $(IMAGE).raw + +$(IMAGE).bmap: $(IMAGE).raw + bmaptool create -o $(IMAGE).bmap $(IMAGE).raw + +clean: + $(MAKE) -C bootloader clean + $(MAKE) -C rootfs clean + +mrproper: clean + rm -f $(IMAGE).raw + rm -f $(IMAGE).bmap + +.PHONY: all clean mrproper |