CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed cubieboard2 CONSOLE_DEVICE
[bootloader.git] / Makefile
1 #
2 # uboot/Makefile
3 #
4
5 PWD = $(shell pwd)
6 WORK = $(PWD)/work
7
8 UBOOT_VERSION = 2013.07
9
10 .PHONY: all help mkimage clean distclean cubox cubox-clean cubox-distclean efikamx efikamx-clean efikamx-distclean
11
12 all: help
13
14 help:
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"
22
23 clean: mkimage-clean cubox-clean efikamx-clean
24
25 distclean: mkimage-distclean cubox-distclean efikamx-distclean
26
27
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
30
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)
34
35 $(WORK)/mkimage: $(WORK)/u-boot-$(UBOOT_VERSION)
36 cd $(WORK)/u-boot-$(UBOOT_VERSION) && \
37 make tools && \
38 install -m 0755 $(WORK)/u-boot-$(UBOOT_VERSION)/tools/mkimage $(WORK)/mkimage
39
40 mkimage: $(WORK)/mkimage
41
42 mkimage-clean:
43 rm -f $(WORK)/mkimage mkimage
44
45 mkimage-distclean: mkimage-clean
46 rm -rf $(WORK)/u-boot-$(UBOOT_VERSION) $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2
47
48 cubieboard: mkimage
49 make -C devices/cubieboard
50
51 cubieboard-clean:
52 make -C devices/cubieboard clean
53
54 cubieboard-distclean:
55 make -C devices/cubieboard distclean
56
57 cubox: mkimage
58 make -C devices/cubox
59
60 cubox-clean:
61 make -C devices/cubox clean
62
63 cubox-distclean:
64 make -C devices/cubox distclean
65
66 efikamx: mkimage
67 make -C devices/efikamx
68
69 efikamx-clean:
70 make -C devices/efikamx clean
71
72 efikamx-distclean:
73 make -C devices/efikamx distclean
74
75 # End of file