Topics

Setting correct ZEPHYR_GCC_VARIANT


Eric Zaluzec <Eric.Zaluzec@...>
 

I apologize if this forum is the wrong place to post this question, I was not sure where else to post.
I am attempting to build the zephyr nanokernel with the Galileo board. I am following the steps here:
https://www.zephyrproject.org/doc/board/galileo.html

I am preparing the boot device, and under the zephyr/samples/hello_world/nanokernel directory, I am running 'make BOARD=galileo', but I get back an error saying ZEPHYR_GCC_VARIANT is not set. I am looking for any help or sources with documentation, which address how to correctly set up a GCC VARIANT for the zephyr kernel.

I am very familiar and actively use the Yocto project for many different build environments. The Linux Foundation class (LFD405) was excellent. I tried to create a package recipe for Yocto to build, but the grub source files had too many variables set to the build's host machine.

Are there any Yocto builds yet that support building the zephyr kernel?

Any input or good sources to read how to set the correct GCC VARIANT for zephyr would greatly be appreciated. I could not find any useful information on the Galileo Gen1/Gen2 page on the zephyrproject.org. https://www.zephyrproject.org/doc/board/galileo.html

Cheers.


Vlad Dogaru <vlad.dogaru@...>
 

Hi Eric,

Assuming you've installed the SDK, you need to set ZEPHYR_GCC_VARIANT.
You can do this in ~/.zephyrrc, which is sourced by zephyr-env.sh:

$ cat .zephyrrc
export ZEPHYR_GCC_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk

Hope this helps,
Vlad

On Tue, Apr 19, 2016 at 03:46:10PM +0000, Eric Zaluzec wrote:
I apologize if this forum is the wrong place to post this question, I was not sure where else to post.
I am attempting to build the zephyr nanokernel with the Galileo board. I am following the steps here:
https://www.zephyrproject.org/doc/board/galileo.html

I am preparing the boot device, and under the zephyr/samples/hello_world/nanokernel directory, I am running 'make BOARD=galileo', but I get back an error saying ZEPHYR_GCC_VARIANT is not set. I am looking for any help or sources with documentation, which address how to correctly set up a GCC VARIANT for the zephyr kernel.

I am very familiar and actively use the Yocto project for many different build environments. The Linux Foundation class (LFD405) was excellent. I tried to create a package recipe for Yocto to build, but the grub source files had too many variables set to the build's host machine.

Are there any Yocto builds yet that support building the zephyr kernel?

Any input or good sources to read how to set the correct GCC VARIANT for zephyr would greatly be appreciated. I could not find any useful information on the Galileo Gen1/Gen2 page on the zephyrproject.org. https://www.zephyrproject.org/doc/board/galileo.html

Cheers.


Nashif, Anas
 

On 19/04/2016, 11:46, "Eric Zaluzec" <Eric.Zaluzec(a)gmail.com> wrote:

I apologize if this forum is the wrong place to post this question, I was not sure where else to post.
I am attempting to build the zephyr nanokernel with the Galileo board. I am following the steps here:
https://www.zephyrproject.org/doc/board/galileo.html

I am preparing the boot device, and under the zephyr/samples/hello_world/nanokernel directory, I am running 'make BOARD=galileo', but I get back an error saying ZEPHYR_GCC_VARIANT is not set. I am looking for any help or sources with documentation, which address how to correctly set up a GCC VARIANT for the zephyr kernel.

I am very familiar and actively use the Yocto project for many different build environments. The Linux Foundation class (LFD405) was excellent. I tried to create a package recipe for Yocto to build, but the grub source files had too many variables set to the build's host machine.

Are there any Yocto builds yet that support building the zephyr kernel?
No, bot sure why you want to use Yocto to build zephyr. What is the use case here?


Any input or good sources to read how to set the correct GCC VARIANT for zephyr would greatly be appreciated. I could not find any useful information on the Galileo Gen1/Gen2 page on the zephyrproject.org. https://www.zephyrproject.org/doc/board/galileo.html

see https://www.zephyrproject.org/doc/dev/getting_started/installation_linux.html


Anas



Cheers.


Eric Zaluzec <Eric.Zaluzec@...>
 

Thank you. This resolved my problem. I was using a zephyr source github repository without the SDK. Documentation here https://www.zephyrproject.org/doc/dev/getting_started/installation_linux.html was the missing piece.


Eric Zaluzec <Eric.Zaluzec@...>
 

Thanks Anas. This documentation was what I was missing.

As regards to building with Yocto, it was not necessary use case. The use case was just a quick way to build & rebuild the zephyr kernel with multiple machine types. This is not required.