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_" PHONY += clean clean: # $(foreach i,$(ALL_PLATFORMES),clean_$(i)) @echo "nothing to do, please use target clean_" PHONY += install install: # $(foreach i,$(ALL_PLATFORMES),install_$(i)) @echo "nothing to do, please use target install_" install_%: make -C overlays/$* install_bin make -C modules/aw882xx start_aw882xx_drv_ko help: @echo "Targets:" @echo "" @echo " all_: Build all device tree binaries for " @echo " clean_: Clean all generated files for " @echo " install_: Install all generated files for (sudo)" @echo "" @echo " overlays//.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)"