eATM

openwrt编译单个包

op添加打印机

https://blog.nannan.cool/archives/383/

下载配置交叉编译链工具

下载对应版本与平台的toolchain:
https://mirror-03.infra.openwrt.org/releases/23.05.3/targets/x86/64/

配置环境变量~/.bashrc

				
					#在.bashrc中找个合适的位置添加代码

toolchain_dir=/mnt/e/OpenLib/openwrt/23.05.3-musl.Linux-x86_64/toolchain/toolchain-x86_64_gcc-12.3.0_musl
PATH=$toolchain_dir/bin:$PATH
export STAGING_DIR=$toolchain_dir

#代替用op_config命令代替 ./configure 来生成make配置文件
function op_config()
{
    ./configure --host=x86_64-openwrt-linux-musl
    
    #./configure --build=x86_64-openwrt-linux -host=x86_64-openwrt-linux-musl
}
export -f op_config


#让配置即时生效命令
#source ~/.bashrc
				
			

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注