[Buildroot] [PATCH] i2c-tools: install devt headers to staging dir

Baruch Siach baruch at tkos.co.il
Tue Sep 27 03:57:47 UTC 2016


Hi Peter,

On Mon, Sep 26, 2016 at 10:17:50PM +0200, Peter Korsgaard wrote:
> >>>>> "Arnout" == Arnout Vandecappelle <arnout at mind.be> writes:
> 
>  >> Sorry for having missed that one ! Sadly, the same problem will occur
>  >> with my patch.
>  >> I have currently no idea how to solve that and still trying to figure
>  >> out how it can works on debian systems with libi2c-dev package installed.
>  >> So meanwhile you can forget about my patch.
> 
>  >  I guess Debian doesn't have packages that include both i2c.h and i2c-dev.h.
>  > libsoc, for example, doesn't exist in Debian.
> 
>  >  I guess the solution would be for i2c-tools to #include or #include_next the
>  > relevant kernel headers, instead of redefining. Or to have both i2c.h and
>  > i2c-dev.h so that both kernel headers end up being overwritten.
> 
> Does the i2c-tools version of this file add anything important on top of
> the Linux headers? The i2c /dev interface afaik hasn't changed in MANY
> years.

The i2c-tools version of i2c-dev.h adds a number of convenient i2c_smbus_*() 
routines, that wrap around the I2C_SMBUS ioctl.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -


More information about the buildroot mailing list