]> rtime.felk.cvut.cz Git - zynq/linux-build.git/blobdiff - build/u-boot-xlnx/GNUmakefile
Added U-boot
[zynq/linux-build.git] / build / u-boot-xlnx / GNUmakefile
diff --git a/build/u-boot-xlnx/GNUmakefile b/build/u-boot-xlnx/GNUmakefile
new file mode 100644 (file)
index 0000000..9b4a9bf
--- /dev/null
@@ -0,0 +1,34 @@
+export ARCH=arm
+#export CROSS_COMPILE=arm-none-eabi-
+
+export CROSS_COMPILE=arm-linux-gnueabi-
+
+lastword = $(word $(words $(1)),$(1))
+makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
+
+ifeq ("$(origin V)", "command line")
+VERBOSE := $(V)
+endif
+ifneq ($(VERBOSE),1)
+Q := @
+endif
+
+MAKEARGS := -C ../../src/u-boot-xlnx
+MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
+
+MAKEFLAGS += --no-print-directory
+
+.PHONY: all $(MAKECMDGOALS)
+
+all    := $(filter-out all Makefile,$(MAKECMDGOALS))
+
+all:
+       $(Q)$(MAKE) $(MAKEARGS) $(all)
+
+Makefile:;
+
+$(all): all
+       @:
+
+%/: all
+       @: