Files
bootrr/Makefile
Amit Kucheria a2cc1741bb helpers: Add value_in_range helper
This helper is useful to check if a value is within a given range e.g.
temperature is between 30 and 40 degrees.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2018-07-26 06:06:57 -07:00

38 lines
701 B
Makefile

.PHONY: all
all:
all-install :=
HELPERS := assert_device_present \
assert_driver_present \
assert_mmc_present \
assert_partition_found \
bootrr \
ensure_lib_firmware \
rproc-start \
rproc-stop \
value_in_range \
state_check
BOARDS := arrow,apq8096-db820c \
qcom,apq8016-sbc \
qcom,msm8998-mtp \
qcom,sdm845-mtp \
sony,xperia-castor
define add-scripts
$(DESTDIR)$(prefix)/bin/$2: $1/$2
@echo "INSTALL $$<"
@install -D -m 755 $$< $$@
all-install += $(DESTDIR)$(prefix)/bin/$2
endef
$(foreach v,${BOARDS},$(eval $(call add-scripts,boards,$v)))
$(foreach v,${HELPERS},$(eval $(call add-scripts,helpers,$v)))
install: $(all-install)
clean: