Include a header file of a kernel module from another module

39 Views Asked by At

Is there an elegant way (more elegant than the symlink solution) to include a kernel module header from another module?

  • module_a:
    • module_a.c
    • module_a.h
  • module_b:
    • module_b.c

Let's say module_b.c needs to include module_a.h.

I tried adding DEPENDS = "module_a" to module_b.bb, then #include <module_a/module_a.h> to module_b.c without success.

It works from an app that includes a module header... I don't know if it doesn't work for cross module dependencies or I simply missed something.

0

There are 0 best solutions below