mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
We might be interested on check if a file is empty or not. One use case is check if the /sys/kernel/debug/devices_deferred file is not empty, in such case mean that a driver is deferred for some reason so probe didn't succeed. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
45 lines
862 B
Makefile
45 lines
862 B
Makefile
.PHONY: all
|
|
|
|
all:
|
|
|
|
all-install :=
|
|
|
|
HELPERS := assert_file_is_empty \
|
|
assert_device_present \
|
|
assert_driver_present \
|
|
assert_mmc_present \
|
|
assert_partition_found \
|
|
assert_sysfs_attr_present \
|
|
bootrr \
|
|
bootrr-auto \
|
|
ensure_lib_firmware \
|
|
rproc-start \
|
|
rproc-stop \
|
|
value_in_range \
|
|
state_check
|
|
|
|
BOARDS := arrow,apq8096-db820c \
|
|
google,kevin \
|
|
google,pi \
|
|
google,veyron-jaq \
|
|
qcom,apq8016-sbc \
|
|
qcom,msm8998-mtp \
|
|
qcom,sdm845-mtp \
|
|
qcom,qcs404-evb \
|
|
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:
|