-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (26 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: BootMii-Loader_blocks_1-4.flash
.PHONY: BootMii-Loader_blocks_1-4.flash
BootMii-Loader_blocks_1-4.flash:
@$(MAKE) -C ./bin2c-master
@$(MAKE) -C ./ecctool
@$(MAKE) -C ./mini
@./bin2c-master/bin2c ./mini/armboot.bin ./loader/armboot.h armboot
@$(MAKE) -C ./freemem
@./bin2c-master/bin2c ./freemem/freemem.bin ./loader/freemem.h freemem
@$(MAKE) -C ./loader
@./bin2c-master/bin2c ./loader/loader.bin ./preloader/preload.h preload
@$(MAKE) -C ./preloader
@dd conv=notrunc if=./bin/NandBoot-ECC.bin of=./BootMii-Loader_blocks_1-4.flash bs=1
@dd conv=notrunc if=./preloader/preload.flash of=./BootMii-Loader_blocks_1-4.flash bs=1 seek=135168
@dd conv=notrunc if=./bin/bootmii_blocks.bin of=./BootMii-Loader_blocks_1-4.flash bs=1 seek=270336
clean:
@-rm -f ./BootMii-Loader_blocks_1-4.flash
@-rm -f ./preloader/preload.h
@-rm -f ./loader/armboot.h
@-rm -f ./loader/freemem.h
@$(MAKE) -C ./mini clean
@$(MAKE) -C ./bin2c-master clean
@$(MAKE) -C ./loader clean
@$(MAKE) -C ./preloader clean
@$(MAKE) -C ./freemem clean
@$(MAKE) -C ./ecctool clean