[Buildroot] Question Linux-Module infrastructure

Jacques Samoun jacques.samoun33 at gmail.com
Mon Jul 19 16:16:56 UTC 2021


Hello,

I am using external tree build in my project. Trying to add a linux kernel
driver that i am developing.
My problem is that, the sources of my driver are not flat but arranged, for
various reasons in the following manner:
<mydriver>
               <some files>
               <top makefile>
              +--- inc
                   <shared includes>
              +--- user
                     <files>
                      <Makefile>
              +--- kernel
                       <files>
                       <Makefile>

My hal.mk is  (hal is the name of the package)

HAL_VERSION = 1.0.0
HAL_SITE =  ../top/source/hal
HAL_SITE_METHOD = local

$(eval $(kernel-module))
$(eval $(generic-package))

My problem is that, with the HAL_SITE above, everything is rsync'ed
correctly in the br/output dir, but the driver (*in the kernel subdir*)
fails to compile.
On the other hand, if HAL_SITE =  ../top/source/hal/kernel

then obviously only a part of the files would be rsync'ed and the shared
inlcude files will be missing (|for example) .... but the kernel driver
will be build (and eventually fails because of the shared include files)

What am I missing ? this must be a small detail that i am completely
overlooking ...

Thanks,
Jacques
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210719/3e1fbd6a/attachment-0002.html>


More information about the buildroot mailing list