On Thu, Jan 05, 2017 at 08:11:06AM +0100, Alexander Stein wrote:
> On Wednesday 04 January 2017 17:43:37, Michael Olbrich wrote:
> > On Wed, Jan 04, 2017 at 05:41:47PM +0100, Michael Olbrich wrote:
> > > On Wed, Dec 21, 2016 at 08:50:48AM +0100, Alexander Dahl wrote:
> > > > Hei hei,
> > > > 
> > > > On Wed, Dec 21, 2016 at 08:05:20AM +0100, Alexander Stein wrote:
> > > > >  ifdef PTXCONF_KERNEL_TOOL_IIO
> > > > > 
> > > > > -     @$(call install_copy, kernel, 0, 0, 0755,
> > > > > $(KERNEL_DIR)/tools/iio/generic_buffer, \ +   @$(call install_copy,
> > > > > kernel, 0, 0, 0755, $(KERNEL_DIR)/tools/iio/iio_generic_buffer, \> > 
> > > > > > 
> > > > >               /usr/bin/iio_generic_buffer)
> > > > >       
> > > > >       @$(call install_copy, kernel, 0, 0, 0755,
> > > > >       $(KERNEL_DIR)/tools/iio/lsiio, \
> > > > >       
> > > > >               /usr/bin/lsiio)
> > > > 
> > > > Would it be possible to make this dependent on the actually used
> > > > kernel version?
> > > 
> > > $(call install_glob, kernel, 0, 0, $(KERNEL_DIR)/tools/iio, /usr/bin, \
> > > 
> > >   /generic_buffer /iio_generic_buffer)
> > > 
> > > I think (untested). That should find either file.
> > 
> > Hmm, that doesn't work. The original code renamed the file.
> > I _think_ using some $(wildcard ...) stuff may work though, for the source
> > file.
> 
> But this would rename the file in some cases, no? I would keep the filename 
> as 
> it is.

That's what the old code already does. The file should always be named
iio_generic_buffer.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to