From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Ziegler Date: Tue, 20 Jul 2021 05:03:20 +0000 Subject: [Buildroot] Question Linux-Module infrastructure In-Reply-To: References: Message-ID: List-Id: To: buildroot@busybox.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Jacques, On 2021-07-19 21:53, Jacques Samoun wrote: > 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: > > > > +--- inc > > +--- user > > > +--- kernel > > > > 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