2018-02-27 11:54:26 -08:00
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
|
|
all-install :=
|
|
|
|
|
|
2019-02-06 08:25:51 +01:00
|
|
|
DESTDIR ?= dest
|
|
|
|
|
CPIONAME ?= bootrr
|
|
|
|
|
|
2019-02-11 18:23:10 +01:00
|
|
|
HELPERS := assert_file_is_empty \
|
|
|
|
|
assert_device_present \
|
2018-02-27 11:54:26 -08:00
|
|
|
assert_driver_present \
|
|
|
|
|
assert_mmc_present \
|
|
|
|
|
assert_partition_found \
|
Makefile: Match board name with compatible string and install sysfs_attr helper
There is an script that parses /proc/device-tree/compatible and if
matches with the name of the board script runs the test suite. The
Samsung Chromebook Plus reports the following compatibles:
google,kevin-rev15 google,kevin-rev14 google,kevin-rev13
google,kevin-rev12 google,kevin-rev11 google,kevin-rev10
google,kevin-rev9 google,kevin-rev8 google,kevin-rev7
google,kevin-rev6 google,kevin google,gru rockchip,rk3399
Being google,kevin the more generict this patch renames the board test
script to this name.
The patch also adds the assert_sysfs_attr_present helper script to the
Makefile install target because it is used by the google,kevin test
suite.
Fixes: 1c4202515231 ("Makefile: fixes board name for google,kevin")
Fixes: c5d93c41f893 ("boards: Add Samsung Chromebook Plus test script")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-06 13:13:42 +01:00
|
|
|
assert_sysfs_attr_present \
|
2018-03-15 14:51:16 -06:00
|
|
|
bootrr \
|
2019-02-06 22:13:18 +01:00
|
|
|
bootrr-auto \
|
2018-02-27 11:54:26 -08:00
|
|
|
ensure_lib_firmware \
|
|
|
|
|
rproc-start \
|
2018-07-23 18:52:09 +05:30
|
|
|
rproc-stop \
|
2018-07-23 18:53:01 +05:30
|
|
|
value_in_range \
|
2018-07-23 18:52:09 +05:30
|
|
|
state_check
|
2018-02-27 11:54:26 -08:00
|
|
|
|
2018-03-06 11:29:41 -08:00
|
|
|
BOARDS := arrow,apq8096-db820c \
|
Makefile: Match board name with compatible string and install sysfs_attr helper
There is an script that parses /proc/device-tree/compatible and if
matches with the name of the board script runs the test suite. The
Samsung Chromebook Plus reports the following compatibles:
google,kevin-rev15 google,kevin-rev14 google,kevin-rev13
google,kevin-rev12 google,kevin-rev11 google,kevin-rev10
google,kevin-rev9 google,kevin-rev8 google,kevin-rev7
google,kevin-rev6 google,kevin google,gru rockchip,rk3399
Being google,kevin the more generict this patch renames the board test
script to this name.
The patch also adds the assert_sysfs_attr_present helper script to the
Makefile install target because it is used by the google,kevin test
suite.
Fixes: 1c4202515231 ("Makefile: fixes board name for google,kevin")
Fixes: c5d93c41f893 ("boards: Add Samsung Chromebook Plus test script")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-06 13:13:42 +01:00
|
|
|
google,kevin \
|
2019-02-06 22:13:18 +01:00
|
|
|
google,pi \
|
2019-02-06 22:13:18 +01:00
|
|
|
google,veyron-jaq \
|
2018-05-11 22:59:26 -07:00
|
|
|
qcom,apq8016-sbc \
|
|
|
|
|
qcom,msm8998-mtp \
|
|
|
|
|
qcom,sdm845-mtp \
|
2020-01-03 22:14:35 +05:30
|
|
|
qcom,sm8150-mtp \
|
2020-04-30 21:40:52 -07:00
|
|
|
qcom,sm8250-mtp \
|
2020-06-17 21:58:45 +05:30
|
|
|
qcom,qrb5165-rb5 \
|
2018-10-12 19:01:35 +05:30
|
|
|
qcom,qcs404-evb \
|
2019-10-02 16:31:52 -07:00
|
|
|
sony,xperia-castor \
|
|
|
|
|
thundercomm,db845c
|
2018-02-27 11:54:26 -08:00
|
|
|
|
|
|
|
|
define add-scripts
|
2018-03-06 11:33:41 -08:00
|
|
|
$(DESTDIR)$(prefix)/bin/$2: $1/$2
|
2018-02-27 11:54:26 -08:00
|
|
|
@echo "INSTALL $$<"
|
|
|
|
|
@install -D -m 755 $$< $$@
|
|
|
|
|
|
2018-03-06 11:33:41 -08:00
|
|
|
all-install += $(DESTDIR)$(prefix)/bin/$2
|
2018-02-27 11:54:26 -08:00
|
|
|
endef
|
|
|
|
|
|
2018-03-06 11:33:41 -08:00
|
|
|
$(foreach v,${BOARDS},$(eval $(call add-scripts,boards,$v)))
|
|
|
|
|
$(foreach v,${HELPERS},$(eval $(call add-scripts,helpers,$v)))
|
2018-02-27 11:54:26 -08:00
|
|
|
|
|
|
|
|
install: $(all-install)
|
|
|
|
|
|
2019-02-06 08:25:51 +01:00
|
|
|
CPIO := $(PWD)/$(CPIONAME).cpio
|
|
|
|
|
|
|
|
|
|
$(CPIO): $(all-install)
|
|
|
|
|
@cd $(DESTDIR) && find ./$(prefix)/bin | cpio -o -H newc > $(CPIO)
|
|
|
|
|
|
|
|
|
|
%.cpio.gz: %.cpio
|
|
|
|
|
@gzip < $< > $@
|
|
|
|
|
|
|
|
|
|
cpio: $(CPIO)
|
|
|
|
|
|
|
|
|
|
cpio.gz: $(CPIO).gz
|
|
|
|
|
|
2018-02-27 11:54:26 -08:00
|
|
|
clean:
|
2019-02-06 08:25:51 +01:00
|
|
|
@rm -f $(CPIO) $(CPIO).gz
|