higarfield / lede-17.01.4-mod Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
This is the buildsystem for the LEDE Linux distribution. Please use "make menuconfig" to choose your preferred configuration for the toolchain and firmware. You need to have installed gcc, binutils, bzip2, gettext, flex, python2, perl, make, find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers. Run "./scripts/feeds update -i" to recreate the index for all packages defined in feeds.conf / feeds.conf.default respectively and "./scripts/feeds install -a" to install symlinks of all of them into package/feeds/. * Do not run "./scripts/feeds update -a", since it will overwrite the modified package definitions. Use "make menuconfig" to configure your image. Simply running "make" will build your firmware. It will download all sources, build the cross-compile toolchain, the kernel and all choosen applications. To build your own firmware you need to have access to a Linux, BSD or MacOSX system (case-sensitive filesystem required). Cygwin will not be supported because of the lack of case sensitiveness in the file system. Sunshine! Your LEDE Community http://www.lede-project.org
Hi HiGarfield, please add support for Xiaomi R3 with breed.bin (install firmware from pbboot as X-wrt)
Thank you!
thanks
环境:
vlsb_release -ra
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20210110 (Debian 10.2.1-6)
具体错误如下:
Building backport-include/backport/autoconf.h ... done.
CC [M] /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/net/mac80211/rx.o
In file included from /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/backport-include/linux/bug.h:3:0,
from /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/backport-include/linux/kernel.h:4,
from include/asm-generic/bug.h:13,
from /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/backport-include/asm-generic/bug.h:3,
from ./arch/arm/include/asm/bug.h:62,
from ./arch/arm/include/asm/div64.h:63,
from include/linux/math64.h:5,
from /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/backport-include/linux/math64.h:3,
from include/linux/jiffies.h:5,
from /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/backport-include/linux/jiffies.h:3,
from /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/net/mac80211/rx.c:15:
include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list will not be visible outside of this definition or declaration
static inline int is_warning_bug(const struct bug_entry *bug)
^~~~~~~~~
include/linux/bug.h: In function 'is_warning_bug':
include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type 'const struct bug_entry'
return bug->flags & BUGFLAG_WARNING;
^~
make[9]: *** [scripts/Makefile.build:278: /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/net/mac80211/rx.o] Error 1
make[8]: *** [scripts/Makefile.build:484: /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/net/mac80211] Error 2
make[7]: *** [Makefile:1436: module/openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1] Error 2
make[6]: *** [Makefile.build:6: modules] Error 2
make[5]: *** [Makefile.real:93: modules] Error 2
make[4]: *** [Makefile:121: modules] Error 2
make[4]: Leaving directory '/openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1'
make[3]: *** [Makefile:572: /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/linux-ipq806x/backports-4.19.237-1/.built] Error 2
make[3]: Leaving directory '/openwrt/lede-17.01.4-Mod-202305220400-ipq806x/package/kernel/mac80211'
make[2]: *** [package/Makefile:109: package/kernel/mac80211/compile] Error 2
make[2]: Leaving directory '/openwrt/lede-17.01.4-Mod-202305220400-ipq806x'
make[1]: *** [package/Makefile:104: /openwrt/lede-17.01.4-Mod-202305220400-ipq806x/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.24_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/openwrt/lede-17.01.4-Mod-202305220400-ipq806x'
make: *** [/openwrt/lede-17.01.4-Mod-202305220400-ipq806x/include/toplevel.mk:200: world] Error 2
请教是否增加对应补丁
Hi HiGarfield, please add support for Xiaomi R3G, ZTE 8820s and ZTE 8820v2
Thank you!
env:
os
lsb_release -ra
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
log:
checking for arm-openwrt-linux-muslgnueabi-ar... /openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/bin/ar
checking for arm-openwrt-linux-muslgnueabi-lipo... arm-openwrt-linux-muslgnueabi-lipo
checking for arm-openwrt-linux-muslgnueabi-nm... /openwrt/lede-17.01.4-Mod-202306041824/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial/./gcc/nm
checking for arm-openwrt-linux-muslgnueabi-ranlib... /openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/bin/ranlib
checking for arm-openwrt-linux-muslgnueabi-strip... /openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/bin/strip
checking whether ln -s works... yes
checking for arm-openwrt-linux-muslgnueabi-gcc... /openwrt/lede-17.01.4-Mod-202306041824/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial/./gcc/xgcc -B/openwrt/lede-17.01.4-Mod-202306041824/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial/./gcc/ -B/openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/bin/ -B/openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/lib/ -isystem /openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/include -isystem /openwrt/lede-17.01.4-Mod-202306041824/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/arm-openwrt-linux-muslgnueabi/sys-include
checking for suffix of object files... configure: error: in /openwrt/lede-17.01.4-Mod-202306041824/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial/arm-openwrt-linux-muslgnueabi/libgcc': configure: error: cannot compute suffix of object files: cannot compile See
config.log' for more details.
make[3]: *** [Makefile:11444: configure-target-libgcc] Error 1
make[3]: Leaving directory '/openwrt/lede-17.01.4-Mod-202306041824/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial'
make[2]: *** [Makefile:37: /openwrt/lede-17.01.4-Mod-202306041824/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial/.built] Error 2
make[2]: Leaving directory '/openwrt/lede-17.01.4-Mod-202306041824/toolchain/gcc/initial'
make[1]: *** [toolchain/Makefile:92: toolchain/gcc/initial/compile] Error 2
build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi/gcc-7.5.0-initial/arm-openwrt-linux-muslgnueabi/libgcc$ cat config.log
pdfdir='${docdir}'
prefix='/openwrt/lede-17.01.4-Mod-202306062345/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl-1.1.24_eabi'
program_transform_name='s&^&arm-openwrt-linux-muslgnueabi-&'
psdir='${docdir}'
real_host_noncanonical=''
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='arm-openwrt-linux-muslgnueabi'
target_noncanonical='arm-openwrt-linux-muslgnueabi'
target_subdir='arm-openwrt-linux-muslgnueabi'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
unwind_header=''
vis_hide=''
with_aix_soname='aix'
/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
configure: exit 1
大佬能添加rockchip下的r1-plus-lts吗?谢谢!
PKG_NAME:=smartdns
PKG_VERSION:=1.2024.10
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://www.github.com/pymumu/smartdns.git
PKG_SOURCE_VERSION:=40dc9eceb78ac558b235a128241b1a4d2819f15f
PKG_MIRROR_HASH:=5b80c76c55f0d77106faff04056c1568b074491197818375c01a211847296b49
这里的PKG_MIRROR_HASH,我看文档是从 https://www.github.com/pymumu/smartdns.git 打包一个tar.xz后计算sha256,但是这个tar.xz请问下是如何打包的,我试了很久,最终的hash都对不上
或者说这个PKG_MIRROR_HASH是依靠什么脚本或者其它工具生成的?我想学习下这个值的生成过程
不要skip,要这个值的生成过程
尝试过很多方法,例如下面的
$SHA_smartdns已经获取后,相关流程如下,哪里不对…或者说正确方法是啥
git clone https://www.github.com/pymumu/smartdns.git smartdns-$(date +1.%Y.%m.%d-%H)
cd smartdns-$(date +1.%Y.%m.%d-%H)
git checkout $SHA_smartdns
git submodule update --init --recursive
echo "TAR_TIMESTAMP=$(git log -1 --format='@%ct')" >> $GITHUB_ENV
rm -rf .git
然后
tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c smartdns-$(date +1.%Y.%m.%d-%H) | xz -zc -7e > ../smartdns-$(date +1.%Y.%m.%d-%H).tar.xz
echo "PKG_MIRROR_HASH=$(sha256sum ../smartdns-$(date +1.%Y.%m.%d-%H).tar.xz | cut -d ' ' -f1)" >> $GITHUB_ENV
之后改Makefile准备去openwrt/gh-action-sdk@main运行
sed -i "s/PKG_VERSION:=.*/PKG_VERSION:=$(date +1.%Y.%m.%d-%H)/" Makefile
sed -i "s/PKG_SOURCE_VERSION:=.*/PKG_SOURCE_VERSION:=$SHA_smartdns/" Makefile
sed -i "s/PKG_MIRROR_HASH:=.*/PKG_MIRROR_HASH:=$PKG_MIRROR_HASH/" Makefile
或者其中
tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c smartdns-$(date +1.%Y.%m.%d-%H) | xz -zc -7e > ../smartdns-$(date +1.%Y.%m.%d-%H).tar.xz
都不对
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.