Re: libquadmath
Konrad Weihmann <kweihmann@...>
The following I just found in local.conf.sample.extended
toggle quoted message
Show quoted text
# Enabling FORTRAN # Note this is not officially supported and is just illustrated here to # show an example of how it can be done # You'll also need your fortran recipe to depend on libgfortran FORTRAN:forcevariable = ",fortran" guess that will solve your issue without the need for a bbappend. Just inject that line via distro or local.conf On 02.01.22 18:31, staticd wrote:
I think to clarify...what I need are these files: |
|
Re: libquadmath
Konrad Weihmann <kweihmann@...>
I think the reason of that is that fortran support isn't enabled in default gcc-runtime recipe.
toggle quoted message
Show quoted text
from gcc-runtime.inc: RUNTIMETARGET = "${RUNTIMELIBSSP} libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \ ${@bb.utils.contains_any('FORTRAN', [',fortran',',f77'], 'libquadmath', '', d)} \ " activates the configuration of libquadmath if either ',fortran' or ',f77' is set in 'FORTRAN' variable. Unfortunately this variable seems to be set to "" since gcc version 9 update By just adding FORTRAN = ",fortran" to a gcc-runtime_%.bbappend I could create the needed files in the sysroot-components directory gcc-runtime/usr/lib/libstdc++.so gcc-runtime/usr/lib/libitm.spec ->> gcc-runtime/usr/lib/libquadmath.so.0.0.0 gcc-runtime/usr/lib/libstdc++.so.6 gcc-runtime/usr/lib/libitm.so.1.0.0 gcc-runtime/usr/lib/libatomic.so.1 gcc-runtime/usr/lib/libgomp.spec gcc-runtime/usr/lib/libitm.a now as you already have set `DEPENDS = "virtual/arm-oe-linux-gnueabi-compilerlibs"` it should automatically make the lib available to your recipe workspace. On 02.01.22 18:31, staticd wrote:
I think to clarify...what I need are these files: |
|
Re: libquadmath
staticd
I think to clarify...what I need are these files: --- snipped from gcc-runtime.inc --- ``` FILES_libquadmath = "${libdir}/libquadmath*.so.*" SUMMARY_libquadmath = "GNU quad-precision math library" FILES_libquadmath-dev = "\ ${libdir}/${TARGET_SYS}/${BINV}/include/quadmath* \ ${libdir}/libquadmath*.so \ ${libdir}/libquadmath.la \ " ``` --- to be in my $STAGING_LIBDIR So far, I have been unable to figure out how to do that, unfortunately. On Sun, Jan 2, 2022 at 12:23 PM staticd <staticd@...> wrote:
|
|
Re: libquadmath
staticd
Thank you, Michael. I have `DEPENDS = "virtual/arm-oe-linux-gnueabi-compilerlibs"` and `do_compile[depends] += "virtual/arm-oe-linux-gnueabi-compilerlibs:do_check"` However, libquadmath.so is still not present in `recipe-sysroot/lib` I used the `do_check` task from gcc_runtime but that still isn't providing `libquadmath.so` in my $STAGING_LIBDIR, which is where I need it. Many thanks. On Sun, Jan 2, 2022 at 12:17 PM Michael Ho <michael.ho@...> wrote:
|
|
Re: libquadmath
Michael Ho
Not familiar with Fortran but maybe it helps to know that this is normally handled with the DEPENDS mechanism. When you add other recipes as dependencies to your recipe, the task do_prepare_recipe_sysroot (run before do_compile) will make hard links to the files from those dependency recipes into that recipe-sysroot directory. Kind regards, Michael On Sun, 2 Jan 2022, 6:06 pm staticd, <staticd@...> wrote:
|
|
libquadmath
staticd
okay...I think I have a more interesting question now... In the package I am building I have some Fortran code that requires `libquadmath` I see that `gcc-runtime` provides the library but I need the library present in `recipe-sysroot/lib` when my `do_compile` runs Is there a way for me to do that? My current approach is to build my image, copy the libraries/includes to my recipe and `install` them in `recipe-sysroot` before `do_compile` This doesn't seem like the correct approach but I am not sure how else to do it at this point Any help would be greatly appreciated. |
|
[auto-upgrade-helper][PATCH] devtool: return both stdout and stderr
Alexander Kanavin
At some point devtool started printing to stderr, which means
patch rebase issues weren't anymore correctly caught, and bogus updates were being sent out. Signed-off-by: Alexander Kanavin <alex.kanavin@...> --- modules/utils/devtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/utils/devtool.py b/modules/utils/devtool.py index 0d27bb0..c26061f 100644 --- a/modules/utils/devtool.py +++ b/modules/utils/devtool.py @@ -19,7 +19,7 @@ class Devtool(object): raise DevtoolError("The following devtool command failed: " + operation, e.stdout, e.stderr) - return stdout + return stdout + stderr def upgrade(self, recipe, version = None, revision = None): cmd = " upgrade " + recipe -- 2.33.1 |
|
How to add WIFI debug tool to custom image
#raspberrypi
#ubuntu
#yocto
#devtool
#distro
mihirdave36@...
Hello,
How can I add any generic WiFi debug tool to Yocto imgae? Thanks Mihir |
|
How to add Alsa loopback / Alsa lib support to custom image
#linux
#raspberrypi
#ubuntu
#yocto
#devtool
mihirdave36@...
Hello,
Happy New Year I am trying to learn Yocto, & implement it on NXP & RPI 4 dev boards. so, could you please guide me how can i add, 1- Alsa loopback or Alsa library. to my custom Yocto image. Thanks Mihir |
|
[meta-security][PATCH] google-authenticator-libpam: update to 1.09
Signed-off-by: Armin Kuster <akuster808@...>
--- ...cator-libpam_1.08.bb => google-authenticator-libpam_1.09.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename recipes-security/google-authenticator-libpam/{google-authenticator-libpam_1.08.bb => google-authenticator-libpam_1.09.bb} (92%) diff --git a/recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.08.bb b/recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.09.bb similarity index 92% rename from recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.08.bb rename to recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.09.bb index e8ddf29..8a0b1ee 100644 --- a/recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.08.bb +++ b/recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.09.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" LICENSE = "Apache-2.0" SRC_URI = "git://github.com/google/google-authenticator-libpam.git;branch=master;protocol=https" -SRCREV = "2c7415d950fb0b4a7f779f045910666447b100ef" +SRCREV = "962f353aac6cfc7b804547319db40f8b804f0b6c" DEPENDS = "libpam" -- 2.25.1 |
|
[meta-cgl][PATCH 3/3] cluster-glue: add UPSTREAM_CHECK_GITTAGREGEX
Yi Zhao
Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.
Before the patch: $ devtool latest-version cluster-glue INFO: Current version: 1.0.12 INFO: Latest version: 10 INFO: Latest version's commit: 62fac3c02affab05abe39c185dad3a91367d3f58 After the patch: $ devtool latest-version cluster-glue INFO: Current version: 1.0.12 INFO: Latest version: 1.0.12 INFO: Latest version's commit: 1bc77825c0cfb0c80f9c82a061af7ede68676cb4 Signed-off-by: Yi Zhao <yi.zhao@...> --- meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb b/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb index acd3149..c9d1bac 100644 --- a/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb +++ b/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb @@ -22,6 +22,8 @@ SRC_URI:append_libc-uclibc = " file://kill-stack-protector.patch" SRCREV = "fd5a3befacd23d056a72cacd2b8ad6bba498e56b" +UPSTREAM_CHECK_GITTAGREGEX = "glue-(?P<pver>\d+(\.\d+)+)" + inherit autotools useradd pkgconfig systemd multilib_script multilib_header SYSTEMD_SERVICE:${PN} = "logd.service" -- 2.25.1 |
|
[meta-cgl][PATCH 2/3] ocfs2-tools: add UPSTREAM_CHECK_GITTAGREGEX
Yi Zhao
Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.
Before the patch: $ devtool latest-version ocfs2-tools INFO: Current version: 1.8.6 INFO: Latest version: 2 INFO: Latest version's commit: 80a60d697d9052d3f196a932df3d1fb5f0df52d6 After the patch: $ devtool latest-version ocfs2-tools INFO: Current version: 1.8.6 INFO: Latest version: 1.8.7 INFO: Latest version's commit: 80a60d697d9052d3f196a932df3d1fb5f0df52d6 Signed-off-by: Yi Zhao <yi.zhao@...> --- meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb index 7c32c54..28ef4b0 100644 --- a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb +++ b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb @@ -22,6 +22,9 @@ SRC_URI = "git://github.com/markfasheh/ocfs2-tools;branch=master;protocol=https file://0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch \ " SRCREV = "4d76ceb4aa7aaa1fd595368089e99575d708f719" + +UPSTREAM_CHECK_GITTAGREGEX = "ocfs2-tools-(?P<pver>\d+(\.\d+)+)" + S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig systemd -- 2.25.1 |
|
[meta-cgl][PATCH 1/3] resource-agents: add UPSTREAM_CHECK_GITTAGREGEX
Yi Zhao
Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.
Before the patch: $ devtool latest-version resource-agents INFO: Current version: 4.5.0 INFO: Latest version: 10 INFO: Latest version's commit: 5cf93783eafa22e8b82d50834bfb76b9e8434783 After the patch: $ devtool latest-version resource-agents INFO: Current version: 4.5.0 INFO: Latest version: 4.10.0 INFO: Latest version's commit: fd0720f73a06042ad0a5475a3398096b2912cf5f Signed-off-by: Yi Zhao <yi.zhao@...> --- .../cluster-resource-agents/resource-agents_4.5.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb index 00ddd22..c8b2fbd 100644 --- a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb +++ b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb @@ -24,6 +24,8 @@ SRC_URI = "git://github.com/ClusterLabs/resource-agents;branch=main;protocol=htt SRCREV = "fee181320547365d7f8c88cca2b32801412b933d" +UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" + S="${WORKDIR}/git" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ -- 2.25.1 |
|
Re: building image for Realtek RTS3916N mips SoC using vendor provided prebuilt external uClibc toolchain
davis roman <davis.roman84@...>
On Wed, Dec 29, 2021 at 6:15 PM Davis Roman <davis.roman84@...> wrote:
Nevermind, I scraped the last patch, recreated my BUILD_DIR, set MACHINE = "qemumips" and added DEFAULTTUNE = "mips" in my local.conf. Now the build configuration correct https://pastebin.com/pkkRVL58 and I'm now waiting for the toolchain to finish so I can attempt to build realtek's u-boot.
|
|
Re: building image for Realtek RTS3916N mips SoC using vendor provided prebuilt external uClibc toolchain
davis roman <davis.roman84@...>
On Wed, Dec 29, 2021 at 5:30 PM Khem Raj <raj.khem@...> wrote:
Sorry Khem, I'm not quite following you. I tried the following patch (https://pastebin.com/rkmQ3t6P) thinking perhaps this is what you meant however my build configuration still shows the tune set to mips32r2 https://pastebin.com/izP9thVW What am I missing?
|
|
Re: building image for Realtek RTS3916N mips SoC using vendor provided prebuilt external uClibc toolchain
On Wed, Dec 29, 2021 at 2:20 PM Davis Roman <davis.roman84@...> wrote: On Wed, Dec 29, 2021 at 2:21 PM Anders Montonen <Anders.Montonen@...> wrote: Yes it’s supported although it’s not default for qemumips so the simple trick you can do is change the DEFAULTTUNE setting in the qemumips.conf away from mips32r2
|
|
Re: building image for Realtek RTS3916N mips SoC using vendor provided prebuilt external uClibc toolchain
davis roman <davis.roman84@...>
On Wed, Dec 29, 2021 at 2:21 PM Anders Montonen <Anders.Montonen@...> wrote:
You're right. I didn't realize the RX5281 core on the RTS3916N only supports mips1 or mips16 (https://pasteboard.co/IpsqN6GkBYAs.png). I happened to have a mips sourcery toolchain installed on my machine (https://sourcery.sw.siemens.com/GNUToolchain/package12797/public/mips-linux-gnu/mips-2014.05-27-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2) so I pointed that to u-boot without modifying anything else and it was able to compile u-boot successfully. Woot! https://pastebin.com/ySPFae5u I suppose the next step would be to generate a mips1 yocto toolchain however according to the available tune values it appears only mips32 or mips64 is available Any suggestions on how to generate a mips1 yocto toolchain or if that's even supported?
|
|
Re: building image for Realtek RTS3916N mips SoC using vendor provided prebuilt external uClibc toolchain
Anders Montonen
Hi,
On 29 Dec 2021, at 9:53, davis roman <davis.roman84@...> wrote:I’m guessing that your U-Boot config doesn’t set the correct MIPS architecture revision. The compiler error shows that you’re trying to assemble a MIPS32r1 instruction, but the compiler is targeting the original MIPS1 architecture. The Realtek toolchain may have set the default architecture to match the SoC, but the fix is to update the config to match the hardware. Regards, Anders Montonen |
|
Re: [meta-raspberrypi][PATCH] xserver-xorg: remove xshmfence configure option
Andreas Müller
On Thu, Dec 9, 2021 at 6:37 AM Khem Raj <raj.khem@...> wrote:
Looked into xserver's meson.build: As soon as dri3 is added - which we do - libxshmfence turns into a mandatory dependency. So this patch is correct. Somehow libxshmfence is added to sysroot - maybe we should add it explicitly to dri3 PACKAGECONFIG in oe-core to be more explicit. Slightly off-topic but we are on xserver on Raspi: Has anybody tested xserver recently? I see nasty issues on raspi4-64 / XFCE (haven't tried other desktops yet): * As soon as a window is opened, screen turns black for 1-2 seconds. Have not yet found helpful in logs yet. * There are two mouse devices detected with name 'vc4'. What? Cheers Andreas |
|
Re: building image for Realtek RTS3916N mips SoC using vendor provided prebuilt external uClibc toolchain
davis roman <davis.roman84@...>
On Tue, Dec 28, 2021 at 10:09 PM Khem Raj <raj.khem@...> wrote:
Thanks Khem for confirming my suspicions. I generated an internal mips toolchain built against musl and I triedSince you have bootloader and kernel available to you, it might be less to compile u-boot but unfortunately, I'm getting "opcode not supported" error messages. https://pastebin.com/QdcLxy69 If instead I use the realtek provided prebuilt toolchain then u-boot compiles successfully. https://pastebin.com/zcQ5kc20 I'm thinking that Realtek's toolchain has patches specific to their SoC that have not been pushed upstream. Could this be the reason I'm unable to compile uboot?
|
|