cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
floriane1
Observer
Observer
211 Views
Registered: ‎05-15-2017

Environment variable Makefile petalinux

Hi, 

I am using Petalinux 2028.3 and I try to customize a Makefile for a petalinux application. For that I have added in the Makefile, a variable:

INCLUDE:= -I/$(ENV_VAR)/path/to/headers

In my shell, I exported ENV_VAR and when I execute my Makefile from a make command in the shell, I can see that ENV_VAR is correctly set.

The problem is when I use the petalinux-build command (from the same shell) that somehow executes my Makefile, the log shows that ENV_VAR is empty.

Does anyone has an idea?

 

Thanks, 

Floriane

 

0 Kudos
0 Replies