Error: environment variable 'STAGING_DIR' not defined

Im following this guide to compile bootloader but Im geting an error

mips-linux-xgcc: fatal error: environment variable 'STAGING_DIR' not defined

Even I defined it like so

STAGING_DIR=/home/slobodan/Desktop/NETIS/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/

What Im doung wrong

You need to export the variable to make it visible to subprocesses of the same shell process:

export STAGING_DIR=...

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.