<>mipsel-openwrt-linux-gcc Compilation tool chain
Compress the package toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
Decompress to /opt/ Under the document
$ cd /opt/ $ sudo tar xvf
toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
After decompression , Enter into the decompression path /bin Under the directory , implement
$ ./mipsel-openwrt-linux-gcc [...]
The following warnings appear
mipsel-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not
defined
At this point, you can temporarily configure environment variables on the command line , The environment variable is invalid after the system is restarted , as :
$ export STAGING_DIR=
/opt/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin:$STAGING_DIR
Finally, repeat the compile instruction .
notes : If the cross compiler tool chain is often used , It is recommended to configure the above instructions to the following files in the environment :
$ sudo vim /etc/profile $ sudo sourcce /etc/profile $ sudo vim /root/.bashrc
Development diary mips Cross compiler tool chain 190327
Technology