Starting with kernel 4.8 this has been renamed to iio_generic_buffer. To support kernel earlier than 4.8 use the provided install rule and targetinstall all copied files.
Signed-off-by: Alexander Stein <alexander.st...@systec-electronic.com> --- I doubt there is a possibility to detect in ptxdist the actual kernel version used, e.g. using symlinks. For iio, but not for perf, we can install them in the kernel package dir. rules/kernel.make | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rules/kernel.make b/rules/kernel.make index d02a69c..e0ceda8 100644 --- a/rules/kernel.make +++ b/rules/kernel.make @@ -215,6 +215,11 @@ endif ifdef PTXCONF_KERNEL_DTC @install -m 755 "$(KERNEL_DIR)/scripts/dtc/dtc" "$(PTXCONF_SYSROOT_HOST)/bin/dtc" endif +ifdef PTXCONF_KERNEL_TOOL_IIO + @+cd $(KERNEL_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) \ + CPPFLAGS="-D__EXPORTED_HEADERS__ -I$(KERNEL_DIR)/include/uapi -I$(KERNEL_DIR)/include" \ + $(KERNEL_MAKEVARS) -C tools/iio INSTALL_ROOT=$(KERNEL_PKGDIR) install +endif @$(call touch) @@ -252,12 +257,7 @@ ifdef PTXCONF_KERNEL_TOOL_PERF endif ifdef PTXCONF_KERNEL_TOOL_IIO - @$(call install_copy, kernel, 0, 0, 0755, $(KERNEL_DIR)/tools/iio/generic_buffer, \ - /usr/bin/iio_generic_buffer) - @$(call install_copy, kernel, 0, 0, 0755, $(KERNEL_DIR)/tools/iio/lsiio, \ - /usr/bin/lsiio) - @$(call install_copy, kernel, 0, 0, 0755, $(KERNEL_DIR)/tools/iio/iio_event_monitor, \ - /usr/bin/iio_event_monitor) + @$(call install_tree, kernel, 0, 0, -, /usr/bin/) endif @$(call install_finish, kernel) -- 2.10.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de