($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: noel.neu@acoulab.de
To: meta-freescale@lists.yoctoproject.org
Subject: Adding out-of-tree kernel modules & drivers
Date: Thu, 16 Sep 2021 17:04:43 -0700	[thread overview]
Message-ID: <M9hl.1631837083359517032.av1b@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

Hi,

I am trying to develop a custom ASoC machine driver for an i.MX6 project using yocto.

I have followed the yocto provided 'hello-mod' recipe as an example for out-of-tree kernel modules, but unfortunately this doesn't work for my application since it requires some in-tree header files that cannot be found when the recipe is built.

Another method I tried is to use patches in order to compile this as a usual in-tree driver.
This does work, but I am not getting any error messages if I use this approach. So even if the driver contains some known error that would prevent it from compiling, these are not shown and bitbake completes successfully.

Equally, if I patch the defconfig file to include some config with a made-up false name, it doesn't show that there was an error with this module.

So my questions would be:
- What is the proper way of implementing out-of-tree drivers that rely on in-tree headers?

- if that's now possible, how can I make bitbake show error when compiling the files using the patched method?

Any guidance is highly appreciated !

[-- Attachment #2: Type: text/html, Size: 1164 bytes --]

                 reply	other threads:[~2021-09-17  0:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=M9hl.1631837083359517032.av1b@lists.yoctoproject.org \
    --to=noel.neu@acoulab.de \
    --cc=meta-freescale@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).