Hello,
I would like to build a static library (.a) that contains the HAL, the Semihosting/Profiler code, and the tiny embedded unit test framework. The reason is that I am likely to be required to use stand-alone projects, and I would like to have only 1 copy of those things with multiple unit test projects referencing them.
I created a static lib project and added the semihosting/profiling framework via the visual gdb project settings GUI. I also added the unit test framework via the visual gdb project settings.
When I build the library without the unit test framework added (unchecked in the unit test tab of vgdb settings) the build works without error, though there are some warnings (see attachment buildoutputNOUNITTEST.txt). When I build the library with the unit test framework added, I still get the .a file in the output directory but I get a message box in visual studio saying “Warning: cannot perform inline build: Invalid ELF file”, and errors in the build output (see attachment buildoutputWithTinyEmbedded.txt).
Strangely, I still get the .a file in the output directory. I ran readelf -a on both version of of the library. The outputs are attached. The only difference is that the output generated by running on the .a with the unit tests lists symbols for TinyEmbeddedTest.o and SysprogsTestHooks.o (see attached readelf files).
Regards,
Dave
Attachments:
You must be
logged in to view attached files.