On Thu, Oct 26, 2023 at 7:16 AM Jörg Sommer <[email protected]> wrote:
>
> On 26.10.23 10:34, Jose Quaresma wrote:
> >
> >
> > Khem Raj <[email protected] <mailto:[email protected]>> escreveu no
> > dia quarta, 25/10/2023 à(s) 18:18:
> >
> >     I wonder if something like below would help
> >
> >     diff --git
> >     a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> >     <http://make-mod-scripts_1.0.bb>
> >     b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> >     <http://make-mod-scripts_1.0.bb>
> >     index 2cff48c39c3..6133721334c 100644
> >     --- a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> >     <http://make-mod-scripts_1.0.bb>
> >     +++ b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> >     <http://make-mod-scripts_1.0.bb>
> >     @@ -12,7 +12,7 @@ S = "${WORKDIR}"
> >
> >      do_configure[depends] += "virtual/kernel:do_shared_workdir
> >     openssl-native:do_populate_sysroot"
> >      do_compile[depends] += "virtual/kernel:do_compile_kernelmodules"
> >     -
> >     +do_populate_sysroot[depends] += "openssl-native:do_populate_sysroot"
> >
> >
> > This doesn't solve the problem because at compile time the openssl is
> > already there on native sysroot
>
> How about a patch like this:
>

I proposed something similar in the earlier threads on this topic (it
has been around for quite some time, and is in bugzilla for oe-core)/

I ran into issues with some kernel versions, but we may have moved on
far enough that it is no longer an issue.

static linking is another option, but it runs into some autobuilder
issues with distros that don't have a static libc.

Bruce

> ```
> diff --git i/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb 
> w/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> index 0e420a25d9..182abd0233 100644
> --- i/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> +++ w/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
> @@ -18,6 +18,10 @@ RDEPENDS:${PN}-dev = ""
>  DEPENDS += "bc-native bison-native"
>  DEPENDS += "gmp-native"
>
> +BUILD_LDFLAGS =+ "-L 
> /build/tmp/sysroots-components/x86_64/openssl-native/usr/lib \
> +       
> -Wl,-rpath-link,/build/tmp/sysroots-components/x86_64/openssl-native/usr/lib \
> +       
> -Wl,-rpath,/build/tmp/sysroots-components/x86_64/openssl-native/usr/lib"
> +
>  EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" 
> HOSTCPP="${BUILD_CPP}""
>  EXTRA_OEMAKE += " HOSTCXX="${BUILD_CXX} ${BUILD_CXXFLAGS} ${BUILD_LDFLAGS}" 
> CROSS_COMPILE=${TARGET_PREFIX}"
>
> ```
>
> Regards
>
> Jörg Sommer
> --
> Navimatix GmbH
> Tatzendpromenade 2
> D-07745 Jena
> Geschäftsführer: Steffen Späthe, Jan Rommeley
> Registergericht: Amtsgericht Jena, HRB 501480
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105755): 
https://lists.openembedded.org/g/openembedded-devel/message/105755
Mute This Topic: https://lists.openembedded.org/mt/102174355/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to