From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12CEAC2D0CD for ; Tue, 20 May 2025 00:36:28 +0000 (UTC) Subject: Re: [PATCH v2] linux-yocto: build out-of-tree drivers with SDK To: openembedded-core@lists.openembedded.org From: "Vincent Davis Jr" X-Originating-Location: Detroit, Michigan, US (68.49.9.200) X-Originating-Platform: Linux Firefox 138 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 19 May 2025 17:36:13 -0700 References: In-Reply-To: Message-ID: <29559.1747701373120906688@lists.openembedded.org> Content-Type: multipart/alternative; boundary="wf1JB0g5dL26Mw75twY3" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 May 2025 00:36:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/216879 --wf1JB0g5dL26Mw75twY3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, May 15, 2025 at 12:58 PM, Bruce Ashfield wrote: >=20 > KBUILD_USERHOSTCFLAGS Hello this patch may be dropped. May just have been an issue with the way I= build the standard SDK in my setup. Cloning poky and building bellow recipe gener= ates a standard SDK who's kernel source tree can be prepared for out-of-tree dri= ver development. Should of tried this first. >=20 > cat >> recipes-sdk/images/base-devel-sdk.bb < SUMMARY =3D "Some Development Standard SDK" > LICENSE =3D "MIT" > inherit populate_sdk > TOOLCHAIN_TARGET_TASK +=3D "kernel-devsrc" > EOF >=20 >=20 > KBUILD_USERHOSTCFLAGS=3D"${KCFLAGS}" make -e -C > sysroots/core2-64-poky-linux/lib/modules/6.12.27-yocto-standard/build/ > modules_prepare >=20 Appears to work for me Thanks, Vincent --wf1JB0g5dL26Mw75twY3 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Thu, May 15, 2025 at 12:58 PM, Bruce Ashfield wrote:
KBUILD_USERHOSTCFLAGS
Hello this patch may be dropped. May just have been an issue with the = way I build
the standard SDK in my setup. Cloning poky and building bellow recipe = generates
a standard SDK who's kernel source tree can be prepared for out-of-tre= e driver
development. Should of tried this first.
 
cat >> recipes-sdk/images/base-devel-sdk.bb <<EOF
SUM= MARY =3D "Some Development Standard SDK"
LICENSE =3D "MIT"
inherit populate_sdk
TOOLCHAIN_TARGET_TASK +=3D "kernel-devsrc"
EOF
KBUILD_USERHOSTCFLAGS=3D"${KCFLAGS}" make -e -C sysroots/core2-64-poky= -linux/lib/modules/6.12.27-yocto-standard/build/ modules_prepare
 
Appears to work for me
 
Thanks,
Vincent
--wf1JB0g5dL26Mw75twY3--