On 5/9/2011 3:55 AM, Zheng, Debing wrote:

Hi all,

I am working on MeeGo TV vertical. I have a question on how to export header file from kernel module for user space library.

For example, we have a header file named sec_common_types.h, which is used for both kernel driver and user space library.

I think we should export this headers file by kernel package rather than including this header in both kernel driver and user space library, am I correct?

Currently, I add this header file to a new create rpm package kernel-adaptation-intel-tv-headers <http://dhgobs.sh.intel.com/package/binary?arch=i586&filename=kernel-adaptation-intel-tv-headers-2.6.35.3-8.1.i586.rpm&package=kernel-adaptation-intel-tv&project=MeeGo%3ATV%3Adevelop%3Adhg_sdk%3Apc21.1&repository=MeeGo_1.2> generated by kernel-adaptation-intel-tv <http://dhgobs.sh.intel.com/package/show?package=kernel-adaptation-intel-tv&project=MeeGo%3ATV%3Adevelop%3Adhg_sdk%3Apc21.1> package. Is this a acceptable solution?

BTW, I checked kernel-adaptation-intel-tv-devel <http://dhgobs.sh.intel.com/package/binary?arch=i586&filename=kernel-adaptation-intel-tv-devel-2.6.35.3-8.1.i586.rpm&package=kernel-adaptation-intel-tv&project=MeeGo%3ATV%3Adevelop%3Adhg_sdk%3Apc21.1&repository=MeeGo_1.2> package, it’s only exported some Makefiles and libraries. Is this the default behavior for kernel package? (I create kernel-adaptation-intel-tv <http://dhgobs.sh.intel.com/package/show?package=kernel-adaptation-intel-tv&project=MeeGo%3ATV%3Adevelop%3Adhg_sdk%3Apc21.1> based on some version from MeeGo core kernel package).




is this header upstream?

asking because otherwise you have an unofficial ABI that really ought not to be exposed to userspace too widely. (in fact, meego policy so far is that such evil headers must be copied and used by the using library inside their own tarbal/package)

yes it's evil to do that, but the one package doing this will KNOW it is evil and taking a risk, versus exposing something to a wider, unexpecting audience.

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to