added orangepi_zero_2w
This commit is contained in:
1 parent
63a7acdfd5
commit
bd8616e78c
15 files changed
+16714
-92
No files matched your search
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
out
|
out
|
||||||
build
|
build
|
||||||
downloads
|
downloads
|
||||||
.log
|
.log
|
||||||
|
**config.sh
|
||||||
@@ -41,3 +41,9 @@ ko8821au:
|
|||||||
|
|
||||||
sdroot_usable:
|
sdroot_usable:
|
||||||
./scripts/build_image.sh sdroot_usable
|
./scripts/build_image.sh sdroot_usable
|
||||||
|
|
||||||
|
orangepi_pc_defconfig:
|
||||||
|
cp -v configs/orangepi_pc_defconfig scripts/config.sh
|
||||||
|
|
||||||
|
orangepi_zero_2w_defconfig:
|
||||||
|
cp -v configs/orangepi_zero_2w_defconfig scripts/config.sh
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Executable
+263
@@ -0,0 +1,263 @@
|
|||||||
|
#
|
||||||
|
# Automatically generated file; DO NOT EDIT.
|
||||||
|
# uClibc-ng 1.0.50 C Library Configuration
|
||||||
|
#
|
||||||
|
# TARGET_aarch64 is not set
|
||||||
|
# TARGET_alpha is not set
|
||||||
|
# TARGET_arc is not set
|
||||||
|
TARGET_arm=y
|
||||||
|
# TARGET_avr32 is not set
|
||||||
|
# TARGET_bfin is not set
|
||||||
|
# TARGET_c6x is not set
|
||||||
|
# TARGET_cris is not set
|
||||||
|
# TARGET_csky is not set
|
||||||
|
# TARGET_frv is not set
|
||||||
|
# TARGET_h8300 is not set
|
||||||
|
# TARGET_hppa is not set
|
||||||
|
# TARGET_i386 is not set
|
||||||
|
# TARGET_ia64 is not set
|
||||||
|
# TARGET_kvx is not set
|
||||||
|
# TARGET_lm32 is not set
|
||||||
|
# TARGET_m68k is not set
|
||||||
|
# TARGET_metag is not set
|
||||||
|
# TARGET_microblaze is not set
|
||||||
|
# TARGET_mips is not set
|
||||||
|
# TARGET_nds32 is not set
|
||||||
|
# TARGET_nios2 is not set
|
||||||
|
# TARGET_or1k is not set
|
||||||
|
# TARGET_powerpc is not set
|
||||||
|
# TARGET_riscv64 is not set
|
||||||
|
# TARGET_riscv32 is not set
|
||||||
|
# TARGET_sh is not set
|
||||||
|
# TARGET_sparc is not set
|
||||||
|
# TARGET_sparc64 is not set
|
||||||
|
# TARGET_tile is not set
|
||||||
|
# TARGET_x86_64 is not set
|
||||||
|
# TARGET_xtensa is not set
|
||||||
|
TARGET_LDSO_NAME="ld-uClibc"
|
||||||
|
TARGET_ARCH_BITS=32
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target Architecture Features and Options
|
||||||
|
#
|
||||||
|
TARGET_ARCH="arm"
|
||||||
|
FORCE_OPTIONS_FOR_ARCH=y
|
||||||
|
CONFIG_ARM_EABI=y
|
||||||
|
TARGET_SUBARCH=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Using ELF file format
|
||||||
|
#
|
||||||
|
ARCH_HAS_DEPRECATED_SYSCALLS=y
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_LITTLE_ENDIAN=y
|
||||||
|
# ARCH_WANTS_BIG_ENDIAN is not set
|
||||||
|
ARCH_WANTS_LITTLE_ENDIAN=y
|
||||||
|
ARCH_HAS_MMU=y
|
||||||
|
ARCH_USE_MMU=y
|
||||||
|
UCLIBC_HAS_FLOATS=y
|
||||||
|
UCLIBC_HAS_FPU=y
|
||||||
|
DO_C99_MATH=y
|
||||||
|
DO_XSI_MATH=y
|
||||||
|
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||||
|
KERNEL_HEADERS=
|
||||||
|
HAVE_DOT_CONFIG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# General Library Settings
|
||||||
|
#
|
||||||
|
DOPIC=y
|
||||||
|
# STATIC_PIE is not set
|
||||||
|
ARCH_HAS_UCONTEXT=y
|
||||||
|
HAVE_LDSO=y
|
||||||
|
HAVE_SHARED=y
|
||||||
|
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
|
||||||
|
LDSO_LDD_SUPPORT=y
|
||||||
|
# LDSO_CACHE_SUPPORT is not set
|
||||||
|
LDSO_PRELOAD_ENV_SUPPORT=y
|
||||||
|
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||||
|
# LDSO_STANDALONE_SUPPORT is not set
|
||||||
|
# LDSO_PRELINK_SUPPORT is not set
|
||||||
|
ARCH_VDSO_SUPPORT=y
|
||||||
|
# VDSO_SUPPORT is not set
|
||||||
|
# UCLIBC_STATIC_LDCONFIG is not set
|
||||||
|
LDSO_RUNPATH=y
|
||||||
|
LDSO_RUNPATH_OF_EXECUTABLE=y
|
||||||
|
LDSO_SAFE_RUNPATH=y
|
||||||
|
LDSO_SEARCH_INTERP_PATH=y
|
||||||
|
LDSO_LD_LIBRARY_PATH=y
|
||||||
|
UCLIBC_CTOR_DTOR=y
|
||||||
|
# LDSO_GNU_HASH_SUPPORT is not set
|
||||||
|
# HAS_NO_THREADS is not set
|
||||||
|
# UCLIBC_HAS_LINUXTHREADS is not set
|
||||||
|
UCLIBC_HAS_THREADS_NATIVE=y
|
||||||
|
UCLIBC_HAS_THREADS=y
|
||||||
|
UCLIBC_HAS_TLS=y
|
||||||
|
# PTHREADS_DEBUG_SUPPORT is not set
|
||||||
|
PTHREADS_STACK_DEFAULT_SIZE=2097152
|
||||||
|
UCLIBC_HAS_SYSLOG=y
|
||||||
|
UCLIBC_HAS_LFS=y
|
||||||
|
# MALLOC is not set
|
||||||
|
# MALLOC_SIMPLE is not set
|
||||||
|
MALLOC_STANDARD=y
|
||||||
|
UCLIBC_DYNAMIC_ATEXIT=y
|
||||||
|
UCLIBC_HAS_UTMPX=y
|
||||||
|
UCLIBC_HAS_UTMP=y
|
||||||
|
UCLIBC_SUSV2_LEGACY=y
|
||||||
|
UCLIBC_SUSV3_LEGACY=y
|
||||||
|
UCLIBC_HAS_CONTEXT_FUNCS=y
|
||||||
|
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||||
|
UCLIBC_SUSV4_LEGACY=y
|
||||||
|
# UCLIBC_STRICT_HEADERS is not set
|
||||||
|
# UCLIBC_HAS_STUBS is not set
|
||||||
|
UCLIBC_HAS_SHADOW=y
|
||||||
|
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
|
||||||
|
UCLIBC_HAS___PROGNAME=y
|
||||||
|
UCLIBC_HAS_PTY=y
|
||||||
|
ASSUME_DEVPTS=y
|
||||||
|
UNIX98PTY_ONLY=y
|
||||||
|
UCLIBC_HAS_GETPT=y
|
||||||
|
UCLIBC_HAS_LIBUTIL=y
|
||||||
|
UCLIBC_HAS_TM_EXTENSIONS=y
|
||||||
|
UCLIBC_HAS_TZ_CACHING=y
|
||||||
|
UCLIBC_HAS_TZ_FILE=y
|
||||||
|
UCLIBC_HAS_TZ_FILE_READ_MANY=y
|
||||||
|
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||||
|
UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
|
||||||
|
UCLIBC_USE_TIME64=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Advanced Library Settings
|
||||||
|
#
|
||||||
|
UCLIBC_PWD_BUFFER_SIZE=256
|
||||||
|
UCLIBC_GRP_BUFFER_SIZE=256
|
||||||
|
|
||||||
|
#
|
||||||
|
# Support various families of functions
|
||||||
|
#
|
||||||
|
UCLIBC_LINUX_SPECIFIC=y
|
||||||
|
UCLIBC_HAS_GNU_ERROR=y
|
||||||
|
UCLIBC_BSD_SPECIFIC=y
|
||||||
|
UCLIBC_HAS_BSD_ERR=y
|
||||||
|
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
|
||||||
|
# UCLIBC_HAS_BSD_B64_NTOP_B64_PTON is not set
|
||||||
|
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||||
|
# UCLIBC_NTP_LEGACY is not set
|
||||||
|
# UCLIBC_SV4_DEPRECATED is not set
|
||||||
|
UCLIBC_HAS_REALTIME=y
|
||||||
|
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||||
|
UCLIBC_HAS_EPOLL=y
|
||||||
|
UCLIBC_HAS_XATTR=y
|
||||||
|
UCLIBC_HAS_PROFILING=y
|
||||||
|
UCLIBC_HAS_CRYPT_IMPL=y
|
||||||
|
UCLIBC_HAS_SHA256_CRYPT_IMPL=y
|
||||||
|
UCLIBC_HAS_SHA512_CRYPT_IMPL=y
|
||||||
|
UCLIBC_HAS_CRYPT=y
|
||||||
|
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||||
|
UCLIBC_HAS_SOCKET=y
|
||||||
|
UCLIBC_HAS_IPV4=y
|
||||||
|
UCLIBC_HAS_IPV6=y
|
||||||
|
UCLIBC_USE_NETLINK=y
|
||||||
|
UCLIBC_SUPPORT_AI_ADDRCONFIG=y
|
||||||
|
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||||
|
UCLIBC_HAS_COMPAT_RES_STATE=y
|
||||||
|
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
|
||||||
|
UCLIBC_HAS_RESOLVER_SUPPORT=y
|
||||||
|
# UCLIBC_DNSRAND_MODE_URANDOM is not set
|
||||||
|
# UCLIBC_DNSRAND_MODE_CLOCK is not set
|
||||||
|
UCLIBC_DNSRAND_MODE_PRNGPLUS=y
|
||||||
|
# UCLIBC_DNSRAND_MODE_SIMPLECOUNTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# String and Stdio Support
|
||||||
|
#
|
||||||
|
UCLIBC_HAS_STRING_GENERIC_OPT=y
|
||||||
|
UCLIBC_HAS_STRING_ARCH_OPT=y
|
||||||
|
UCLIBC_HAS_STDIO_FUTEXES=y
|
||||||
|
UCLIBC_HAS_CTYPE_TABLES=y
|
||||||
|
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||||
|
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||||
|
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||||
|
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||||
|
UCLIBC_HAS_WCHAR=y
|
||||||
|
UCLIBC_HAS_LIBICONV=y
|
||||||
|
UCLIBC_HAS_LIBINTL=y
|
||||||
|
UCLIBC_HAS_LOCALE=y
|
||||||
|
UCLIBC_BUILD_MINIMAL_LOCALE=y
|
||||||
|
# UCLIBC_BUILD_ALL_LOCALE is not set
|
||||||
|
UCLIBC_BUILD_MINIMAL_LOCALES="en_US"
|
||||||
|
UCLIBC_HAS_XLOCALE=y
|
||||||
|
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
|
||||||
|
# UCLIBC_HAS_GLIBC_DIGIT_GROUPING is not set
|
||||||
|
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
|
||||||
|
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||||
|
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||||
|
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||||
|
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||||
|
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||||
|
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||||
|
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||||
|
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||||
|
UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
|
||||||
|
# UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE is not set
|
||||||
|
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||||
|
UCLIBC_HAS_PRINTF_M_SPEC=y
|
||||||
|
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||||
|
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||||
|
UCLIBC_HAS_SIGNUM_MESSAGES=y
|
||||||
|
# UCLIBC_HAS_SYS_SIGLIST is not set
|
||||||
|
UCLIBC_HAS_GNU_GETOPT=y
|
||||||
|
UCLIBC_HAS_GETOPT_LONG=y
|
||||||
|
UCLIBC_HAS_GNU_GETSUBOPT=y
|
||||||
|
# UCLIBC_HAS_ARGP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Big and Tall
|
||||||
|
#
|
||||||
|
UCLIBC_HAS_REGEX=y
|
||||||
|
UCLIBC_HAS_FNMATCH=y
|
||||||
|
UCLIBC_HAS_WORDEXP=y
|
||||||
|
UCLIBC_HAS_NFTW=y
|
||||||
|
UCLIBC_HAS_FTW=y
|
||||||
|
# UCLIBC_HAS_FTS is not set
|
||||||
|
UCLIBC_HAS_GLOB=y
|
||||||
|
UCLIBC_HAS_GNU_GLOB=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library Installation Options
|
||||||
|
#
|
||||||
|
RUNTIME_PREFIX="/"
|
||||||
|
DEVEL_PREFIX="/usr"
|
||||||
|
MULTILIB_DIR="lib"
|
||||||
|
HARDWIRED_ABSPATH=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Security options
|
||||||
|
#
|
||||||
|
# UCLIBC_BUILD_PIE is not set
|
||||||
|
# UCLIBC_HAS_SSP is not set
|
||||||
|
UCLIBC_BUILD_RELRO=y
|
||||||
|
UCLIBC_BUILD_NOW=y
|
||||||
|
UCLIBC_BUILD_NOEXECSTACK=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Development/debugging options
|
||||||
|
#
|
||||||
|
CROSS_COMPILER_PREFIX="/home/tola/Documents/linux/orangepipc/buildroot-2024.08.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-"
|
||||||
|
UCLIBC_EXTRA_CFLAGS=""
|
||||||
|
# DODEBUG is not set
|
||||||
|
# DOSTRIP is not set
|
||||||
|
# DOASSERTS is not set
|
||||||
|
# SUPPORT_LD_DEBUG is not set
|
||||||
|
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||||
|
# UCLIBC_MALLOC_DEBUGGING is not set
|
||||||
|
# UCLIBC_HAS_BACKTRACE is not set
|
||||||
|
WARNINGS="-Wall"
|
||||||
|
# EXTRA_WARNINGS is not set
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,261 @@
|
|||||||
|
#
|
||||||
|
# Automatically generated file; DO NOT EDIT.
|
||||||
|
# uClibc-ng 1.0.50 C Library Configuration
|
||||||
|
#
|
||||||
|
TARGET_aarch64=y
|
||||||
|
# TARGET_alpha is not set
|
||||||
|
# TARGET_arc is not set
|
||||||
|
# TARGET_arm is not set
|
||||||
|
# TARGET_avr32 is not set
|
||||||
|
# TARGET_bfin is not set
|
||||||
|
# TARGET_c6x is not set
|
||||||
|
# TARGET_cris is not set
|
||||||
|
# TARGET_csky is not set
|
||||||
|
# TARGET_frv is not set
|
||||||
|
# TARGET_h8300 is not set
|
||||||
|
# TARGET_hppa is not set
|
||||||
|
# TARGET_i386 is not set
|
||||||
|
# TARGET_ia64 is not set
|
||||||
|
# TARGET_kvx is not set
|
||||||
|
# TARGET_lm32 is not set
|
||||||
|
# TARGET_m68k is not set
|
||||||
|
# TARGET_metag is not set
|
||||||
|
# TARGET_microblaze is not set
|
||||||
|
# TARGET_mips is not set
|
||||||
|
# TARGET_nds32 is not set
|
||||||
|
# TARGET_nios2 is not set
|
||||||
|
# TARGET_or1k is not set
|
||||||
|
# TARGET_powerpc is not set
|
||||||
|
# TARGET_riscv64 is not set
|
||||||
|
# TARGET_riscv32 is not set
|
||||||
|
# TARGET_sh is not set
|
||||||
|
# TARGET_sparc is not set
|
||||||
|
# TARGET_sparc64 is not set
|
||||||
|
# TARGET_tile is not set
|
||||||
|
# TARGET_x86_64 is not set
|
||||||
|
# TARGET_xtensa is not set
|
||||||
|
TARGET_LDSO_NAME="ld-uClibc"
|
||||||
|
TARGET_ARCH_BITS=64
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target Architecture Features and Options
|
||||||
|
#
|
||||||
|
TARGET_ARCH="aarch64"
|
||||||
|
FORCE_OPTIONS_FOR_ARCH=y
|
||||||
|
CONFIG_AARCH64_PAGE_SIZE_4K=y
|
||||||
|
# CONFIG_AARCH64_PAGE_SIZE_16K is not set
|
||||||
|
# CONFIG_AARCH64_PAGE_SIZE_64K is not set
|
||||||
|
TARGET_SUBARCH=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Using ELF file format
|
||||||
|
#
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_LITTLE_ENDIAN=y
|
||||||
|
# ARCH_WANTS_BIG_ENDIAN is not set
|
||||||
|
ARCH_WANTS_LITTLE_ENDIAN=y
|
||||||
|
ARCH_HAS_MMU=y
|
||||||
|
ARCH_USE_MMU=y
|
||||||
|
UCLIBC_HAS_FLOATS=y
|
||||||
|
UCLIBC_HAS_FPU=y
|
||||||
|
DO_C99_MATH=y
|
||||||
|
DO_XSI_MATH=y
|
||||||
|
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||||
|
KERNEL_HEADERS=
|
||||||
|
HAVE_DOT_CONFIG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# General Library Settings
|
||||||
|
#
|
||||||
|
DOPIC=y
|
||||||
|
# STATIC_PIE is not set
|
||||||
|
HAVE_LDSO=y
|
||||||
|
HAVE_SHARED=y
|
||||||
|
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
|
||||||
|
LDSO_LDD_SUPPORT=y
|
||||||
|
# LDSO_CACHE_SUPPORT is not set
|
||||||
|
LDSO_PRELOAD_ENV_SUPPORT=y
|
||||||
|
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||||
|
# LDSO_STANDALONE_SUPPORT is not set
|
||||||
|
# LDSO_PRELINK_SUPPORT is not set
|
||||||
|
ARCH_VDSO_SUPPORT=y
|
||||||
|
# VDSO_SUPPORT is not set
|
||||||
|
# UCLIBC_STATIC_LDCONFIG is not set
|
||||||
|
LDSO_RUNPATH=y
|
||||||
|
LDSO_RUNPATH_OF_EXECUTABLE=y
|
||||||
|
LDSO_SAFE_RUNPATH=y
|
||||||
|
LDSO_SEARCH_INTERP_PATH=y
|
||||||
|
LDSO_LD_LIBRARY_PATH=y
|
||||||
|
UCLIBC_CTOR_DTOR=y
|
||||||
|
# LDSO_GNU_HASH_SUPPORT is not set
|
||||||
|
# HAS_NO_THREADS is not set
|
||||||
|
UCLIBC_HAS_THREADS_NATIVE=y
|
||||||
|
UCLIBC_HAS_THREADS=y
|
||||||
|
UCLIBC_HAS_TLS=y
|
||||||
|
# PTHREADS_DEBUG_SUPPORT is not set
|
||||||
|
PTHREADS_STACK_DEFAULT_SIZE=2097152
|
||||||
|
UCLIBC_HAS_SYSLOG=y
|
||||||
|
UCLIBC_HAS_LFS=y
|
||||||
|
# MALLOC is not set
|
||||||
|
# MALLOC_SIMPLE is not set
|
||||||
|
MALLOC_STANDARD=y
|
||||||
|
UCLIBC_DYNAMIC_ATEXIT=y
|
||||||
|
UCLIBC_HAS_UTMPX=y
|
||||||
|
UCLIBC_HAS_UTMP=y
|
||||||
|
UCLIBC_SUSV2_LEGACY=y
|
||||||
|
UCLIBC_SUSV3_LEGACY=y
|
||||||
|
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||||
|
UCLIBC_SUSV4_LEGACY=y
|
||||||
|
# UCLIBC_STRICT_HEADERS is not set
|
||||||
|
# UCLIBC_HAS_STUBS is not set
|
||||||
|
UCLIBC_HAS_SHADOW=y
|
||||||
|
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
|
||||||
|
UCLIBC_HAS___PROGNAME=y
|
||||||
|
UCLIBC_HAS_PTY=y
|
||||||
|
ASSUME_DEVPTS=y
|
||||||
|
UNIX98PTY_ONLY=y
|
||||||
|
UCLIBC_HAS_GETPT=y
|
||||||
|
UCLIBC_HAS_LIBUTIL=y
|
||||||
|
UCLIBC_HAS_TM_EXTENSIONS=y
|
||||||
|
UCLIBC_HAS_TZ_CACHING=y
|
||||||
|
UCLIBC_HAS_TZ_FILE=y
|
||||||
|
UCLIBC_HAS_TZ_FILE_READ_MANY=y
|
||||||
|
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||||
|
UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Advanced Library Settings
|
||||||
|
#
|
||||||
|
UCLIBC_PWD_BUFFER_SIZE=256
|
||||||
|
UCLIBC_GRP_BUFFER_SIZE=256
|
||||||
|
|
||||||
|
#
|
||||||
|
# Support various families of functions
|
||||||
|
#
|
||||||
|
UCLIBC_LINUX_SPECIFIC=y
|
||||||
|
UCLIBC_HAS_GNU_ERROR=y
|
||||||
|
UCLIBC_BSD_SPECIFIC=y
|
||||||
|
UCLIBC_HAS_BSD_ERR=y
|
||||||
|
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
|
||||||
|
# UCLIBC_HAS_BSD_B64_NTOP_B64_PTON is not set
|
||||||
|
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||||
|
# UCLIBC_NTP_LEGACY is not set
|
||||||
|
# UCLIBC_SV4_DEPRECATED is not set
|
||||||
|
UCLIBC_HAS_REALTIME=y
|
||||||
|
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||||
|
UCLIBC_HAS_EPOLL=y
|
||||||
|
UCLIBC_HAS_XATTR=y
|
||||||
|
UCLIBC_HAS_PROFILING=y
|
||||||
|
UCLIBC_HAS_CRYPT_IMPL=y
|
||||||
|
UCLIBC_HAS_SHA256_CRYPT_IMPL=y
|
||||||
|
UCLIBC_HAS_SHA512_CRYPT_IMPL=y
|
||||||
|
UCLIBC_HAS_CRYPT=y
|
||||||
|
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||||
|
UCLIBC_HAS_SOCKET=y
|
||||||
|
UCLIBC_HAS_IPV4=y
|
||||||
|
UCLIBC_HAS_IPV6=y
|
||||||
|
UCLIBC_USE_NETLINK=y
|
||||||
|
UCLIBC_SUPPORT_AI_ADDRCONFIG=y
|
||||||
|
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||||
|
UCLIBC_HAS_COMPAT_RES_STATE=y
|
||||||
|
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
|
||||||
|
UCLIBC_HAS_RESOLVER_SUPPORT=y
|
||||||
|
# UCLIBC_DNSRAND_MODE_URANDOM is not set
|
||||||
|
# UCLIBC_DNSRAND_MODE_CLOCK is not set
|
||||||
|
UCLIBC_DNSRAND_MODE_PRNGPLUS=y
|
||||||
|
# UCLIBC_DNSRAND_MODE_SIMPLECOUNTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# String and Stdio Support
|
||||||
|
#
|
||||||
|
UCLIBC_HAS_STRING_GENERIC_OPT=y
|
||||||
|
UCLIBC_HAS_STRING_ARCH_OPT=y
|
||||||
|
UCLIBC_HAS_STDIO_FUTEXES=y
|
||||||
|
UCLIBC_HAS_CTYPE_TABLES=y
|
||||||
|
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||||
|
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||||
|
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||||
|
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||||
|
UCLIBC_HAS_WCHAR=y
|
||||||
|
UCLIBC_HAS_LIBICONV=y
|
||||||
|
UCLIBC_HAS_LIBINTL=y
|
||||||
|
UCLIBC_HAS_LOCALE=y
|
||||||
|
UCLIBC_BUILD_MINIMAL_LOCALE=y
|
||||||
|
# UCLIBC_BUILD_ALL_LOCALE is not set
|
||||||
|
UCLIBC_BUILD_MINIMAL_LOCALES="en_US"
|
||||||
|
UCLIBC_HAS_XLOCALE=y
|
||||||
|
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
|
||||||
|
# UCLIBC_HAS_GLIBC_DIGIT_GROUPING is not set
|
||||||
|
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
|
||||||
|
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||||
|
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
|
||||||
|
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||||
|
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||||
|
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||||
|
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||||
|
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||||
|
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||||
|
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||||
|
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||||
|
UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
|
||||||
|
# UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE is not set
|
||||||
|
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||||
|
UCLIBC_HAS_PRINTF_M_SPEC=y
|
||||||
|
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||||
|
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||||
|
UCLIBC_HAS_SIGNUM_MESSAGES=y
|
||||||
|
# UCLIBC_HAS_SYS_SIGLIST is not set
|
||||||
|
UCLIBC_HAS_GNU_GETOPT=y
|
||||||
|
UCLIBC_HAS_GETOPT_LONG=y
|
||||||
|
UCLIBC_HAS_GNU_GETSUBOPT=y
|
||||||
|
# UCLIBC_HAS_ARGP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Big and Tall
|
||||||
|
#
|
||||||
|
UCLIBC_HAS_REGEX=y
|
||||||
|
UCLIBC_HAS_FNMATCH=y
|
||||||
|
UCLIBC_HAS_WORDEXP=y
|
||||||
|
UCLIBC_HAS_NFTW=y
|
||||||
|
UCLIBC_HAS_FTW=y
|
||||||
|
# UCLIBC_HAS_FTS is not set
|
||||||
|
UCLIBC_HAS_GLOB=y
|
||||||
|
UCLIBC_HAS_GNU_GLOB=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library Installation Options
|
||||||
|
#
|
||||||
|
RUNTIME_PREFIX="/"
|
||||||
|
DEVEL_PREFIX="/usr"
|
||||||
|
MULTILIB_DIR="lib"
|
||||||
|
HARDWIRED_ABSPATH=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Security options
|
||||||
|
#
|
||||||
|
UCLIBC_HAS_SSP=y
|
||||||
|
# SSP_QUICK_CANARY is not set
|
||||||
|
UCLIBC_BUILD_SSP=y
|
||||||
|
UCLIBC_BUILD_RELRO=y
|
||||||
|
UCLIBC_BUILD_NOW=y
|
||||||
|
UCLIBC_BUILD_NOEXECSTACK=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Development/debugging options
|
||||||
|
#
|
||||||
|
CROSS_COMPILER_PREFIX="/home/tola/Documents/linux/buildroot-2024.11/output/host/bin/aarch64-buildroot-linux-uclibc-"
|
||||||
|
UCLIBC_EXTRA_CFLAGS=""
|
||||||
|
# DODEBUG is not set
|
||||||
|
# DOSTRIP is not set
|
||||||
|
# DOASSERTS is not set
|
||||||
|
# SUPPORT_LD_DEBUG is not set
|
||||||
|
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||||
|
# UCLIBC_MALLOC_DEBUGGING is not set
|
||||||
|
# UCLIBC_HAS_BACKTRACE is not set
|
||||||
|
WARNINGS="-Wall"
|
||||||
|
# EXTRA_WARNINGS is not set
|
||||||
@@ -9,6 +9,7 @@ export distro_name="Simple" # distro name
|
|||||||
export distro_desc="Simple linux distro" # distro desctiption
|
export distro_desc="Simple linux distro" # distro desctiption
|
||||||
export distro_codename="zero_zero_one" # distro codename
|
export distro_codename="zero_zero_one" # distro codename
|
||||||
# hyperv_support="false" # hyperv support for kernel image
|
# hyperv_support="false" # hyperv support for kernel image
|
||||||
|
export BOARD_NAME=orangepi_pc
|
||||||
export out=$root/out # output directory
|
export out=$root/out # output directory
|
||||||
export build=$root/build # build directory
|
export build=$root/build # build directory
|
||||||
export sourcesfilename=sources.txt # sources file for downloading
|
export sourcesfilename=sources.txt # sources file for downloading
|
||||||
@@ -21,22 +22,26 @@ export makeflags=-j$(nproc) # makeflags
|
|||||||
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
|
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
|
||||||
export ARCH=arm
|
export ARCH=arm
|
||||||
export sdroot=$out/sdroot
|
export sdroot=$out/sdroot
|
||||||
|
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
|
||||||
|
|
||||||
export ZLIB_ENABLE="true"
|
export KERNEL_VERSION=6.13.3
|
||||||
export DROPBEAR_ENABLE="true"
|
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
|
||||||
export IMAGE_USABLE_ENABLE="true"
|
|
||||||
export SFTP_SERVER_ENABLE="true"
|
export ZLIB_ENABLE=y
|
||||||
export CURL_ENABLE="false"
|
export DROPBEAR_ENABLE=y
|
||||||
export BASH_ENABLE="false"
|
export IMAGE_USABLE_ENABLE=y
|
||||||
export GIT_ENABLE="false"
|
export SFTP_SERVER_ENABLE=y
|
||||||
export GITEA_ENABLE="false"
|
export CURL_ENABLE=n
|
||||||
export LIBNL_ENABLE="true"
|
export BASH_ENABLE=n
|
||||||
export IW_ENABLE="true"
|
export GIT_ENABLE=n
|
||||||
export WIRELES_TOOLS_ENABLE="true"
|
export GITEA_ENABLE=n
|
||||||
export WPA_SUPPLICANT_ENABLE="true"
|
export LIBNL_ENABLE=y
|
||||||
export HOSTAPD_ENABLE="true"
|
export IW_ENABLE=y
|
||||||
export OPENSSL_ENABLE="true"
|
export WIRELES_TOOLS_ENABLE=y
|
||||||
export DNSMASQ_ENABLE="true"
|
export WPA_SUPPLICANT_ENABLE=y
|
||||||
export IPTABLES_ENABLE="true"
|
export HOSTAPD_ENABLE=y
|
||||||
export KO8821AU_ENABLE="true"
|
export OPENSSL_ENABLE=y
|
||||||
|
export DNSMASQ_ENABLE=y
|
||||||
|
export IPTABLES_ENABLE=y
|
||||||
|
export KO8821AU_ENABLE=y
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#------------ config ------------------
|
#------------ config ------------------
|
||||||
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
|
export PATH=$PATH:/opt/toolchains/aarch64-buildroot-linux-uclibc_sdk-buildroot/bin
|
||||||
export version=0.0.1 # script version
|
export version=0.0.1 # script version
|
||||||
export root=$(pwd) # root build directory
|
export root=$(pwd) # root build directory
|
||||||
# disk="sdz" # disk to write install image
|
# disk="sdz" # disk to write install image
|
||||||
@@ -9,6 +9,7 @@ export distro_name="Simple" # distro name
|
|||||||
export distro_desc="Simple linux distro" # distro desctiption
|
export distro_desc="Simple linux distro" # distro desctiption
|
||||||
export distro_codename="zero_zero_one" # distro codename
|
export distro_codename="zero_zero_one" # distro codename
|
||||||
# hyperv_support="false" # hyperv support for kernel image
|
# hyperv_support="false" # hyperv support for kernel image
|
||||||
|
export BOARD_NAME=orangepi_zero_2w
|
||||||
export out=$root/out # output directory
|
export out=$root/out # output directory
|
||||||
export build=$root/build # build directory
|
export build=$root/build # build directory
|
||||||
export sourcesfilename=sources.txt # sources file for downloading
|
export sourcesfilename=sources.txt # sources file for downloading
|
||||||
@@ -18,25 +19,29 @@ export rootfsfile=$root/rootfs/rootfs.txt # file to created director
|
|||||||
export rootfspath=$build/rootfs # rootfs build directory
|
export rootfspath=$build/rootfs # rootfs build directory
|
||||||
export fulllogfile=$root/.log/fulllog.log # file for full build logs
|
export fulllogfile=$root/.log/fulllog.log # file for full build logs
|
||||||
export makeflags=-j$(nproc) # makeflags
|
export makeflags=-j$(nproc) # makeflags
|
||||||
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
|
export CROSS_COMPILE=aarch64-buildroot-linux-uclibc
|
||||||
export ARCH=arm
|
export ARCH=arm64
|
||||||
export sdroot=$out/sdroot
|
export sdroot=$out/sdroot
|
||||||
|
export UCLIBC_CONFIG_FILE=$root/board/${BOARD_NAME}/uclibc-1.0.50.config
|
||||||
|
|
||||||
export ZLIB_ENABLE="true"
|
export KERNEL_VERSION=6.8.6
|
||||||
export DROPBEAR_ENABLE="true"
|
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
|
||||||
export IMAGE_USABLE_ENABLE="true"
|
|
||||||
export SFTP_SERVER_ENABLE="true"
|
export ZLIB_ENABLE=y
|
||||||
export CURL_ENABLE="false"
|
export DROPBEAR_ENABLE=y
|
||||||
export BASH_ENABLE="false"
|
export IMAGE_USABLE_ENABLE=y
|
||||||
export GIT_ENABLE="false"
|
export SFTP_SERVER_ENABLE=y
|
||||||
export GITEA_ENABLE="false"
|
export CURL_ENABLE=n
|
||||||
export LIBNL_ENABLE="true"
|
export BASH_ENABLE=n
|
||||||
export IW_ENABLE="true"
|
export GIT_ENABLE=n
|
||||||
export WIRELES_TOOLS_ENABLE="true"
|
export GITEA_ENABLE=n
|
||||||
export WPA_SUPPLICANT_ENABLE="true"
|
export LIBNL_ENABLE=y
|
||||||
export HOSTAPD_ENABLE="true"
|
export IW_ENABLE=y
|
||||||
export OPENSSL_ENABLE="true"
|
export WIRELES_TOOLS_ENABLE=y
|
||||||
export DNSMASQ_ENABLE="true"
|
export WPA_SUPPLICANT_ENABLE=y
|
||||||
export IPTABLES_ENABLE="true"
|
export HOSTAPD_ENABLE=y
|
||||||
export KO8821AU_ENABLE="true"
|
export OPENSSL_ENABLE=y
|
||||||
|
export DNSMASQ_ENABLE=y
|
||||||
|
export IPTABLES_ENABLE=y
|
||||||
|
export KO8821AU_ENABLE=y
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
@@ -14,13 +14,13 @@ ko8821au() {
|
|||||||
cd $build/$pkgname
|
cd $build/$pkgname
|
||||||
git clone $gitsrc
|
git clone $gitsrc
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
make ARCH=$ARCH CROSS_COMPILE=${CROSS_COMPILE}- KSRC=${build}/kernel/linux-${kernel_version} modules ${makeflags}
|
make ARCH=$ARCH CROSS_COMPILE=${CROSS_COMPILE}- KSRC=${build}/kernel/linux-${KERNEL_VERSION} modules ${makeflags}
|
||||||
check $? "Build ${pkgname}"
|
check $? "Build ${pkgname}"
|
||||||
mkdir -pv $rootfspath/lib/modules/${kernel_version}/kernel/drivers/net/wireless
|
mkdir -pv $rootfspath/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless
|
||||||
cp -v 8821au.ko $rootfspath/lib/modules/${kernel_version}/kernel/drivers/net/wireless/
|
cp -v 8821au.ko $rootfspath/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/
|
||||||
/sbin/depmod -a ${kernel_version} -b $rootfspath
|
/sbin/depmod -a ${KERNEL_VERSION} -b $rootfspath
|
||||||
gzip -9 $rootfspath/lib/modules/${kernel_version}/kernel/drivers/net/wireless/8821au.ko
|
gzip -9 $rootfspath/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/8821au.ko
|
||||||
check $? "Install Linux Kernel module ${pkgname}"
|
check $? "Install Linux Kernel module ${pkgname}"
|
||||||
[ -d $rootfspath/usr/lib/modules/$kernel_version/source ] && rm -rv $rootfspath/usr/lib/modules/$kernel_version/source
|
[ -d $rootfspath/usr/lib/modules/$KERNEL_VERSION/source ] && rm -rv $rootfspath/usr/lib/modules/$KERNEL_VERSION/source
|
||||||
[ -d $rootfspath/usr/lib/modules/$kernel_version/build ] && rm -rv $rootfspath/usr/lib/modules/$kernel_version/build
|
[ -d $rootfspath/usr/lib/modules/$KERNEL_VERSION/build ] && rm -rv $rootfspath/usr/lib/modules/$KERNEL_VERSION/build
|
||||||
}
|
}
|
||||||
+25
-20
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#------------ config ------------------
|
#------------ config ------------------
|
||||||
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
|
export PATH=$PATH:/opt/toolchains/aarch64-buildroot-linux-uclibc_sdk-buildroot/bin
|
||||||
export version=0.0.1 # script version
|
export version=0.0.1 # script version
|
||||||
export root=$(pwd) # root build directory
|
export root=$(pwd) # root build directory
|
||||||
# disk="sdz" # disk to write install image
|
# disk="sdz" # disk to write install image
|
||||||
@@ -9,6 +9,7 @@ export distro_name="Simple" # distro name
|
|||||||
export distro_desc="Simple linux distro" # distro desctiption
|
export distro_desc="Simple linux distro" # distro desctiption
|
||||||
export distro_codename="zero_zero_one" # distro codename
|
export distro_codename="zero_zero_one" # distro codename
|
||||||
# hyperv_support="false" # hyperv support for kernel image
|
# hyperv_support="false" # hyperv support for kernel image
|
||||||
|
export BOARD_NAME=orangepi_zero_2w
|
||||||
export out=$root/out # output directory
|
export out=$root/out # output directory
|
||||||
export build=$root/build # build directory
|
export build=$root/build # build directory
|
||||||
export sourcesfilename=sources.txt # sources file for downloading
|
export sourcesfilename=sources.txt # sources file for downloading
|
||||||
@@ -18,25 +19,29 @@ export rootfsfile=$root/rootfs/rootfs.txt # file to created director
|
|||||||
export rootfspath=$build/rootfs # rootfs build directory
|
export rootfspath=$build/rootfs # rootfs build directory
|
||||||
export fulllogfile=$root/.log/fulllog.log # file for full build logs
|
export fulllogfile=$root/.log/fulllog.log # file for full build logs
|
||||||
export makeflags=-j$(nproc) # makeflags
|
export makeflags=-j$(nproc) # makeflags
|
||||||
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
|
export CROSS_COMPILE=aarch64-buildroot-linux-uclibc
|
||||||
export ARCH=arm
|
export ARCH=arm64
|
||||||
export sdroot=$out/sdroot
|
export sdroot=$out/sdroot
|
||||||
|
export UCLIBC_CONFIG_FILE=$root/board/${BOARD_NAME}/uclibc-1.0.50.config
|
||||||
|
|
||||||
export ZLIB_ENABLE="true"
|
export KERNEL_VERSION=6.8.6
|
||||||
export DROPBEAR_ENABLE="true"
|
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
|
||||||
export IMAGE_USABLE_ENABLE="true"
|
|
||||||
export SFTP_SERVER_ENABLE="true"
|
export ZLIB_ENABLE=y
|
||||||
export CURL_ENABLE="false"
|
export DROPBEAR_ENABLE=y
|
||||||
export BASH_ENABLE="false"
|
export IMAGE_USABLE_ENABLE=y
|
||||||
export GIT_ENABLE="false"
|
export SFTP_SERVER_ENABLE=y
|
||||||
export GITEA_ENABLE="false"
|
export CURL_ENABLE=n
|
||||||
export LIBNL_ENABLE="true"
|
export BASH_ENABLE=n
|
||||||
export IW_ENABLE="true"
|
export GIT_ENABLE=n
|
||||||
export WIRELES_TOOLS_ENABLE="true"
|
export GITEA_ENABLE=n
|
||||||
export WPA_SUPPLICANT_ENABLE="true"
|
export LIBNL_ENABLE=y
|
||||||
export HOSTAPD_ENABLE="true"
|
export IW_ENABLE=y
|
||||||
export OPENSSL_ENABLE="true"
|
export WIRELES_TOOLS_ENABLE=y
|
||||||
export DNSMASQ_ENABLE="true"
|
export WPA_SUPPLICANT_ENABLE=y
|
||||||
export IPTABLES_ENABLE="true"
|
export HOSTAPD_ENABLE=y
|
||||||
export KO8821AU_ENABLE="true"
|
export OPENSSL_ENABLE=y
|
||||||
|
export DNSMASQ_ENABLE=y
|
||||||
|
export IPTABLES_ENABLE=y
|
||||||
|
export KO8821AU_ENABLE=y
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
+8
-10
@@ -4,8 +4,6 @@
|
|||||||
. ./scripts/funcs.sh
|
. ./scripts/funcs.sh
|
||||||
. ./scripts/config.sh
|
. ./scripts/config.sh
|
||||||
|
|
||||||
kernel_version=6.13.3
|
|
||||||
|
|
||||||
#--------------- Building Linux Kernel ---------------------
|
#--------------- Building Linux Kernel ---------------------
|
||||||
kernel() {
|
kernel() {
|
||||||
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
||||||
@@ -13,12 +11,12 @@ kernel() {
|
|||||||
mkdir -p $build/kernel # &>> $fulllogfile
|
mkdir -p $build/kernel # &>> $fulllogfile
|
||||||
cd $build/kernel
|
cd $build/kernel
|
||||||
printf "$UGREEN** Extracting Linux Kernel\n$RESET"
|
printf "$UGREEN** Extracting Linux Kernel\n$RESET"
|
||||||
tar -xvf $root/downloads/linux-$kernel_version.tar.xz # &>> $fulllogfile
|
tar -xvf $root/downloads/linux-$KERNEL_VERSION.tar.xz # &>> $fulllogfile
|
||||||
check $? "Extract Linux Kernel"
|
check $? "Extract Linux Kernel"
|
||||||
cd linux-$kernel_version
|
cd linux-$KERNEL_VERSION
|
||||||
printf "$UGREEN** Configuring Linux Kernel\n$RESET"
|
printf "$UGREEN** Configuring Linux Kernel\n$RESET"
|
||||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- mrproper # &>> $fulllogfile
|
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- mrproper # &>> $fulllogfile
|
||||||
cp -v $root/kernel/config-$kernel_version .config # &>> $fulllogfile
|
cp -v $root/kernel/config-$KERNEL_VERSION .config # &>> $fulllogfile
|
||||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
|
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
|
||||||
check $? "Configure Linux Kernel"
|
check $? "Configure Linux Kernel"
|
||||||
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
printf "$UGREEN** Building Linux Kernel\n$RESET"
|
||||||
@@ -31,7 +29,7 @@ kernel() {
|
|||||||
#----------- Build and Install kernel modules --------------
|
#----------- Build and Install kernel modules --------------
|
||||||
kernel_modules() {
|
kernel_modules() {
|
||||||
printf "$UGREEN** Building Linux Kernel modules\n$RESET"
|
printf "$UGREEN** Building Linux Kernel modules\n$RESET"
|
||||||
cd $build/kernel/linux-$kernel_version
|
cd $build/kernel/linux-$KERNEL_VERSION
|
||||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- modules # &>> fulllogfile
|
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- modules # &>> fulllogfile
|
||||||
check $? "Build Linux Kernel modules"
|
check $? "Build Linux Kernel modules"
|
||||||
printf "$UGREEN** Installing Linux Kernel modules into rootfs path\n$RESET"
|
printf "$UGREEN** Installing Linux Kernel modules into rootfs path\n$RESET"
|
||||||
@@ -40,7 +38,7 @@ kernel_modules() {
|
|||||||
gzip -9 $i;
|
gzip -9 $i;
|
||||||
done
|
done
|
||||||
check $? "Install Linux Kernel modules"
|
check $? "Install Linux Kernel modules"
|
||||||
rm -v $rootfspath/usr/lib/modules/$kernel_version/{source,build}
|
rm -v $rootfspath/usr/lib/modules/$KERNEL_VERSION/{source,build}
|
||||||
} # kernel_modules
|
} # kernel_modules
|
||||||
#-----------------------------------------------------------
|
#-----------------------------------------------------------
|
||||||
|
|
||||||
@@ -50,7 +48,7 @@ kernel_with_rootfs() {
|
|||||||
if [ ! -d $out ]; then
|
if [ ! -d $out ]; then
|
||||||
mkdir -pv $out
|
mkdir -pv $out
|
||||||
fi
|
fi
|
||||||
cd $build/kernel/linux-$kernel_version
|
cd $build/kernel/linux-$KERNEL_VERSION
|
||||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- CONFIG_INITRAMFS_SOURCE=$rootfspath $makeflags # &>> fulllogfile
|
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- CONFIG_INITRAMFS_SOURCE=$rootfspath $makeflags # &>> fulllogfile
|
||||||
check $? "Build Linux Kernel with rootfs"
|
check $? "Build Linux Kernel with rootfs"
|
||||||
printf "$UGREEN** Installing Linux Kernel into images path\n$RESET"
|
printf "$UGREEN** Installing Linux Kernel into images path\n$RESET"
|
||||||
@@ -65,9 +63,9 @@ kernel_headers() {
|
|||||||
printf "$UGREEN** Building Linux Kernel headers\n$RESET"
|
printf "$UGREEN** Building Linux Kernel headers\n$RESET"
|
||||||
[ ! -d $build/kernel-headers ] && mkdir $build/kernel-headers
|
[ ! -d $build/kernel-headers ] && mkdir $build/kernel-headers
|
||||||
cd $build/kernel-headers
|
cd $build/kernel-headers
|
||||||
tar -xvf $root/downloads/linux-$kernel_version.tar.xz
|
tar -xvf $root/downloads/linux-$KERNEL_VERSION.tar.xz
|
||||||
check $? "Extract Linux Kernel"
|
check $? "Extract Linux Kernel"
|
||||||
cd linux-$kernel_version
|
cd linux-$KERNEL_VERSION
|
||||||
make ARCH=$ARCH headers
|
make ARCH=$ARCH headers
|
||||||
check $? "Build kernel headers"
|
check $? "Build kernel headers"
|
||||||
}
|
}
|
||||||
+5
-1
@@ -14,7 +14,11 @@ openssl() {
|
|||||||
cd $build/${pkgname}
|
cd $build/${pkgname}
|
||||||
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||||
cd ${pkgname}-${pkgver}/
|
cd ${pkgname}-${pkgver}/
|
||||||
./config linux-armv4 CROSS_COMPILE=${CROSS_COMPILE}-
|
if [ "$ARCH" = "arm" ]; then
|
||||||
|
./config linux-armv4 CROSS_COMPILE=${CROSS_COMPILE}-
|
||||||
|
elif [ "$ARCH" = "arm64" ]; then
|
||||||
|
./config linux-aarch64 CROSS_COMPILE=${CROSS_COMPILE}-
|
||||||
|
fi
|
||||||
check $? "Configure ${pkgname}"
|
check $? "Configure ${pkgname}"
|
||||||
make ${makeflags}
|
make ${makeflags}
|
||||||
check $? "Build ${pkgname}"
|
check $? "Build ${pkgname}"
|
||||||
|
|||||||
+14
-14
@@ -52,20 +52,20 @@ rootfs() {
|
|||||||
uclibc
|
uclibc
|
||||||
kernel
|
kernel
|
||||||
kernel_modules
|
kernel_modules
|
||||||
[ "$ZLIB_ENABLE" = "true" ] && zlib
|
[ "$ZLIB_ENABLE" = "y" ] && zlib
|
||||||
[ "$OPENSSL_ENABLE" = "true" ] && openssl
|
[ "$OPENSSL_ENABLE" = "y" ] && openssl
|
||||||
[ "$DNSMASQ_ENABLE" = "true" ] && dnsmasq
|
[ "$DNSMASQ_ENABLE" = "y" ] && dnsmasq
|
||||||
[ "$DROPBEAR_ENABLE" = "true" ] && dropbear
|
[ "$DROPBEAR_ENABLE" = "y" ] && dropbear
|
||||||
[ "$SFTP_SERVER_ENABLE" = "true" ] && sftp_server
|
[ "$SFTP_SERVER_ENABLE" = "y" ] && sftp_server
|
||||||
[ "$CURL_ENABLE" = "true" ] && curl
|
[ "$CURL_ENABLE" = "y" ] && curl
|
||||||
[ "$BASH_ENABLE" = "true" ] && bash
|
[ "$BASH_ENABLE" = "y" ] && bash
|
||||||
[ "$GIT_ENABLE" = "true" ] && git_build
|
[ "$GIT_ENABLE" = "y" ] && git_build
|
||||||
[ "$GITEA_ENABLE" = "true" ] && gitea
|
[ "$GITEA_ENABLE" = "y" ] && gitea
|
||||||
[ "$LIBNL_ENABLE" = "true" ] && libnl
|
[ "$LIBNL_ENABLE" = "y" ] && libnl
|
||||||
[ "$IW_ENABLE" = "true" ] && iw
|
[ "$IW_ENABLE" = "y" ] && iw
|
||||||
[ "$HOSTAPD_ENABLE" = "true" ] && hostapd
|
[ "$HOSTAPD_ENABLE" = "y" ] && hostapd
|
||||||
[ "$IPTABLES_ENABLE" = "true" ] && iptables
|
[ "$IPTABLES_ENABLE" = "y" ] && iptables
|
||||||
[ "$KO8821AU_ENABLE" = "true" ] && ko8821au
|
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
|
||||||
|
|
||||||
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
|
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
|
||||||
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
|
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
|
||||||
|
|||||||
+2
-2
@@ -14,8 +14,8 @@ uclibc() {
|
|||||||
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz # &>> $fulllogfile
|
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz # &>> $fulllogfile
|
||||||
check $? "Extract ${pkgname}"
|
check $? "Extract ${pkgname}"
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
cp -rv $root/uclibc/config-${pkgver} .config
|
cp -rv $UCLIBC_CONFIG_FILE .config
|
||||||
sed -i -e "s/KERNEL_HEADERS=/KERNEL_HEADERS=\"..\/..\/kernel-headers\/linux-$kernel_version\/usr\/include\"/g" .config
|
sed -i -e "s/KERNEL_HEADERS=/KERNEL_HEADERS=\"..\/..\/kernel-headers\/linux-$KERNEL_VERSION\/usr\/include\"/g" .config
|
||||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
|
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
|
||||||
check $? "Configure ${pkgname}"
|
check $? "Configure ${pkgname}"
|
||||||
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
|
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
|
||||||
|
|||||||
Reference in new issue
Block a user