mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/1] kernel: Fix iio_generic_buffer installation
@ 2016-12-21 10:55 Alexander Stein
  2016-12-21 10:58 ` Alexander Stein
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Stein @ 2016-12-21 10:55 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Stein

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.stein@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-21 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-21 10:55 [ptxdist] [PATCH 1/1] kernel: Fix iio_generic_buffer installation Alexander Stein
2016-12-21 10:58 ` Alexander Stein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox