X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=eae697c51a18781711b486016746cbbb3c1e757e;hb=75a2f52bf62637b56770c4f4c8cc73c782f82c84;hp=75c78fb6f628a3ac9e36d084e64ab4d1f776ac71;hpb=73bb00a3bb8f47f9cbdba7a6c3e07f82309f65e7;p=bootloader.git diff --git a/Makefile b/Makefile index 75c78fb..eae697c 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,24 @@ PWD = $(shell pwd) WORK = $(PWD)/work -UBOOT_VERSION = 2011.09 +UBOOT_VERSION = 2011.12 -.PHONY: all mkimage clean dist-clean +.PHONY: all help mkimage clean distclean cubox cubox-clean cubox-distclean efikamx efikamx-clean efikamx-distclean -all: mkimage +all: help -clean: mkimage-clean +help: + @echo "Usage: make " + @echo "Where targets available are:" + @echo " mkimage Build mkimage binary for your host" + @echo " Where device specified should appear under" + @echo " devices's dir as for example: cubox, efikamx, ..." + @echo " clean Remove generated files" + @echo " distclean Remove generated files and temporary sources" -dist-clean: mkimage-distclean +clean: mkimage-clean cubox-clean efikamx-clean + +distclean: mkimage-distclean cubox-distclean efikamx-distclean $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2: @@ -21,14 +30,10 @@ $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2: $(WORK)/u-boot-$(UBOOT_VERSION): $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2 tar -C $(WORK) -xjf $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2 - cd $(WORK)/u-boot-$(UBOOT_VERSION) && \ - patch -p1 -i $(WORK)/u-boot-2011.09.tools1.patch && \ - patch -p1 -i $(WORK)/u-boot-2011.09.tools2.patch && \ - patch -p1 -i $(WORK)/u-boot-2011.09.tools3.patch touch $(WORK)/u-boot-$(UBOOT_VERSION) $(WORK)/mkimage: $(WORK)/u-boot-$(UBOOT_VERSION) - cd /crux-arm/uboot/work/u-boot-2011.09 && \ + cd $(WORK)/u-boot-$(UBOOT_VERSION) && \ make tools && \ install -m 0755 $(WORK)/u-boot-$(UBOOT_VERSION)/tools/mkimage $(WORK)/mkimage @@ -38,3 +43,24 @@ mkimage-clean: rm -f $(WORK)/mkimage mkimage mkimage-distclean: mkimage-clean + rm -rf $(WORK)/u-boot-$(UBOOT_VERSION) $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2 + +cubox: mkimage + make -C devices/cubox + +cubox-clean: + make -C devices/cubox clean + +cubox-distclean: + make -C devices/cubox distclean + +efikamx: mkimage + make -C devices/efikamx + +efikamx-clean: + make -C devices/efikamx clean + +efikamx-distclean: + make -C devices/efikamx distclean + +# End of file