> > We are trying to use the Xilinx-standalone DISTRO to ultimately
> > compile a baremetal RTOS for the R5 cores in our UltraScale processor.
> >
>
> Sorry, I forgot to mention - we are using honister and Xilinx 2022.1 tools.
Follow-up. I was able to get it to link by adding --specs=nosys.specs. The full
command then is:
/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-gcc
-mcpu=cortex-r5 -march=armv7-r+idiv -mfpu=vfpv3-d16 -mfloat-abi=softfp -DARMR5
--sysroot=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0=/usr/src/debug/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0
-fdebug-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0=/usr/src/debug/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0
-fdebug-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot=
-fdebug-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native=
-fdiagnostics-color -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
CMakeFiles/cmTC_c4282.dir/testCCompiler.c.obj -o cmTC_da2e9 --specs=nosys.specs
To make this happen in my recipe, I added this:
EXTRA_OECMAKE:append = " \
-DCMAKE_EXE_LINKER_FLAGS=--specs=nosys.specs \
"
This seems to do the trick, though I haven't run the binaries yet.
I am curious though why this extra step is necessary. Seems like something the
toolchain should do itself?
Thanks,
Chris
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5090):
https://lists.yoctoproject.org/g/meta-xilinx/message/5090
Mute This Topic: https://lists.yoctoproject.org/mt/95098230/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-