> DISTRO="xilinx-standalone" bitbake libv7afpthf-exceptions
> 
> It builds, but still complains about the lib ended up at 
> /usr/lib/libexceptions.a,
> but I think this is an issue with cmake. Someone else reported something
> similar here: https://www.yoctoproject.org/pipermail/yocto/2019-
> May/045486.html

Apologies for spam, but want to document what I'm doing for the benefit of 
future readers...

Fixed the CMake problem by patching my CMakeLists.txt like this:

-    install(TARGETS exceptions DESTINATION lib)
+    install(TARGETS exceptions)

With this in place, the static library is correctly built and packaged.

(This works because in CMake 3.14 and later you can omit the DESTINATION and it 
will default to use GNUInstallDirs - 
https://cmake.org/cmake/help/v3.14/module/GNUInstallDirs.html#module:GNUInstallDirs).

For building the actual RTOS, I also had to modify local.conf to add this:

TUNE_CCARGS:tune-armv7afpthf:append = " -mfpu=vfpv3"

Otherwise I get errors like this:

/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S: Assembler 
messages:
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:173: Error: 
VFP single precision register expected -- `vpushne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:176: Error: 
VFP single precision register expected -- `vpopne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:186: Error: 
VFP single precision register expected -- `vpopne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:280: Error: 
VFP single precision register expected -- `vpushne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:291: Error: 
VFP single precision register expected -- `vpopne {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:319: Error: 
VFP single precision register expected -- `vpush {D16-D31}'
/bsp/ps7_cortexa9_1/libsrc/freertos901_xilinx_v1_0/src/portASM.S:326: Error: 
VFP single precision register expected -- `vpop {D16-D31}'

The last thing (hopefully) I'm running into is a link issue:

... 
recipe-sysroot-native/usr/bin/arm-xilinxmllibv7afpthf-eabi/../../libexec/arm-xilinxmllibv7afpthf-eabi/gcc/arm-xilinxmllibv7afpthf-eabi/11.2.0/ld:
 ... /libv7afpthf-recipe-sysroot/usr/lib/thumb/v7-a+fp/hard/crt0.o: in function 
`_mainCRTStartup':
/usr/src/debug/libv7afpthf-libgloss/4.1.0-r0/newlib-4.1.0/libgloss/arm/crt0.S:547:
 undefined reference to `__bss_start__'
... 
recipe-sysroot-native/usr/bin/arm-xilinxmllibv7afpthf-eabi/../../libexec/arm-xilinxmllibv7afpthf-eabi/gcc/arm-xilinxmllibv7afpthf-eabi/11.2.0/ld:
 
/usr/src/debug/libv7afpthf-libgloss/4.1.0-r0/newlib-4.1.0/libgloss/arm/crt0.S:547:
 undefined reference to `__bss_end__'

Working on tracking this one down, but I think it's because our linker script 
is out of date (it was generated by Xilinx 2017.1 tools). It seems like 
__bss_start__ has been renamed to __bss_start?

Thanks,
Chris
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5100): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5100
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to