Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please elaborate the usage #4

Open
jganser opened this issue Aug 7, 2024 · 3 comments
Open

Please elaborate the usage #4

jganser opened this issue Aug 7, 2024 · 3 comments

Comments

@jganser
Copy link

jganser commented Aug 7, 2024

Hi,
I am new to Zephyr and would like to build the libcsp test from this repository.

I tried using the Getting Started approach by creating a zephyrproject workspace. And then using west init and west update.
With this I am able to build samples like blinky just fine.
So next I started with this:

cd <path/to/zephyrproject>
git clone git@github.com:libcsp/libcsp-zephyr.git
west build -p always -b qemu_cortex_m3 libcsp-zephyr

But as result I get:

/home/johannes/zarm/zephyrproject/libcsp-zephyr/prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol LIBCSP
Parsing /home/johannes/zarm/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/johannes/zarm/zephyrproject/zephyr/boards/qemu/cortex_m3/qemu_cortex_m3_defconfig'
Merged configuration '/home/johannes/zarm/zephyrproject/libcsp-zephyr/prj.conf'

error: Aborting due to Kconfig warnings

CMake Error at /home/johannes/zarm/zephyrproject/zephyr/cmake/modules/kconfig.cmake:389 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/johannes/zarm/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  /home/johannes/zarm/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/johannes/zarm/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)
...

So my guess is that I don't understand the module usage correctly yet. Sadly the official Zephyr documentation was more confusing than helpful, at the current moment.

Therefore, I would like to ask for some direct insides from you :)

Sincerely,
jganser

@jganser
Copy link
Author

jganser commented Aug 7, 2024

Okay, I found out that I can build the project by using a separate workspace that gets generated in the parent directory of the libcsp-zephyr repository, by using west init -l.
Though I am happy that I was able to build it, it still recloned zephyrproject-rtos...
Is there another way to get it to include the libcsp module other than creating a separate workspace?

@yashi
Copy link
Member

yashi commented Aug 7, 2024

Just added build instruction to README. Hope it helps.

@yashi
Copy link
Member

yashi commented Aug 7, 2024

BTW, the following repos are mirrors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants