06
2022
12

openwrt 编译ostar

https://shimo.im/docs/gYjt9QVr8T9Vhv9X/read

make dirclean


https://www.right.com.cn/forum/thread-344825-1-1.html

插件说明


https://www.jianshu.com/p/0400008c3c76

编译流程


https://www.youtube.com/watch?v=yQoKpL4p06E

视频参考



https://github.com/lazywalker/ostar/tree/openwrt-22.03

https://github.com/lazywalker/mmdvm-openwrt



https://p3terx.com/archives/openwrt-compilation-steps-and-commands.html


一、环境安装

FQ

sudo apt-get update

sudo apt-get install -y gcc, binutils, bzip2, flex, python, perl, make, find, grep, diff,
unzip, gawk, getopt, subversion, libz-dev and libc headers

sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

二、下载源码

git clone https://github.com/lazywalker/ostar.git

不要使用sudo 或者root帐号


三、安装包

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


四、下载dl库(国内请尽量全局科学上网)

make -j8 download V=s


五、编译

make -j1 V=s

首次使用 -j1  我机器可以 -j24


六、重新编译

  • 文件清理

    • 清除旧的编译产物(可选)

      make clean
  • 在源码有大规模更新或者内核更新后执行,以保证编译质量。此操作会删除/bin/build_dir目录中的文件。
  • 清除旧的编译产物、交叉编译工具及工具链等目录(可选)

    make dirclean
  • 更换架构编译前必须执行。此操作会删除/bin/build_dir目录的中的文件(make clean)以及/staging_dir/toolchain/tmp/logs中的文件。
  • 清除 Open­Wrt 源码以外的文件(可选)

    make distclean
  • 除非是做开发,并打算 push 到 GitHub 这样的远程仓库,否则几乎用不到。此操作相当于make dirclean外加删除/dl/feeds目录和.config文件。
  • 还原 Open­Wrt 源码到初始状态(可选)

    git clean -xdf
  • 如果把源码改坏了,或者长时间没有进行编译时使用。
  • 清除临时文件

    rm -rf tmp
  • 删除执行make menuconfig后产生的一些临时文件,包括一些软件包的检索信息,删除后会重新加载package目录下的软件包。若不删除会导致一些新加入的软件包不显示。
  • 删除编译配置文件

    rm -f .config
  • 在不删除的情况下如果取消选择某些组件它的依赖组件不会自动取消,所以对于需要调整组件的情况下建议删除。



https://github.com/vernesong/OpenClash


https://lhy.life/20200531-openwrt+openclash/


https://www.nixonli.com/23414.html

passwal ssr-plus

https://blog.csdn.net/weixin_42376462/article/details/127177139


https://www.sstkayr.com/2019/10/20/OpenWrt-%E7%BC%96%E8%AF%91%E6%95%99%E7%A8%8B/

模块参考



https://github.com/immortalwrt/immortalwrt


https://blog.topstalk.com/%E9%9B%B6%E5%9F%BA%E7%A1%80%E7%BC%96%E8%AF%91openwrt%E7%9C%8B%E8%BF%99%E4%B8%80%E7%AF%87%E5%B0%B1%E5%A4%9F%E4%BA%86/

« 上一篇 下一篇 »