Skip to contentSkip to conversation

Common header files / code between packages

Buildroot Andreas Ziegler 1 participant 1 message Aug 5, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Jacques,

Quoted 8 lines · Jacques Samoun

Hello,

my development consists of a kernel driver and an companion user space layer.
They are build each in 2 separate packages. Using external tree build.

The problem is, i would like to share some include files between both package (kernel driver and user space layer).

I would:

- build the kernel driver first,
- add an install step that installs common header files into $STAGING_DIR/usr/include/<add fancy name here>,
- add this include directory to the configure (if present) or build configuration of the user space package(s).

Quoted 2 lines

So far, i solved that by adding a common folder containing the include files, and making it part of each package, so it builds OK.

The kernel driver exposes this interface, so should provide the only instance of these files.

Kind regards,
Andreas

Quoted 11 lines

Now, a third package, whose code is completely outside the first 2 is willing also to use this include file. The only way i found so far, is to put explicit relative path referring from one package to the one other, but this is ugly. Moreover, the path depends on the version of the packages, so can break easily.
There must be a better way (STAGING DIR ?) but i couldn't find.

Can anybody give me an hint ?
Thanks,
Jacques

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot