package/logrotate: update upstream site in Config.in help
[buildroot-gz.git] / package / linux-tools / linux-tool-iio.mk
blob60d6249d2f4c513ffdbac8dfd78cfaaddae976e2
1 ################################################################################
3 # iio
5 ################################################################################
7 LINUX_TOOLS += iio
9 IIO_MAKE_OPTS = $(LINUX_MAKE_FLAGS)
11 define IIO_BUILD_CMDS
12 $(Q)if ! grep install $(LINUX_DIR)/tools/iio/Makefile >/dev/null 2>&1 ; then \
13 echo "Your kernel version is too old and does not have install section in the iio tools." ; \
14 echo "At least kernel 4.7 must be used." ; \
15 exit 1 ; \
18 $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/iio \
19 $(IIO_MAKE_OPTS)
20 endef
22 define IIO_INSTALL_TARGET_CMDS
23 $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/iio \
24 $(IIO_MAKE_OPTS) \
25 INSTALL_ROOT=$(TARGET_DIR) \
26 install
27 endef