From: Uwe Hermann Date: Tue, 28 Mar 2017 06:35:33 +0000 (+0200) Subject: Add an 'update-device-filter' Makefile target. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7a810032edefa2f6c0e711d9b8be042d21b722c0;p=sigrok-androidutils.git Add an 'update-device-filter' Makefile target. This can be (manually) used as follows to update the list of USB VIDs/PIDs in device_filter.xml (based on the latest git version of the libsigrok udev rules file, downloaded via wget): $ make update-device-filter > device_filter.xml This fixes parts of bug #665. --- diff --git a/Makefile.am b/Makefile.am index 1926acf..94209c5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -67,6 +67,13 @@ $(SIGROK_CORE_AAR): always $(UTILS_JAR) $(ANTTASKS_JAR) $(lib_LTLIBRARIES) $(SIGROK_CORE_POM): always $(AM_V_GEN)ant -S -q $(ANTFLAGS) pom +update-device-filter: + @echo "" + @echo "" + @echo "" + @echo -e -n `wget 'http://sigrok.org/gitweb/?p=libsigrok.git;a=blob_plain;f=contrib/z60_libsigrok.rules' -q -O - | grep idVendor | sed 's/ATTRS{idVendor}=="\(.*\)", ATTRS{idProduct}=="\(.*\)", MODE.*/\\\n/p' | sort | uniq` + @echo "" + clean-local: -rm -rf build ant/build jni -rm -f $(UTILS_JAR) $(ANTTASKS_JAR)