Giter Site home page Giter Site logo

higarfield / lede-17.01.4-mod Goto Github PK

View Code? Open in Web Editor NEW
38.0 4.0 34.0 32.66 MB

License: GNU General Public License v2.0

Perl 1.51% Makefile 20.94% Shell 9.65% Lua 9.92% HTML 3.99% JavaScript 0.45% CSS 0.93% C 50.28% Awk 0.05% C# 0.20% Java 0.23% Visual Basic .NET 0.16% Lex 0.07% Yacc 0.15% Ruby 0.04% Vala 0.24% CMake 0.01% PHP 0.23% Assembly 0.22% M4 0.71%

lede-17.01.4-mod's Introduction

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


lede-17.01.4-mod's People

Contributors

981213 avatar ansuel avatar blocktrron avatar coolsnowwolf avatar dangowrt avatar dedeckeh avatar dengqf6 avatar dragonbluep avatar f00b4r0 avatar hauke avatar higarfield avatar hnyman avatar httpstorm avatar j-d-r avatar jow- avatar ldir-edb0 avatar lynxis avatar mkrle avatar msvamp avatar nbd168 avatar neheb avatar neocturne avatar polynomialdivision avatar pprindeville avatar pymumu avatar silentcreek avatar stangri avatar syb999 avatar tmn505 avatar ynezz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lede-17.01.4-mod's Issues

ipq806x 编译错误

环境:
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

请教是否增加对应补丁

202306062345 building ipq806x error

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.

-----------

/* 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

请教一下Makefile中PKG_MIRROR_HASH具体是如何计算出来的

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

都不对

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.