]> rtime.felk.cvut.cz Git - zynq/linux-build.git/blob - build/u-boot-xlnx/GNUmakefile
Added U-boot
[zynq/linux-build.git] / build / u-boot-xlnx / GNUmakefile
1 export ARCH=arm
2 #export CROSS_COMPILE=arm-none-eabi-
3
4 export CROSS_COMPILE=arm-linux-gnueabi-
5
6 lastword = $(word $(words $(1)),$(1))
7 makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
8
9 ifeq ("$(origin V)", "command line")
10 VERBOSE := $(V)
11 endif
12 ifneq ($(VERBOSE),1)
13 Q := @
14 endif
15
16 MAKEARGS := -C ../../src/u-boot-xlnx
17 MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
18
19 MAKEFLAGS += --no-print-directory
20
21 .PHONY: all $(MAKECMDGOALS)
22
23 all     := $(filter-out all Makefile,$(MAKECMDGOALS))
24
25 all:
26         $(Q)$(MAKE) $(MAKEARGS) $(all)
27
28 Makefile:;
29
30 $(all): all
31         @:
32
33 %/: all
34         @: