-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.37 KB
/
Makefile
File metadata and controls
45 lines (34 loc) · 1.37 KB
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
42
43
44
DTC ?= dtc
CPP ?= cpp
DESTDIR ?=
DTCVERSION ?= $(shell $(DTC) --version | grep ^Version | sed 's/^.* //g')
MAKEFLAGS += -rR --no-print-directory
ALL_PLATFORMES := $(patsubst overlays/%,%,$(wildcard overlays/*))
PHONY += all
all: help # $(foreach i,$(ALL_PLATFORMES),all_$(i))
@echo ""
@echo "nothing to do, please use target all_<platform>"
PHONY += clean
clean: # $(foreach i,$(ALL_PLATFORMES),clean_$(i))
@echo "nothing to do, please use target clean_<platform>"
PHONY += install
install: # $(foreach i,$(ALL_PLATFORMES),install_$(i))
@echo "nothing to do, please use target install_<platform>"
install_%:
make -C overlays/$* install_bin
make -C modules/aw882xx start_aw882xx_drv_ko
help:
@echo "Targets:"
@echo ""
@echo " all_<PLATFORM>: Build all device tree binaries for <PLATFORM>"
@echo " clean_<PLATFORM>: Clean all generated files for <PLATFORM>"
@echo " install_<PLATFORM>: Install all generated files for <PLATFORM> (sudo)"
@echo ""
@echo " overlays/<PLATFORM>/<DTS>.dtbo Build a single device tree binary"
@echo ""
@echo "Architectures: $(ALL_PLATFORMES)"
@echo ""
@echo "Obsolete Targets: (no longer supported)"
@echo " all: Build all device tree binaries for all architectures"
@echo " clean: Clean all generated files"
@echo " install: Install all generated files (sudo)"