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