Skip to contentSkip to conversation

Question Linux-Module infrastructure

Buildroot Andreas Ziegler 2 participants 2 messages Jul 20, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi Jacques,

Quoted 20 lines · Jacques Samoun

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>
Quoted 5 lines

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

You probably just need a statement to point the kernel build to the correct subdirectory:

HAL_MODULE_SUBDIRS = kernel

Kind regards,
Andreas

#2 lore raw

Hi Andreas,

Great, this wolves my problem.
Actually i was not too sure this SUBDIRS stuf was for .... now i got it :)

Thanks,
Jacques

Quoted 30 lines · Andreas Ziegler

Hi Jacques,

Quoted 20 lines · Jacques Samoun

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>
Quoted 5 lines

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

Quoted 8 lines

You probably just need a statement to point the kernel build to the correct subdirectory:

HAL_MODULE_SUBDIRS = kernel

Kind regards,
Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210720/f6233b6f/attachment-0001.html>