Re: CMake support

2020-12-14 Thread Chris Johns
On 14/12/20 8:26 pm, Robin Müller wrote: > Hi. > > I now implemented pkg-config parsing and it works nicely with the tools given > by > CMake / kitware. I was able to build the hello application with the automatic > pkg flag parsing for sparc/erc32, sparc/leon3 and arm/stm32h7. Awesome. > I do

Re: CMake support

2020-12-14 Thread Robin Müller
Hi. I now implemented pkg-config parsing and it works nicely with the tools given by CMake / kitware. I was able to build the hello application with the automatic pkg flag parsing for sparc/erc32, sparc/leon3 and arm/stm32h7. I do not know exactly when this feature was added to be honest. I set th

Re: CMake support

2020-12-13 Thread Chris Johns
On 11/12/20 8:58 pm, Stanislav Pankevich wrote: > Having this said, I would like to avoid pushing the CMake-way of doing things > as > a better way. Yeah, lets put that to one side. That is a topic for a coffee or a bar ... one day :) > Instead, I could contribute feedback to Robin's work here:

Re: CMake support

2020-12-13 Thread Chris Johns
On 12/12/20 6:09 am, Robin Müller wrote: > I added the suggestions by Chris Johns now and performed some more tests (for > example disabling the default compiler checks, custom checks are required for > RTEMS). > > I used RTEMS_PREFIX instead of PREFIX These are 2 parts that need to be specified,

Re: CMake support

2020-12-13 Thread Chris Johns
On 11/12/20 9:14 pm, Robin Müller wrote: > > There seems to be positive feedback, thanks for that. > > I can adapt the naming to be more consistent with your system. Thanks > My system is currently assuming that the RTEMS tools and the BSP are both > located at RTEMS_INST > I guess the first co

Re: CMake support

2020-12-11 Thread Robin Müller
I added the suggestions by Chris Johns now and performed some more tests (for example disabling the default compiler checks, custom checks are required for RTEMS). I used RTEMS_PREFIX instead of PREFIX because PREFIX appears to be a reserved name in CMake, and RTEMS_PREFIX is also a little bit mor

Re: CMake support

2020-12-11 Thread Robin Müller
Hi, There seems to be positive feedback, thanks for that. I can adapt the naming to be more consistent with your system. My system is currently assuming that the RTEMS tools and the BSP are both located at RTEMS_INST I guess the first command: cmake -DPREFIX=/install-point -DRTEMS_BSP=arm/stm32h

Re: CMake support

2020-12-11 Thread Stanislav Pankevich
Hi all, > I was wondering whether CMake support or an example is available or will be added in the future. We are using a framework which has different abstraction layers for OSes like (embedded) Linux, RTEMS and FreeRTOS, but we would like to use the same build system to build applications and ri

Re: CMake support

2020-12-10 Thread Joel Sherrill
On Thu, Dec 10, 2020 at 5:58 PM Chris Johns wrote: > On 11/12/20 8:51 am, Robin Müller wrote: > > Hello, > > > > I created a repository on github for the first version of what a CMake > support > > for RTEMS might look like: > > > > https://github.com/rmspacefish/rtems-cmake > >

Re: CMake support

2020-12-10 Thread Chris Johns
On 11/12/20 8:51 am, Robin Müller wrote: > Hello, > > I created a repository on github for the first version of what a CMake support > for RTEMS might look like: > > https://github.com/rmspacefish/rtems-cmake > > Awesome and thanks. :) > I tried to

Re: CMake support

2020-12-10 Thread Robin Müller
Hello, I created a repository on github for the first version of what a CMake support for RTEMS might look like: https://github.com/rmspacefish/rtems-cmake I tried to extract generic components like determining library paths into functions (RTEMSGeneric.cmake) and there is a hardware specific f

Re: CMake support

2020-12-09 Thread Chris Johns
On 10/12/20 1:18 am, Joel Sherrill wrote: > As I read this thread, this morning, it occurred to me that the Users > Manual needs a chapter on build systems for end user applications.  > It needs to cover fetching the settings from the pkgconfig files and using > waf, old Makefile infrastructure, et

Re: CMake support

2020-12-09 Thread Joel Sherrill
On Wed, Dec 9, 2020 at 8:06 AM Robin Müller wrote: > Thank you Sebastian. I'm looking at building the example erc32 application > and the blinky executable right now. There is the issue > that determining the BSP path,tool binary determination, all the checking > etc.. bleeds into the application

Re: CMake support

2020-12-09 Thread Robin Müller
Thank you Sebastian. I'm looking at building the example erc32 application and the blinky executable right now. There is the issue that determining the BSP path,tool binary determination, all the checking etc.. bleeds into the application CMakeLists.txt but there is probably a good way to extract t

Re: CMake support

2020-12-09 Thread Sebastian Huber
Hello Robin, you can use whatever build system you want to build your applications. You can use pkgconfig to get the necessary flags for a particular BSP installation. On 09/12/2020 13:50, Robin Müller wrote: I also had another question about a specific flag used when linking RTEMS executabl