# # uboot/Makefile # PWD = $(shell pwd) WORK = $(PWD)/work UBOOT_VERSION = 2011.09 .PHONY: all help mkimage clean dist-clean efikamx efikamx-clean efikamx-distclean all: help 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 efikamx, wm8505, ..." @echo " clean Remove generated files" @echo " distclean Remove generated files and temporary sources" clean: mkimage-clean efikamx-clean distclean: mkimage-distclean efikamx-distclean $(WORK)/u-boot-$(UBOOT_VERSION).tar.bz2: wget -P $(WORK) ftp://ftp.denx.de/pub/u-boot/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-$(UBOOT_VERSION).tools1.patch && \ patch -p1 -i $(WORK)/u-boot-$(UBOOT_VERSION).tools2.patch && \ patch -p1 -i $(WORK)/u-boot-$(UBOOT_VERSION).tools3.patch touch $(WORK)/u-boot-$(UBOOT_VERSION) $(WORK)/mkimage: $(WORK)/u-boot-$(UBOOT_VERSION) cd $(WORK)/u-boot-$(UBOOT_VERSION) && \ make tools && \ install -m 0755 $(WORK)/u-boot-$(UBOOT_VERSION)/tools/mkimage $(WORK)/mkimage mkimage: $(WORK)/mkimage 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 efikamx: mkimage make -C devices/efikamx efikamx-clean: make -C devices/efikamx clean efikamx-distclean: make -C devices/efikamx distclean # End of file