mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
Makefile: remove list of files to be installed
Remove lists of boards and helpers, this is too error-prone. For example the list of helpers missed bootrr-generic-tests. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
5f9f7904ab
commit
4a600192ca
42
Makefile
42
Makefile
@@ -7,50 +7,20 @@ all-install :=
|
||||
DESTDIR ?= dest
|
||||
CPIONAME ?= bootrr
|
||||
|
||||
HELPERS := assert_file_is_empty \
|
||||
assert_device_present \
|
||||
assert_driver_present \
|
||||
assert_mmc_present \
|
||||
assert_partition_found \
|
||||
assert_soundcard_present \
|
||||
assert_sysfs_attr_present \
|
||||
assert_cpufreq_enabled \
|
||||
assert_cpuidle_enabled \
|
||||
bootrr \
|
||||
bootrr-auto \
|
||||
ensure_lib_firmware \
|
||||
rproc-start \
|
||||
rproc-stop \
|
||||
value_in_range \
|
||||
state_check
|
||||
HELPERS := $(wildcard helpers/*)
|
||||
|
||||
BOARDS := arrow,apq8096-db820c \
|
||||
google,kevin \
|
||||
google,pi \
|
||||
google,veyron-jaq \
|
||||
qcom,apq8016-sbc \
|
||||
qcom,msm8998-mtp \
|
||||
qcom,sdm845-mtp \
|
||||
qcom,soc-sm8150 \
|
||||
qcom,sm8150-mtp \
|
||||
qcom,sa8155p-adp \
|
||||
qcom,sm8250-mtp \
|
||||
qcom,sm8350-mtp \
|
||||
qcom,qrb5165-rb5 \
|
||||
qcom,qcs404-evb \
|
||||
sony,xperia-castor \
|
||||
thundercomm,db845c
|
||||
BOARDS := $(wildcard boards/*)
|
||||
|
||||
define add-scripts
|
||||
$(DESTDIR)$(prefix)/bin/$2: $1/$2
|
||||
$(DESTDIR)$(prefix)/bin/$(notdir $1): $1
|
||||
@echo "INSTALL $$<"
|
||||
@install -D -m 755 $$< $$@
|
||||
|
||||
all-install += $(DESTDIR)$(prefix)/bin/$2
|
||||
all-install += $(DESTDIR)$(prefix)/bin/$(notdir $1)
|
||||
endef
|
||||
|
||||
$(foreach v,${BOARDS},$(eval $(call add-scripts,boards,$v)))
|
||||
$(foreach v,${HELPERS},$(eval $(call add-scripts,helpers,$v)))
|
||||
$(foreach v,${BOARDS},$(eval $(call add-scripts,$v)))
|
||||
$(foreach v,${HELPERS},$(eval $(call add-scripts,$v)))
|
||||
|
||||
install: $(all-install)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user