8 UBOOT_VERSION
= 2013.07
10 .PHONY
: all help mkimage
clean distclean cubox cubox-clean cubox-distclean efikamx efikamx-clean efikamx-distclean
15 @echo
"Usage: make <target>"
16 @echo
"Where targets available are:"
17 @echo
" mkimage Build mkimage binary for your host"
18 @echo
" <device> Where device specified should appear under"
19 @echo
" devices's dir as for example: cubox, efikamx, ..."
20 @echo
" clean Remove generated files"
21 @echo
" distclean Remove generated files and temporary sources"
23 clean: mkimage-clean cubox-clean efikamx-clean
25 distclean: mkimage-distclean cubox-distclean efikamx-distclean
28 $(WORK
)/u-boot-
$(UBOOT_VERSION
).
tar.bz2
:
29 wget
-P
$(WORK
) ftp
://ftp.denx.de
/pub
/u-boot
/u-boot-
$(UBOOT_VERSION
).
tar.bz2
31 $(WORK
)/u-boot-
$(UBOOT_VERSION
): $(WORK
)/u-boot-
$(UBOOT_VERSION
).
tar.bz2
32 tar -C
$(WORK
) -xjf
$(WORK
)/u-boot-
$(UBOOT_VERSION
).
tar.bz2
33 touch
$(WORK
)/u-boot-
$(UBOOT_VERSION
)
35 $(WORK
)/mkimage
: $(WORK
)/u-boot-
$(UBOOT_VERSION
)
36 cd
$(WORK
)/u-boot-
$(UBOOT_VERSION
) && \
38 install -m
0755 $(WORK
)/u-boot-
$(UBOOT_VERSION
)/tools
/mkimage
$(WORK
)/mkimage
40 mkimage
: $(WORK
)/mkimage
43 rm -f
$(WORK
)/mkimage mkimage
45 mkimage-distclean
: mkimage-clean
46 rm -rf
$(WORK
)/u-boot-
$(UBOOT_VERSION
) $(WORK
)/u-boot-
$(UBOOT_VERSION
).
tar.bz2
49 make
-C devices
/cubieboard
52 make
-C devices
/cubieboard
clean
55 make
-C devices
/cubieboard
distclean
61 make
-C devices
/cubox
clean
64 make
-C devices
/cubox
distclean
67 make
-C devices
/efikamx
70 make
-C devices
/efikamx
clean
73 make
-C devices
/efikamx
distclean