~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: e74f386286d4ffbcaebb5bf4f996b461a09d54a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include $(buildsrc)/config.mk
include $(buildtree)/include/autoconf.mk
include $(buildtree)/.config

ARMCC_$(CONFIG_ENABLE_ARMCC_DEBUGROM)=$(shell echo __CC_ARM | armcc -E -  | tail -n 1)
ifneq ($(ARMCC_y),)
targetComplier=arm
else
targetComplier=gcc
endif

MAKEFLAGS += --no-print-directory

.PHONY: all clean realclean distclean

all:
	$(Q)$(MAKE) -f Makefile.$(targetComplier)

#ifndef CONFIG_M3
#	$(MAKE) -f Makefile.ddr_init
#endif

ifdef CONFIG_AML_EXT_PGM
	$(MAKE) -f Makefile.ft
endif

ifdef CONFIG_AML_SECU_BOOT_V2
	$(MAKE) -f Makefile.usb
endif
ifeq ($(CONFIG_CMD_RUNARC),y)
	$(MAKE) -f Makefile.rbt
endif

ifeq ($(CONFIG_AML_SUSPEND),y)
ifneq ($(CONFIG_MESON_TRUSTZONE),y)
	$(MAKE) -f Makefile.krbt
endif
endif

realclean distclean:
	$(Q)$(MAKE) -f Makefile.$(targetComplier) distclean