mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: ptxdist@pengutronix.de
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Subject: [ptxdist] [PATCH 1/1] kernel: Fix iio_generic_buffer installation
Date: Wed, 21 Dec 2016 11:55:56 +0100	[thread overview]
Message-ID: <20161221105556.8367-1-alexander.stein@systec-electronic.com> (raw)

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

             reply	other threads:[~2016-12-21 10:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-21 10:55 Alexander Stein [this message]
2016-12-21 10:58 ` Alexander Stein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161221105556.8367-1-alexander.stein@systec-electronic.com \
    --to=alexander.stein@systec-electronic.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox