public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <adrian.freihofer@siemens.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 4/7] module.bbclass: move environment setup to kernel_module.py
Date: Thu, 05 Mar 2026 11:46:45 +0100	[thread overview]
Message-ID: <DGUSEFCGQ1MN.12P5HEQPR4NDA@bootlin.com> (raw)
In-Reply-To: <20260223210748.1905502-5-adrian.freihofer@siemens.com>

Hi,

On Mon Feb 23, 2026 at 10:06 PM CET, Adrian Freihofer via lists.openembedded.org wrote:
[...]
> diff --git a/meta/lib/oe/kernel_module.py b/meta/lib/oe/kernel_module.py
> new file mode 100644
> index 0000000000..678f7de03b
> --- /dev/null
> +++ b/meta/lib/oe/kernel_module.py
> @@ -0,0 +1,22 @@
> +
> +# Set up the environment for building kernel modules
> +def kernel_module_os_env(d, env_dict):
> +    env_dict['CFLAGS'] = ''
> +    env_dict['CPPFLAGS'] = ''
> +    env_dict['CXXFLAGS'] = ''
> +    env_dict['LDFLAGS'] = ''
> +
> +    env_dict['KERNEL_PATH'] = d.getVar('STAGING_KERNEL_DIR')
> +    env_dict['KERNEL_SRC'] = d.getVar('STAGING_KERNEL_DIR')
> +    env_dict['KERNEL_VERSION'] = d.getVar('KERNEL_VERSION')
> +    env_dict['CC'] = d.getVar('KERNEL_CC')
> +    env_dict['LD'] = d.getVar('KERNEL_LD')
> +    env_dict['AR'] = d.getVar('KERNEL_AR')
> +    env_dict['OBJCOPY'] = d.getVar('KERNEL_OBJCOPY')
> +    env_dict['STRIP'] = d.getVar('KERNEL_STRIP')
> +    env_dict['O'] = d.getVar('STAGING_KERNEL_BUILDDIR')
> +    kbuild_extra_symbols = d.getVar('KBUILD_EXTRA_SYMBOLS')
> +    if kbuild_extra_symbols:
> +        env_dict['KBUILD_EXTRA_SYMBOLS'] = kbuild_extra_symbols
> +    else:
> +        env_dict['KBUILD_EXTRA_SYMBOLS'] = ''

This is missing an SPDX identifier, which should be something like:

#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: GPL-2.0-only
#

from looking at the other files.

During the patch review call we said it was fine to merge without it for now but
could you follow-up with a patch adding it?

Thanks,
Antonin


  reply	other threads:[~2026-03-05 10:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-23 21:06 [PATCH 0/7] devtool ide-sdk: test improvements and basic kernel module development support AdrianF
2026-02-23 21:06 ` [PATCH 1/7] oe-selftest: devtool: add compile step in ide-sdk tests AdrianF
2026-02-23 21:06 ` [PATCH 2/7] oe-selftest: devtool: improve test_devtool_ide_sdk_shared_sysroots AdrianF
2026-02-23 21:06 ` [PATCH 3/7] devtool: ide-sdk gate gdbserver warnings on recipe need AdrianF
2026-02-23 21:06 ` [PATCH 4/7] module.bbclass: move environment setup to kernel_module.py AdrianF
2026-03-05 10:46   ` Antonin Godard [this message]
2026-02-23 21:06 ` [PATCH 5/7] devtool: ide-sdk: support kernel module development AdrianF
2026-02-23 21:06 ` [PATCH 6/7] meta-selftest: add test kernel module recipe AdrianF
2026-02-23 21:06 ` [PATCH 7/7] oe-selftest: devtool: add ide-sdk test for kernel modules AdrianF

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=DGUSEFCGQ1MN.12P5HEQPR4NDA@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=adrian.freihofer@siemens.com \
    --cc=openembedded-core@lists.openembedded.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