Skip to content

Make build process compatible with yocto - #42

Closed
yseraf wants to merge 2 commits into
lorabasics:masterfrom
Wifx:master
Closed

yseraf wants to merge 2 commits into
lorabasics:masterfrom
Wifx:master

Conversation

@yseraf

@yseraf yseraf commented Jul 30, 2019

Copy link
Copy Markdown

It's currently not possible to manipulate easily internal Makefile variables like TOOLCHAIN, CC, AR, etc.

By adding simple modifications, it becomes possible to more easily integrate the project into build tool systems like Yocto.

The "" around ${CC}, ${AR} and ${LD} are needed in case of the CC passed to makefile is composed of multiple arguments. For example, in Yocto the value of CC is something like:
arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a5 --sysroot=/opt/poky/2.5.2/sysroots/cortexa5hf-neon-loros-linux-gnueabi

It doesn't modify the default behavior but allows a lot more flexibility.

@RadW2020

RadW2020 commented Apr 11, 2020 •

Copy link
Copy Markdown

Tested and works.
Thanks!

@mullerch

mullerch commented Jun 8, 2020

Copy link
Copy Markdown

Is there any reason for this not to be merged ?

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

Successfully merging this pull request may close these issues.

3 participants