Feedback on build system xmake/xcommon etc

Technical questions regarding the XTC tools and programming with XMOS.
michaelf
Junior Member
Posts: 6
Joined: Thu Mar 14, 2024 7:44 pm

Post by michaelf »

Ross wrote: Mon Aug 19, 2024 12:19 pm xcommon-cmake is now bundled with the new tools release XTC 15.3 available here: https://www.xmos.com/software-tools/

Expect to see apps and software migrate as they are released.
I wonder if I can confirm that libraries such as lib_spi are still pending update for the new build system? I'm starting a new application and when I add

Code: Select all

set(APP_DEPENDENT_MODULES "lib_spi")
to my CMakeLists.txt, lib_spi is fetched from github, but cmake fails because it cannot find lib_build_info.cmake. It builds fine if I create such a file myself, with the following contents:

Code: Select all

set(LIB_NAME lib_spi)
set(LIB_VERSION 3.3.0)
set(LIB_INCLUDES api)

XMOS_REGISTER_MODULE()
Is the above the best way to do this at the moment or have I missed something?
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Hi,

Yes, we’re gradually adding to all libs and moving examples (and tests)

Odd that lib_spi hasn’t been addressed yet, we’ll get it done. Thanks for the report.

Your lib_build_info looks good.

Edit: this is now being addressed
Technical Director @ XMOS. Opinions expressed are my own