xref: /optee_os/Makefile (revision c84d070c6a123fa9f1dec3d23ec2c837b4ee3fca)
1SHELL = /bin/bash
2
3.PHONY: all
4all:
5
6.PHONY: mem_usage
7mem_usage:
8
9# If $(PLATFORM) is defined and contains a hyphen, parse it as
10# $(PLATFORM)-$(PLATFORM_FLAVOR) for convenience
11ifneq (,$(findstring -,$(PLATFORM)))
12ops := $(join PLATFORM PLATFORM_FLAVOR,$(addprefix =,$(subst -, ,$(PLATFORM))))
13$(foreach op,$(ops),$(eval override $(op)))
14endif
15
16# Make these default for now
17ARCH            ?= arm32
18PLATFORM        ?= stm
19O		?= out/$(ARCH)-plat-$(PLATFORM)
20
21arch_$(ARCH)	:= y
22
23ifneq ($O,)
24out-dir := $O
25endif
26
27ifneq ($V,1)
28q := @
29cmd-echo := true
30else
31q :=
32cmd-echo := echo
33endif
34
35include core/core.mk
36
37include ta/ta.mk
38
39.PHONY: clean
40clean:
41	@echo '  CLEAN   .'
42	${q}rm -f $(cleanfiles)
43
44.PHONY: cscope
45cscope:
46	@echo '  CSCOPE  .'
47	${q}rm -f cscope.*
48	${q}find $(PWD) -name "*.[chSs]" > cscope.files
49	${q}cscope -b -q -k
50