* [PATCH] Makefile: add KCFLAGS to build with Yocto SDK
@ 2025-05-13 4:04 Vincent Davis Jr
2025-05-13 14:38 ` Masahiro Yamada
0 siblings, 1 reply; 5+ messages in thread
From: Vincent Davis Jr @ 2025-05-13 4:04 UTC (permalink / raw)
To: linux-kbuild, masahiroy; +Cc: nathan, nicolas, Vincent Davis Jr
When running
make -C \
"${SDKTARGETSYSROOT}/lib/modules/<kernel version>/build" \
modules_prepare
Issue that are encountered include
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
92 | #include <sys/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
ld: cannot find Scrt1.o: No such file or directory
ld: cannot find crti.o: No such file or directory
ld: cannot find crtbeginS.o: No such file or directory
ld: cannot find -lgcc: No such file or directory
ld: cannot find -lgcc_s: No such file or directory
ld: cannot find -lc: No such file or directory
ld: cannot find -lgcc: No such file or directory
ld: cannot find -lgcc_s: No such file or directory
ld: cannot find crtendS.o: No such file or directory
ld: cannot find crtn.o: No such file or directory
Solved by setting KCFLAGS as the yocto project SDK
KCFLAGS is set to --sysroot="${SDKTARGETSYSROOT}".
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 64c514f4bc19..bbe7b0503841 100644
--- a/Makefile
+++ b/Makefile
@@ -459,7 +459,7 @@ HOSTRUSTC = rustc
HOSTPKG_CONFIG = pkg-config
KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
- -O2 -fomit-frame-pointer -std=gnu11
+ -O2 -fomit-frame-pointer -std=gnu11 $(KCFLAGS)
KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS)
KBUILD_USERLDFLAGS := $(USERLDFLAGS)
@@ -491,7 +491,7 @@ KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) \
-I $(srctree)/scripts/include
KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Cstrip=debuginfo \
-Zallow-features= $(HOSTRUSTFLAGS)
-KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
+KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) $(KCFLAGS)
KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
KBUILD_PROCMACROLDFLAGS := $(or $(PROCMACROLDFLAGS),$(KBUILD_HOSTLDFLAGS))
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] Makefile: add KCFLAGS to build with Yocto SDK
2025-05-13 4:04 [PATCH] Makefile: add KCFLAGS to build with Yocto SDK Vincent Davis Jr
@ 2025-05-13 14:38 ` Masahiro Yamada
2025-05-14 1:47 ` Vincent Davis
2025-05-20 0:47 ` Vincent Davis
0 siblings, 2 replies; 5+ messages in thread
From: Masahiro Yamada @ 2025-05-13 14:38 UTC (permalink / raw)
To: Vincent Davis Jr; +Cc: linux-kbuild, nathan, nicolas
On Tue, May 13, 2025 at 1:04 PM Vincent Davis Jr <vince@underview.tech> wrote:
>
> When running
>
> make -C \
> "${SDKTARGETSYSROOT}/lib/modules/<kernel version>/build" \
> modules_prepare
This is not the correct way to build an external module.
Do not run modules_prepare.
> Issue that are encountered include
>
> make -f ./Makefile syncconfig
> make -f ./scripts/Makefile.build obj=scripts/basic
> 92 | #include <sys/types.h>
> | ^~~~~~~~~~~~~
> compilation terminated.
>
> ld: cannot find Scrt1.o: No such file or directory
> ld: cannot find crti.o: No such file or directory
> ld: cannot find crtbeginS.o: No such file or directory
> ld: cannot find -lgcc: No such file or directory
> ld: cannot find -lgcc_s: No such file or directory
> ld: cannot find -lc: No such file or directory
> ld: cannot find -lgcc: No such file or directory
> ld: cannot find -lgcc_s: No such file or directory
> ld: cannot find crtendS.o: No such file or directory
> ld: cannot find crtn.o: No such file or directory
>
> Solved by setting KCFLAGS as the yocto project SDK
> KCFLAGS is set to --sysroot="${SDKTARGETSYSROOT}".
>
> Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> ---
> Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 64c514f4bc19..bbe7b0503841 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -459,7 +459,7 @@ HOSTRUSTC = rustc
> HOSTPKG_CONFIG = pkg-config
>
> KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
> - -O2 -fomit-frame-pointer -std=gnu11
> + -O2 -fomit-frame-pointer -std=gnu11 $(KCFLAGS)
Sorry, I do not understand what you are trying to achieve.
KCFLAGS is meant to specify compiler flags for the kernel-space,
not userspace host programs.
> KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS)
> KBUILD_USERLDFLAGS := $(USERLDFLAGS)
>
> @@ -491,7 +491,7 @@ KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) \
> -I $(srctree)/scripts/include
> KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Cstrip=debuginfo \
> -Zallow-features= $(HOSTRUSTFLAGS)
> -KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
> +KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) $(KCFLAGS)
> KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
> KBUILD_PROCMACROLDFLAGS := $(or $(PROCMACROLDFLAGS),$(KBUILD_HOSTLDFLAGS))
>
> --
> 2.43.0
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] Makefile: add KCFLAGS to build with Yocto SDK
2025-05-13 14:38 ` Masahiro Yamada
@ 2025-05-14 1:47 ` Vincent Davis
2025-05-14 1:57 ` Vincent Davis
2025-05-20 0:47 ` Vincent Davis
1 sibling, 1 reply; 5+ messages in thread
From: Vincent Davis @ 2025-05-14 1:47 UTC (permalink / raw)
To: linux-kbuild
Hello,
Sorry I should have given a better description. First kernel patch.
There appears to be a userspace program called fixdep.c.
That won't compile when you utilize the yocto project SDK
cross compilers. Problems are described in the original patch.
We have to run make modules_prepare as there's limits with the
Yocto project kernel-devsrc package that gets included in the SDK.
After SDK extraction, developers have to first prepare the SDK's
kernel source tree to be able to build any out of tree drivers with
the SDK's cross-compilers. This wasn't achievable without the
submitted patch.
Sorry for poor timing. I am going on vacation and can't respond
due to emails needing to be in plain text. Please don't ignore
future patches.
For instance if I run bellow commands
$ ./x86_64-0.1.0-underview.sh
Underview SDK installer version 0.1.0
=====================================
Enter target directory for SDK (default: .): extract-sdk
You are about to install the SDK to "/home/vince/extract-sdk". Proceed [Y/n]? Y
Extracting SDK.............................................................................................................................................................................................................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to
source the environment setup script e.g.
$ . /home/vince/extract-sdk/environment-setup-zen1-underview-linux
$ source /home/vince/extract-sdk/environment-setup-zen1-underview-linux
$ cd /home/vince/extract-sdk
$ ls sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build/
arch certs Documentation fs init ipc Kconfig lib
mm net samples security
System.map-6.6.9-amd-standard usr
block crypto drivers include io_uring Kbuild kernel
Makefile Module.symvers rust scripts sound tools
virt
$ make -C sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build
modules_prepare
make: Entering directory
'/home/vince/extract-sdk/sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build'
SYNC include/config/auto.conf
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:92:10: fatal error: sys/types.h: No such file
or directory
92 | #include <sys/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.host:114: scripts/basic/fixdep] Error 1
make[2]: *** [Makefile:633: scripts_basic] Error 2
make[1]: *** [/home/vince/extract-sdk/sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build/Makefile:798:
include/config/auto.conf] Error 2
make[1]: *** [include/config/auto.conf] Deleting file
'include/generated/rustc_cfg'
make[1]: *** [include/config/auto.conf] Deleting file
'include/generated/autoconf.h'
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory
'/home/vince/extract-sdk/sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build'
Hopefully makes sense
On Tue, May 13, 2025 at 10:39 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Tue, May 13, 2025 at 1:04 PM Vincent Davis Jr <vince@underview.tech> wrote:
> >
> > When running
> >
> > make -C \
> > "${SDKTARGETSYSROOT}/lib/modules/<kernel version>/build" \
> > modules_prepare
>
> This is not the correct way to build an external module.
> Do not run modules_prepare.
>
>
>
>
> > Issue that are encountered include
> >
> > make -f ./Makefile syncconfig
> > make -f ./scripts/Makefile.build obj=scripts/basic
> > 92 | #include <sys/types.h>
> > | ^~~~~~~~~~~~~
> > compilation terminated.
> >
> > ld: cannot find Scrt1.o: No such file or directory
> > ld: cannot find crti.o: No such file or directory
> > ld: cannot find crtbeginS.o: No such file or directory
> > ld: cannot find -lgcc: No such file or directory
> > ld: cannot find -lgcc_s: No such file or directory
> > ld: cannot find -lc: No such file or directory
> > ld: cannot find -lgcc: No such file or directory
> > ld: cannot find -lgcc_s: No such file or directory
> > ld: cannot find crtendS.o: No such file or directory
> > ld: cannot find crtn.o: No such file or directory
> >
> > Solved by setting KCFLAGS as the yocto project SDK
> > KCFLAGS is set to --sysroot="${SDKTARGETSYSROOT}".
> >
> > Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> > ---
> > Makefile | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Makefile b/Makefile
> > index 64c514f4bc19..bbe7b0503841 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -459,7 +459,7 @@ HOSTRUSTC = rustc
> > HOSTPKG_CONFIG = pkg-config
> >
> > KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
> > - -O2 -fomit-frame-pointer -std=gnu11
> > + -O2 -fomit-frame-pointer -std=gnu11 $(KCFLAGS)
>
>
> Sorry, I do not understand what you are trying to achieve.
>
> KCFLAGS is meant to specify compiler flags for the kernel-space,
> not userspace host programs.
>
>
>
>
> > KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS)
> > KBUILD_USERLDFLAGS := $(USERLDFLAGS)
> >
> > @@ -491,7 +491,7 @@ KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) \
> > -I $(srctree)/scripts/include
> > KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Cstrip=debuginfo \
> > -Zallow-features= $(HOSTRUSTFLAGS)
> > -KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
> > +KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) $(KCFLAGS)
> > KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
> > KBUILD_PROCMACROLDFLAGS := $(or $(PROCMACROLDFLAGS),$(KBUILD_HOSTLDFLAGS))
> >
> > --
> > 2.43.0
> >
>
>
> --
> Best Regards
> Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] Makefile: add KCFLAGS to build with Yocto SDK
2025-05-14 1:47 ` Vincent Davis
@ 2025-05-14 1:57 ` Vincent Davis
0 siblings, 0 replies; 5+ messages in thread
From: Vincent Davis @ 2025-05-14 1:57 UTC (permalink / raw)
To: linux-kbuild
Hello correction in previous comment.
After SDK extraction, developers have to first prepare the SDK's
kernel source tree to be able to build any out of tree drivers with
the SDK's cross-compilers and kernel source tree.
Thanks,
Vincent
On Tue, May 13, 2025 at 9:47 PM Vincent Davis <vince@underview.tech> wrote:
>
> Hello,
>
> Sorry I should have given a better description. First kernel patch.
>
> There appears to be a userspace program called fixdep.c.
> That won't compile when you utilize the yocto project SDK
> cross compilers. Problems are described in the original patch.
>
> We have to run make modules_prepare as there's limits with the
> Yocto project kernel-devsrc package that gets included in the SDK.
>
> After SDK extraction, developers have to first prepare the SDK's
> kernel source tree to be able to build any out of tree drivers with
> the SDK's cross-compilers. This wasn't achievable without the
> submitted patch.
>
> Sorry for poor timing. I am going on vacation and can't respond
> due to emails needing to be in plain text. Please don't ignore
> future patches.
>
> For instance if I run bellow commands
>
> $ ./x86_64-0.1.0-underview.sh
> Underview SDK installer version 0.1.0
> =====================================
> Enter target directory for SDK (default: .): extract-sdk
> You are about to install the SDK to "/home/vince/extract-sdk". Proceed [Y/n]? Y
> Extracting SDK.............................................................................................................................................................................................................................................................................................................................................done
> Setting it up...done
> SDK has been successfully set up and is ready to be used.
> Each time you wish to use the SDK in a new shell session, you need to
> source the environment setup script e.g.
> $ . /home/vince/extract-sdk/environment-setup-zen1-underview-linux
>
> $ source /home/vince/extract-sdk/environment-setup-zen1-underview-linux
>
> $ cd /home/vince/extract-sdk
> $ ls sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build/
> arch certs Documentation fs init ipc Kconfig lib
> mm net samples security
> System.map-6.6.9-amd-standard usr
> block crypto drivers include io_uring Kbuild kernel
> Makefile Module.symvers rust scripts sound tools
> virt
>
> $ make -C sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build
> modules_prepare
> make: Entering directory
> '/home/vince/extract-sdk/sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build'
> SYNC include/config/auto.conf
> HOSTCC scripts/basic/fixdep
> scripts/basic/fixdep.c:92:10: fatal error: sys/types.h: No such file
> or directory
> 92 | #include <sys/types.h>
> | ^~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [scripts/Makefile.host:114: scripts/basic/fixdep] Error 1
> make[2]: *** [Makefile:633: scripts_basic] Error 2
> make[1]: *** [/home/vince/extract-sdk/sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build/Makefile:798:
> include/config/auto.conf] Error 2
> make[1]: *** [include/config/auto.conf] Deleting file
> 'include/generated/rustc_cfg'
> make[1]: *** [include/config/auto.conf] Deleting file
> 'include/generated/autoconf.h'
> make: *** [Makefile:234: __sub-make] Error 2
> make: Leaving directory
> '/home/vince/extract-sdk/sysroots/zen1-underview-linux/usr/lib/modules/6.6.9-amd-standard/build'
>
> Hopefully makes sense
>
>
> On Tue, May 13, 2025 at 10:39 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > On Tue, May 13, 2025 at 1:04 PM Vincent Davis Jr <vince@underview.tech> wrote:
> > >
> > > When running
> > >
> > > make -C \
> > > "${SDKTARGETSYSROOT}/lib/modules/<kernel version>/build" \
> > > modules_prepare
> >
> > This is not the correct way to build an external module.
> > Do not run modules_prepare.
> >
> >
> >
> >
> > > Issue that are encountered include
> > >
> > > make -f ./Makefile syncconfig
> > > make -f ./scripts/Makefile.build obj=scripts/basic
> > > 92 | #include <sys/types.h>
> > > | ^~~~~~~~~~~~~
> > > compilation terminated.
> > >
> > > ld: cannot find Scrt1.o: No such file or directory
> > > ld: cannot find crti.o: No such file or directory
> > > ld: cannot find crtbeginS.o: No such file or directory
> > > ld: cannot find -lgcc: No such file or directory
> > > ld: cannot find -lgcc_s: No such file or directory
> > > ld: cannot find -lc: No such file or directory
> > > ld: cannot find -lgcc: No such file or directory
> > > ld: cannot find -lgcc_s: No such file or directory
> > > ld: cannot find crtendS.o: No such file or directory
> > > ld: cannot find crtn.o: No such file or directory
> > >
> > > Solved by setting KCFLAGS as the yocto project SDK
> > > KCFLAGS is set to --sysroot="${SDKTARGETSYSROOT}".
> > >
> > > Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> > > ---
> > > Makefile | 4 ++--
> > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/Makefile b/Makefile
> > > index 64c514f4bc19..bbe7b0503841 100644
> > > --- a/Makefile
> > > +++ b/Makefile
> > > @@ -459,7 +459,7 @@ HOSTRUSTC = rustc
> > > HOSTPKG_CONFIG = pkg-config
> > >
> > > KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
> > > - -O2 -fomit-frame-pointer -std=gnu11
> > > + -O2 -fomit-frame-pointer -std=gnu11 $(KCFLAGS)
> >
> >
> > Sorry, I do not understand what you are trying to achieve.
> >
> > KCFLAGS is meant to specify compiler flags for the kernel-space,
> > not userspace host programs.
> >
> >
> >
> >
> > > KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS)
> > > KBUILD_USERLDFLAGS := $(USERLDFLAGS)
> > >
> > > @@ -491,7 +491,7 @@ KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) \
> > > -I $(srctree)/scripts/include
> > > KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Cstrip=debuginfo \
> > > -Zallow-features= $(HOSTRUSTFLAGS)
> > > -KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
> > > +KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) $(KCFLAGS)
> > > KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
> > > KBUILD_PROCMACROLDFLAGS := $(or $(PROCMACROLDFLAGS),$(KBUILD_HOSTLDFLAGS))
> > >
> > > --
> > > 2.43.0
> > >
> >
> >
> > --
> > Best Regards
> > Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Makefile: add KCFLAGS to build with Yocto SDK
2025-05-13 14:38 ` Masahiro Yamada
2025-05-14 1:47 ` Vincent Davis
@ 2025-05-20 0:47 ` Vincent Davis
1 sibling, 0 replies; 5+ messages in thread
From: Vincent Davis @ 2025-05-20 0:47 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: linux-kbuild, nathan, nicolas
Hello,
Patch can be ignored and dropped.
Believe the original issue has to do with the way I built the SDK.
Thanks,
Vincent
On Tue, May 13, 2025 at 10:39 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Tue, May 13, 2025 at 1:04 PM Vincent Davis Jr <vince@underview.tech> wrote:
> >
> > When running
> >
> > make -C \
> > "${SDKTARGETSYSROOT}/lib/modules/<kernel version>/build" \
> > modules_prepare
>
> This is not the correct way to build an external module.
> Do not run modules_prepare.
>
>
>
>
> > Issue that are encountered include
> >
> > make -f ./Makefile syncconfig
> > make -f ./scripts/Makefile.build obj=scripts/basic
> > 92 | #include <sys/types.h>
> > | ^~~~~~~~~~~~~
> > compilation terminated.
> >
> > ld: cannot find Scrt1.o: No such file or directory
> > ld: cannot find crti.o: No such file or directory
> > ld: cannot find crtbeginS.o: No such file or directory
> > ld: cannot find -lgcc: No such file or directory
> > ld: cannot find -lgcc_s: No such file or directory
> > ld: cannot find -lc: No such file or directory
> > ld: cannot find -lgcc: No such file or directory
> > ld: cannot find -lgcc_s: No such file or directory
> > ld: cannot find crtendS.o: No such file or directory
> > ld: cannot find crtn.o: No such file or directory
> >
> > Solved by setting KCFLAGS as the yocto project SDK
> > KCFLAGS is set to --sysroot="${SDKTARGETSYSROOT}".
> >
> > Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> > ---
> > Makefile | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Makefile b/Makefile
> > index 64c514f4bc19..bbe7b0503841 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -459,7 +459,7 @@ HOSTRUSTC = rustc
> > HOSTPKG_CONFIG = pkg-config
> >
> > KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
> > - -O2 -fomit-frame-pointer -std=gnu11
> > + -O2 -fomit-frame-pointer -std=gnu11 $(KCFLAGS)
>
>
> Sorry, I do not understand what you are trying to achieve.
>
> KCFLAGS is meant to specify compiler flags for the kernel-space,
> not userspace host programs.
>
>
>
>
> > KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS)
> > KBUILD_USERLDFLAGS := $(USERLDFLAGS)
> >
> > @@ -491,7 +491,7 @@ KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) \
> > -I $(srctree)/scripts/include
> > KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Cstrip=debuginfo \
> > -Zallow-features= $(HOSTRUSTFLAGS)
> > -KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
> > +KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) $(KCFLAGS)
> > KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
> > KBUILD_PROCMACROLDFLAGS := $(or $(PROCMACROLDFLAGS),$(KBUILD_HOSTLDFLAGS))
> >
> > --
> > 2.43.0
> >
>
>
> --
> Best Regards
> Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-20 0:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 4:04 [PATCH] Makefile: add KCFLAGS to build with Yocto SDK Vincent Davis Jr
2025-05-13 14:38 ` Masahiro Yamada
2025-05-14 1:47 ` Vincent Davis
2025-05-14 1:57 ` Vincent Davis
2025-05-20 0:47 ` Vincent Davis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.