在编译OpenWrt时,如果遇到arm-openwrt-linux-gcc: warning: environment variable 'staging_dir' not defined的警告,通常是因为环境变量staging_dir没有被正确设置。 staging_dir是OpenWrt编译过程中用于存放交叉编译工具链和其他临时文件的目录。这个环境变量需要在编译之前被正确设置,否则编译器可能无法找到必要的工具和...
openWRT Ubuntu环境搭建及交叉编译工具制作与使用 如下图所示: 1.3.3 安装 Toolchain openWRT的交叉编译工具链需要安装到当前系统中,我使用的是Ubuntu 64,然后配置环境变量,才能使用。步骤如下: 1、解压toolchain.../OpenWrt-Toolchain-ramips-mt7620_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2 -C ...
compiler: aarch64-openwrt-linux-musl-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -Wformat -Werror=format-security -fstack-protector ...