rm -rf mv /etc/yum.repos.d/*
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/CentOS-Base.repo
yum makecache 
yum install epel-release -y
yum -y update

yum install bash-completion bzip2 gcc gcc-c++ git \
make ncurses-devel patch perl-Data-Dumper perl-Thread-Queue python2 \
python3 rsync tar unzip wget perl-base perl-File-Compare \
perl-File-Copy perl-FindBin diffutils which -y

yum install subversion binutils bzip2 gcc gcc-c++ gawk gettext flex \
ncurses-devel zlib-devel make patch unzip perl-ExtUtils-MakeMaker glibc \
glibc-devel glibc-static quilt ncurses-lib sed sdcc intltool \
sharutils bison wget git-core openssl-devel xz -y

wget https://downloads.openwrt.org/releases/19.07.7/targets/x86/64/openwrt-sdk-19.07.7-x86-64_gcc-7.5.0_musl.Linux-x86_64.tar.xz
tar Jxf openwrt-sdk-19.07.7-x86-64_gcc-7.5.0_musl.Linux-x86_64.tar.xz
cd openwrt-sdk-19.07.7-x86-64_gcc-7.5.0_musl.Linux-x86_64/package/

https://openwrt.org/docs/guide-developer/build-system/use-buildsystem


scripts/feeds update -a
scripts/feeds install -a
make menuconfig

make -j $(nproc)
make package/包/compile  -j $(nproc) V=99
最后修改:2021 年 08 月 22 日
如果觉得我的文章对你有用,请随意赞赏