Merge pull request 'orangepi-pc' (#3) from orangepi-pc into main

Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/SimpleLinux/pulls/3
This commit was merged in pull request #3.
This commit is contained in:
wt
2025-08-17 14:25:30 +07:00
130 changed files with 38672 additions and 1396 deletions
+8 -1
View File
@@ -1,4 +1,11 @@
out
build
downloads
.log
.log
**config.sh
**src
**pkg
.vscode
**.pkg.gz
installer
qemu
-38
View File
@@ -1,38 +0,0 @@
stages:
- build
# needed environment variables
variables:
IMAGE_NAME: SimpleLinux
IMAGE_VERSION: 0.0.1
build-iso-image:
#image: ubuntu:18.04
stage: build
artifacts:
# artifacts archive name
name: "$IMAGE_NAME-$IMAGE_VERSION-$CI_COMMIT_BRANCH-$CI_PIPELINE_ID"
# artifacts path
paths:
- artifacts
# update environments and install needed packages
before_script:
- echo "Hello, $GITLAB_USER_LOGIN"
- make build_image
- uname -a
- apt update && apt upgrade -y && apt install build-essential bc file
# script for building artifacts
script:
- apt update && apt upgrade -y && apt install build-essential bc file
- ./scripts/build_image.sh build
# installing artifacts to artifacts directory
after_script:
- rm -rvf artifacts
- mkdir -v artifacts
- cp -v build/simplelinux.iso artifacts/$IMAGE_NAME-$IMAGE_VERSION-$CI_COMMIT_BRANCH-$CI_PIPELINE_ID.iso
- cp -v .log/fulllog.log actifacts/fulllog
+45 -6
View File
@@ -1,13 +1,52 @@
default: build_image
build_image:
@sudo ./scripts/build_image.sh build
./scripts/build_image.sh build
source:
./scripts/build_image.sh download
download:
./scripts/build_image.sh download
clean:
@sudo ./scripts/build_image.sh clean
./scripts/clean.sh
download_sources:
@sudo ./scripts/build_image.sh download
distclean:
./scripts/clean.sh
if [ -d downloads ]; then \
rm -rv downloads; \
fi
build_rootfs:
@sudo ./scripts/build_image.sh rootfs
dropbear:
./scripts/build_image.sh dropbear
libnl:
./scripts/build_image.sh libnl
iw:
./scripts/build_image.sh iw
hostapd:
./scripts/build_image.sh hostapd
openssl:
./scripts/build_image.sh openssl
iptables:
./scripts/build_image.sh iptables
ko8821au:
./scripts/build_image.sh ko8821au
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
x86_64_uclibc_defconfig:
cp -v configs/x86_64_uclibc_defconfig scripts/config.sh
-33
View File
@@ -1,33 +0,0 @@
# Simple Linux
### This is a scripts to build Simple Linux install media
## To start build
```shell
sudo ./scripts/build_image.sh build
```
### or
```shell
sudo make
```
### or
```shell
sudo make build
```
## Using for building initramfs
```
x86_64-buildroot-linux-uclibc-gcc
```
## Using for building rootfs
```
Host gcc and binutils
```
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+263
View File
@@ -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
BIN
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff
+261
View File
@@ -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
File diff suppressed because it is too large Load Diff
+264
View File
@@ -0,0 +1,264 @@
#
# 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 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=y
# TARGET_xtensa is not set
TARGET_LDSO_NAME="ld64-uClibc"
TARGET_ARCH_BITS=64
#
# Target Architecture Features and Options
#
TARGET_ARCH="x86_64"
FORCE_OPTIONS_FOR_ARCH=y
TARGET_SUBARCH=""
#
# Using ELF file format
#
ARCH_HAS_DEPRECATED_SYSCALLS=y
ARCH_LITTLE_ENDIAN=y
#
# Using Little Endian
#
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_FENV is not set
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
#
# 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/orangepipc/buildroot-2024.08.2/output/host/bin/x86_64-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
Regular → Executable
View File
Regular → Executable
View File
+20
View File
@@ -0,0 +1,20 @@
awk
blkid
cat
fdisk
find
findfs
grep
hdparm
ls
mkdir
mount
mountpoint
pivot_root
printf
sed
sh
sleep
switch_root
umount
vi
+371
View File
@@ -0,0 +1,371 @@
[
[[
acpid
add-shell
addgroup
adduser
adjtimex
ar
arch
arp
arping
ascii
awk
base32
base64
basename
bc
beep
blkdiscard
blkid
blockdev
bootchartd
brctl
bunzip2
bzcat
bzip2
cal
cat
chat
chattr
chgrp
chmod
chown
chpasswd
chroot
chrt
chvt
cksum
clear
cmp
comm
conspy
cp
cpio
crc32
crond
crontab
cryptpw
cttyhack
cut
date
dc
dd
deallocvt
delgroup
deluser
depmod
devmem
df
dhcprelay
diff
dirname
dmesg
dnsd
dnsdomainname
dos2unix
du
dumpkmap
dumpleases
echo
ed
egrep
eject
env
ether-wake
expand
expr
factor
fakeidentd
fallocate
false
fatattr
fbset
fbsplash
fdflush
fdformat
fdisk
fgconsole
fgrep
find
findfs
flock
fold
free
freeramdisk
fsck
fsfreeze
fstrim
fsync
ftpd
ftpget
ftpput
fuser
getopt
getty
grep
groups
gunzip
gzip
halt
hd
hdparm
head
hexdump
hexedit
hostid
hostname
httpd
hwclock
i2cdetect
i2cdump
i2cget
i2cset
i2ctransfer
id
ifconfig
ifdown
ifenslave
ifplugd
ifup
inetd
init
insmod
install
ionice
iostat
ip
ipaddr
ipcalc
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
kbd_mode
kill
killall
killall5
klogd
last
less
link
linux32
linux64
linuxrc
ln
loadfont
loadkmap
logger
login
logname
logread
losetup
lpd
lpq
lpr
ls
lsattr
lsmod
lsof
lspci
lsscsi
lsusb
lzcat
lzma
lzop
lzopcat
makedevs
man
md5sum
mdev
mesg
microcom
mim
mkdir
mkdosfs
mke2fs
mkfifo
mkfs.ext2
mkfs.vfat
mknod
mkpasswd
mkswap
mktemp
modinfo
modprobe
more
mount
mountpoint
mpstat
mt
mv
nameif
nanddump
nandwrite
nbd-client
nc
netstat
nice
nl
nmeter
nohup
nologin
nproc
nsenter
nslookup
ntpd
od
openvt
partprobe
passwd
paste
patch
pgrep
pidof
ping
ping6
pivot_root
pkill
pmap
poweroff
powertop
printenv
printf
ps
pscan
pstree
pwd
pwdx
raidautorun
rdate
rdev
readahead
readlink
readprofile
realpath
reboot
remove-shell
renice
reset
resize
rev
rfkill
rm
rmdir
rmmod
route
rtcwake
run-parts
rx
script
scriptreplay
sed
seedrng
seq
setarch
setconsole
setfattr
setfont
setkeycodes
setlogcons
setpriv
setserial
setsid
sh
sha1sum
sha256sum
sha3sum
sha512sum
showkey
shred
shuf
slattach
sleep
smemcap
sort
split
ssl_client
stat
strings
stty
su
sulogin
sum
swapoff
swapon
switch_root
sync
sysctl
syslogd
tac
tail
tar
taskset
tcpsvd
tee
telnet
telnetd
test
tftp
tftpd
time
timeout
top
touch
tr
traceroute
traceroute6
tree
true
truncate
ts
tsort
tty
ttysize
tunctl
tune2fs
udhcpc
udhcpc6
udhcpd
udpsvd
uevent
umount
uname
uncompress
unexpand
uniq
unix2dos
unlink
unlzma
unlzop
unshare
unxz
unzip
uptime
users
usleep
uudecode
uuencode
vconfig
vi
vlock
volname
w
wall
watch
watchdog
wc
wget
who
whoami
whois
xargs
xxd
xz
xzcat
yes
zcat
zcip
+53
View File
@@ -0,0 +1,53 @@
#!/bin/bash
#------------ config ------------------
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export PKG_CONFIG_PATH=/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/pkgconfig
export version=0.0.1 # script version
export root=$(pwd) # root build directory
export distro_name="Simple Linux" # distro name
export distro_pretty_name="Simple Linux"
export distro_id="simple"
export distro_build_id="rolling"
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
export BOARD_NAME=orangepi_pc
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
export initramfsfile=$root/initramfs/initramfs.txt # file to created directories for initramfs
export initramfspath=$build/initramfs # initramfs build directory
export rootfsfile=$root/rootfs/rootfs.txt # file to created directories for rootfs
export rootfspath=$build/rootfs # rootfs build directory
export fulllogfile=$root/.log/fulllog.log # file for full build logs
export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
export sdroot=$out/sdroot
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
export KERNEL_VERSION=6.13.3
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export UBOOT_DEFCONFIG=orangepi_pc_defconfig
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=y
export IMAGE_ENABLE=y
export SFTP_SERVER_ENABLE=y
export CURL_ENABLE=n
export BASH_ENABLE=n
export GIT_ENABLE=n
export GITEA_ENABLE=n
export LIBNL_ENABLE=n
export IW_ENABLE=n
export WIRELES_TOOLS_ENABLE=n
export WPA_SUPPLICANT_ENABLE=n
export HOSTAPD_ENABLE=n
export OPENSSL_ENABLE=n
export DNSMASQ_ENABLE=n
export IPTABLES_ENABLE=n
export KO8821AU_ENABLE=n
export FINIT_INIT_ENABLE=y
#--------------------------------------
+47
View File
@@ -0,0 +1,47 @@
#!/bin/bash
#------------ config ------------------
export PATH=$PATH:/opt/toolchains/aarch64-buildroot-linux-uclibc/bin
export version=0.0.1 # script version
export root=$(pwd) # root build directory
export distro_name="Simple" # distro name
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
export BOARD_NAME=orangepi_zero_2w
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
export initramfsfile=$root/initramfs/initramfs.txt # file to created directories for initramfs
export initramfspath=$build/initramfs # initramfs build directory
export rootfsfile=$root/rootfs/rootfs.txt # file to created directories for rootfs
export rootfspath=$build/rootfs # rootfs build directory
export fulllogfile=$root/.log/fulllog.log # file for full build logs
export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=aarch64-buildroot-linux-uclibc
export ARCH=arm64
export sdroot=$out/sdroot
export UCLIBC_CONFIG_FILE=$root/board/${BOARD_NAME}/uclibc-1.0.50.config
export KERNEL_VERSION=6.8.6
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export UBOOT_DEFCONFIG=orangepi_zero2w_defconfig
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=y
export SFTP_SERVER_ENABLE=y
export CURL_ENABLE=n
export BASH_ENABLE=n
export GIT_ENABLE=n
export GITEA_ENABLE=n
export LIBNL_ENABLE=y
export IW_ENABLE=y
export WIRELES_TOOLS_ENABLE=y
export WPA_SUPPLICANT_ENABLE=y
export HOSTAPD_ENABLE=y
export OPENSSL_ENABLE=y
export DNSMASQ_ENABLE=y
export IPTABLES_ENABLE=y
export KO8821AU_ENABLE=n
#--------------------------------------
+42
View File
@@ -0,0 +1,42 @@
#!/bin/sh
#------------ config ------------------
export PATH=$PATH:/opt/toolchains/x86_64-buildroot-linux-uclibc_sdk-buildroot/bin
export PKG_CONFIG_PATH=/opt/toolchains/x86_64-buildroot-linux-uclibc_sdk-buildroot/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/pkgconfig
export version=0.0.1 # script version
export root=$(pwd) # root build directory
export distro_name="Simple Linux" # distro name
export distro_pretty_name="Simple Linux"
export distro_id="simple"
export distro_build_id="rolling"
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
export BOARD_NAME="x86_64_uclibc"
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
export initramfsfile=$root/initramfs/initramfs.txt # file to created directories for initramfs
export initramfspath=$build/initramfs # initramfs build directory
export rootfsfile=$root/rootfs/rootfs.txt # file to created directories for rootfs
export rootfspath=$build/rootfs # rootfs build directory
export fulllogfile=$root/.log/fulllog.log # file for full build logs
export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=x86_64-buildroot-linux-uclibc
export ARCH=x86_64
export diskroot=$out/diskroot
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
export KERNEL_VERSION=6.1.91
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=n
export IMAGE_ENABLE=n
export SFTP_SERVER_ENABLE=n
export CURL_ENABLE=n
export BASH_ENABLE=n
export GIT_ENABLE=n
export GITEA_ENABLE=n
export FINIT_INIT_ENABLE=y
#--------------------------------------
+4
View File
@@ -0,0 +1,4 @@
LABEL default
kernel /boot/zImage
devicetreedir /boot/dtbs
append console=${console} panic=10
+5
View File
@@ -0,0 +1,5 @@
LABEL default
kernel /boot/zImage
initrd /boot/initramfs.img
devicetreedir /boot/dtbs
append root=UUID=ROOTUUID rw rootwait console=${console} rootfstype=ext4 panic=10
+20
View File
@@ -0,0 +1,20 @@
image sdcard.img {
partition u-boot {
in-partition-table = false
image = "u-boot-sunxi-with-spl.bin"
offset = 8K
size = 1000K # 1MB - 8KB(offset) - 16KB(GPT)
}
hdimage {
partition-table-type = "gpt"
gpt-location = 1008K # 1MB - 16KB(GPT)
gpt-no-backup = true
}
partition rootfs {
offset = 1M
image = "rootfs.ext4"
partition-uuid = FILEUUID
}
}
+6
View File
@@ -0,0 +1,6 @@
set timeout=5
menuentry 'Simple Linux x86_64 Uclibc' {
linux /boot/vmlinuz-6.1.91 root=UUID=ROOTUUID rw rootwait init=/init
initrd /boot/initramfs.img
}
+2 -2
View File
@@ -61,7 +61,7 @@ device=
resume=
noresume=false
mount -n -t devtmpfs dev /dev
mount -n -t devtmpfs devtmpfs /dev
mount -n -t proc proc /proc
mount -n -t sysfs sys /sys
mount -n -t tmpfs run /run
@@ -98,7 +98,7 @@ done
if [ -n "$rootdelay" ]; then sleep "$rootdelay"; fi
do_mount_root
for i in run tmp dev proc sys; do
for i in dev proc sys; do
[ -d /.root/$i ] || mkdir /.root/$i
mount -o bind /$i /.root/$i
done
+2 -1
View File
@@ -3,4 +3,5 @@ dev
mnt
proc
root
sys
sys
run
+5248
View File
File diff suppressed because it is too large Load Diff
+6089
View File
File diff suppressed because it is too large Load Diff
-6
View File
@@ -1,6 +0,0 @@
set timeout=5
menuentry 'Simple Linux Install Media' {
linux /boot/vmlinuz-linux root=/dev/sda
initrd /boot/initramfs.img
}
-1
View File
@@ -1 +0,0 @@
# disk mountpoint filesystem options 0 0/1
-1
View File
@@ -1 +0,0 @@
root:x:0:root
-82
View File
@@ -1,82 +0,0 @@
#!/bin/sh
#--- reset colors ---
RESET="\033[0m"
#--------------------
#--------- regularcolrs ---------
GREEN="\033[0;32m" #GREEN
BLUE="\033[0;34m" #BLUE
YELLOW="\033[1;33m" #YELLOW
RED="\033[0;31m" #RED
BLACK="\033[0;30m" #BLACK
PURPLE="\033[0;35m" #PURPLE
CYAN="\033[0;36m" #CYAN
WHITE="\033[0;37m" #WHITE
#--------------------------------
#-------- bold ------------------
BBLACK="\033[1;30m" #BLACK
BRED="\033[1;31m" #RED
BGREEN="\033[1;32m" #GREEN
BYELLOW="\033[1;33m" #YELLOW
BBLUE="\033[1;34m" #BLUE
BPURPLE="\033[1;35m" #PURPLE
BCYAN="\033[1;36m" #CYAN
BWHITE="\033[1;37m" #WHITE
#--------------------------------
#-------- Underline -------------
UBLACK="\033[4;30m" #BLACK
URED="\033[4;31m" #RED
UGREEN="\033[4;32m" #GREEN
UYELLOW="\033[4;33m" #YELLOW
UBLUE="\033[4;34m" #BLUE
UPURPLE="\033[4;35m" #PURPLE
UCYAN="\033[4;36m" #CYAN
UWHITE="\033[4;37m" #WHITE
#--------------------------------
#--------- Background -----------
ON_BLACK="\033[40m" #BLACK
ON_RED="\033[41m" #RED
ON_GREEN="\033[42m" #GREEN
ON_YELLOW="\033[43m" #YELLOW
ON_BLUE="\033[44m" #BLUE
ON_PURPLE="\033[45m" #PURPLE
ON_CYAN="\033[46m" #CYAN
ON_WHITE="\033[47m" #WHITE
#--------------------------------
#------ HighIntensity -----------
IBLACK="\033[0;90m" #BLACK
IRED="\033[0;91m" #RED
IGREEN="\033[0;92m" #GREEN
IYELLOW="\033[0;93m" #YELLOW
IBLUE="\033[0;94m" #BLUE
IPURPLE="\033[0;95m" #PURPLE
ICYAN="\033[0;96m" #CYAN
IWHITE="\033[0;97m" #WHITE
#--------------------------------
#------ BoldHighIntensity -------
BIBLACK="\033[1;90m" #BLACK
BIRED="\033[1;91m" #RED
BIGREEN="\033[1;92m" #GREEN
BIYELLOW="\033[1;93m" #YELLOW
BIBLUE="\033[1;94m" #BLUE
BIPURPLE="\033[1;95m" #PURPLE
BICYAN="\033[1;96m" #CYAN
BIWHITE="\033[1;97m" #WHITE
#--------------------------------
#--- HighIntensitybackgrounds ---
ON_IBLACK="\033[0;100m" #BLACK
ON_IRED="\033[0;101m" #RED
ON_IGREEN="\033[0;102m" #GREEN
ON_IYELLOW="\033[0;103m" #YELLOW
ON_IBLUE="\033[0;104m" #BLUE
ON_IPURPLE="\033[0;105m" #PURPLE
ON_ICYAN="\033[0;106m" #CYAN
ON_IWHITE="\033[0;107m" #WHITE
#--------------------------------
-44
View File
@@ -1,44 +0,0 @@
#!/bin/sh
#--- import colors ---
. /etc/init.d/funcs/colors.sh
#---------------------
#---------------------- rc function to poweron or poweroff ------------
rc() {
if [ -d /etc/rc.d ] && [ $0 == "/etc/init.d/rcK" ]; then
for i in $(ls -r /etc/rc.d); do
/etc/rc.d/$i stop
done
return 1
fi
for i in /etc/rc.d/??*; do
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
$i start
;;
esac
done
sleep 1
# clear
return 1
}
#----------------------------------------------------------------------
#---------- check status function -----------
check() {
if [ $1 -ne 0 ]; then
printf "$BBLUE**$BRED ERROR: $2\n$RESET"
return
fi
printf "$BBLUE**$BGREEN SUCCESS: $2\n$RESET"
}
#--------------------------------------------
-18
View File
@@ -1,18 +0,0 @@
#!/bin/sh
. /etc/init.d/funcs/colors.sh
. /etc/init.d/funcs/init-funcs
case "$1" in
start)
printf "$BBLUE**$BYELLOW Setting up hostname\n$RESET"
/bin/hostname -F /etc/hostname
check $? "Set up hostname"
;;
stop)
;;
*)
echo "$0 init script usage: $0 {start}"
return 1
esac
return $?
-29
View File
@@ -1,29 +0,0 @@
#!/bin/sh
. /etc/init.d/funcs/init-funcs
. /etc/init.d/funcs/colors.sh
case "$1" in
start)
printf "$BBLUE**$BYELLOW Starting networking\n$RESET"
/sbin/ifup -a &> /dev/null
check $? "networking"
echo $! > /var/run/networking.pid
;;
stop)
printf "$BBLUE**$BYELLOW Stopping netowrking\n$RESET"
/sbin/ifdown -a
check $? "Stop networking"
if [ -f /var/run/networking.pid ]; then
rm /var/run/networking.pid
fi
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "$0 init script usage: $0 {start|stop|restart|reload}"
return 1
esac
return $?
-1
View File
@@ -1 +0,0 @@
rcS
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
. /etc/init.d/funcs/init-funcs
rc
-27
View File
@@ -1,27 +0,0 @@
#!/bin/sh
. /etc/init.d/funcs/init-funcs
. /etc/init.d/funcs/colors.sh
case "$1" in
start)
printf "$BBLUE**$BYELLOW Mounting virtual filesystems\n$RESET"
mount -t tmpfs tmpfs /var/run
check $? "Mount virtual filesystems"
echo $! > /var/run/networking.pid
;;
stop)
printf "$BBLUE**$BYELLOW Umounting virtual filesystems\n$RESET"
umount /var/run
check $? "Umount virtual filesystems"
rm /var/run/networking.pid
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "$0 init script usage: $0 {start|stop|restart|reload}"
return 1
esac
return $?
-9
View File
@@ -1,9 +0,0 @@
::sysinit:/etc/init.d/rcS
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rcK
tty1::respawn:/sbin/getty 38400 tty1
tty2::askfirst:/sbin/getty 38400 tty2
tty3::askfirst:/sbin/getty 38400 tty3
tty4::askfirst:/sbin/getty 38400 tty4
-1
View File
@@ -1 +0,0 @@
\h \r (\l)
-4
View File
@@ -1,4 +0,0 @@
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
-11
View File
@@ -1,11 +0,0 @@
passwd: files
group: files
shadow: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
-1
View File
@@ -1 +0,0 @@
root:x:0:0:root:/root:/bin/sh
-11
View File
@@ -1,11 +0,0 @@
export RESET="\033[0m"
export GREEN="\033[1;32m"
export BLUE="\033[1;34m"
export RED="\033[1;31m"
export YELLOW="\033[1;33m"
export PS1="$BLUE**$BLUE \u$RESET@$RED\h: $GREEN\w $YELLOW\$(date +%d.%m.%Y) \t\n$GREEN\$ $RESET"
[ $(id -u) -eq 0 ] && export PS1="$RED** \u@\h: \w \$(date +%d.%m.%Y) \t\n\\\$ $RESET"
[ -f ~/.profile ] && source ~/.profile
-1
View File
@@ -1 +0,0 @@
../init.d/virtualfilesystems
-1
View File
@@ -1 +0,0 @@
../init.d/hostname
-1
View File
@@ -1 +0,0 @@
../init.d/networking
-1
View File
@@ -1 +0,0 @@
nameserver 10.0.2.3
-1
View File
@@ -1 +0,0 @@
root:F.fHA5x2Q.xNY:19797::::::
-2
View File
@@ -1,2 +0,0 @@
/bin/sh
/bin/ash
+37
View File
@@ -0,0 +1,37 @@
#!/bin/sh
init=/sbin/init
root=
rootdelay=
rootfstype=auto
ro="ro"
rootflags=
device=
resume=
noresume=false
mount -n -t devtmpfs devtmpfs /dev
mount -n -t proc proc /proc
mount -n -t sysfs sys /sys
mount -n -t tmpfs run /run
mkdir -p /dev/pts
read -r cmdline < /proc/cmdline
for param in $cmdline ; do
case $param in
init=* ) init=${param#init=} ;;
root=* ) root=${param#root=} ;;
rootdelay=* ) rootdelay=${param#rootdelay=} ;;
rootfstype=*) rootfstype=${param#rootfstype=} ;;
rootflags=* ) rootflags=${param#rootflags=} ;;
resume=* ) resume=${param#resume=} ;;
noresume ) noresume=true ;;
ro ) ro="ro" ;;
rw ) ro="rw" ;;
esac
done
echo 0 > /proc/sys/kernel/printk
exec /sbin/init
+1
View File
@@ -0,0 +1 @@
#DNSD_ARGS="-t 120 -s -v"
+1
View File
@@ -0,0 +1 @@
DNSMASQ_ARGS="-u root"
+3
View File
@@ -0,0 +1,3 @@
DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS="-E -R -B -m -F"
ENABLE_ROOT_LOGIN="yes"
+1
View File
@@ -0,0 +1 @@
HTTPD_ARGS="-h /srv/www"
@@ -0,0 +1 @@
service [2345] log env:-/etc/default/dnsd $DNSD_ARGS -- DNS daemon
@@ -0,0 +1 @@
service env:-/etc/default/dnsmasq <pid/syslogd> [S12345] dnsmasq -k $DNSMASQ_ARGS -- DHCP/DNS proxy
@@ -0,0 +1 @@
service [2345] env:/etc/default/dropbear dropbear $DROPBEAR_EXTRA_ARGS -p$DROPBEAR_PORT -- Dropbear SSH daemon
@@ -0,0 +1,3 @@
# Consoles to start getty on when system is up
tty [12345] /dev/ttyS0 noclear nowait
tty [12345] /dev/tty1 noclear nowait
@@ -0,0 +1 @@
run [123456789] hostname -F /etc/hostname -- Set up hostname
@@ -0,0 +1 @@
service log env:-/etc/default/httpd pid:/run/httpd.pid <!> [2345] httpd -f $HTTPD_ARGS -- HTTP daemon
@@ -0,0 +1 @@
service [2345] inetd -f -- Internet super server
@@ -0,0 +1,16 @@
# cat syslogd.conf
# BusyBox syslogd + klogd
# Use <pid/syslogd> as barrier for other system tasks and service that
# rely on modules, firmware, and device nodes to be ready.
# We want syslogd to always run, never be stopped, regardless of runlevel
# so it can send to any remote syslog server the user has set up.
service if:udevd nowarn env:-/etc/default/syslogd <!run/udevadm:5/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
service if:mdev nowarn env:-/etc/default/syslogd <!run/coldplug/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
service if:mdevd nowarn env:-/etc/default/syslogd <!run/coldplug/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
# klogd depends on syslogd, but BusyBox syslogd doesn't create a PID file to sync with
service [S0123456789] <!pid/syslogd> klogd -n -- Kernel log daemon
@@ -0,0 +1,5 @@
# cat telnetd.conf
# Note: telnetd also runs from inetd, see /etc/inetd.conf
#service [2345] <!> :23 telnetd -F -p 23 -- Telnet daemon on port 23
#service [2345] <!> :2323 telnetd -F -p 2323 -- Telnet daemon on port 2323
service [2345] <!> telnetd -F -- Telnet daemon
+1
View File
@@ -0,0 +1 @@
../available/dropbear.conf
+1
View File
@@ -0,0 +1 @@
../available/getty.conf
+1
View File
@@ -0,0 +1 @@
../available/hostname.conf
+1
View File
@@ -0,0 +1 @@
../available/inetd.conf
+1
View File
@@ -0,0 +1 @@
../available/syslogd.conf
+1
View File
@@ -0,0 +1 @@
../available/telnetd.conf
+1
View File
@@ -0,0 +1 @@
/dev/sda / ext4 rw,relatime 0 0
+1
View File
@@ -0,0 +1 @@
21 stream tcp nowait root /sbin/ftpd /sbin/ftpd -S -A -w /srv/ftp
+1
View File
@@ -0,0 +1 @@
\n \r (\l)
+5 -2
View File
@@ -13,8 +13,8 @@ mnt
opt
proc
root
run
srv
srv/ftp
sys
usr
usr/bin
@@ -26,4 +26,7 @@ usr/share
usr/src
var
var/log
var/run
var/lib
var/lib/misc
run
tmp
-287
View File
@@ -1,287 +0,0 @@
#!/bin/sh
########## #### ####
########## #### ####
## ## ## ## ## ##
## ## ## ## ## ##
########## ## ## ## - PACKAGE MANAGER FOR SIMPLE LINUX
########## ## ## ## - AUTHOR -- TOLA MIRONCENKO
## ## ##
## ## ##
## ## ##
## ## ##
#----- colors -------
Green='\033[0;32m'
Color_off='\033[0m'
Red='\033[0;31m'
Bred='\033[1;31m'
Yellow='\033[1;33m'
White='\033[0;37m'
Bwhite='\033[1;37m'
#--------------------
#---------------- variables --------------------------
rootdir=/
repofile=$rootdir/etc/pm/repo
packagesqueryfile=$rootdir/usr/share/pm/query
reposquerydir=$rootdir/usr/share/pm/repos
cachedpkgdir=$rootdir/var/cache/pm/pkg
installedpackagesdir=$rootdir/usr/share/pm/packages
#-----------------------------------------------------
#---------------- check root priveleges function ------------------------
checkroot() {
if [[ $(id -u) != 0 ]]; then
printf "$Yellow**$Bred error:$Color_off you must be root\n"
exit 1
fi
}
checkroot
#------------------------------------------------------------------------
#----------------- add(install) package function ------------------------
add() {
if [[ "$1" == "" ]]; then
help
exit 0
fi
for i in $*; do
if [[ "$i" == "add" ]]; then
continue
fi
done
for i in $*; do
if [[ "$i" == "add" ]]; then
continue
fi
down $i
done
for i in $*; do
if [[ "$i" == "add" ]]; then
continue
fi
unpack $cachedpkgdir/$i.pkg.gz
done
}
#------------------------------------------------------------------------
#-------------------- download package without install function ---------
down() {
if [[ ! $1 ]]; then
help
exit 0
fi
servers=$(cat $repofile)
for i in $servers; do
serverdir=$(echo $i | sed -e "/http:\/\//s///")
repoquery=$(cat $reposquerydir/$serverdir/query | sed -e '/.pkg.gz/s///')
for j in $repoquery; do
if [[ $j == $1 ]]; then
if [ ! -f $cachedpkgdir/$1.pkg.gz ]; then
printf "$Yellow**$Color_off Downloading $Yellow$serverdir: $Bwhite$j\n$Color_off"
wget $i/$1.pkg.gz -P $cachedpkgdir
if [[ "$?" == "0" ]]; then
printf "$Yellow**$Green successful downloaded $1\n$Color_off"
return
else
printf "$Yellow**$Red error:$Color_off can't download package\n"
exit 1
fi
else
printf "$Yellow**$Green successful downloaded $1\n$Color_off"
return
fi
# exit 0
fi
done
done
printf "$Yellow**$Red error:$Color_off can't find package $1\n"
exit 1
}
#------------------------------------------------------------------------
#-------------------- unpack local package archive ----------------------
unpack() {
packagename=$(echo $1 | sed -e "/.gz/s///")
packagename=${packagename#*pkg/}
printf "$Yellow**$Green Installing ${packagename%.pkg*}\n$Color_off"
if [[ "$(cat $packagesqueryfile | grep ${packagename%.pkg*})" != "" ]]; then
printf "$Yellow**$Color_off Package already installed:$Yellow reinstalling\n"
fi
tar -xvf $1 -C $rootdir/tmp &> /dev/null
cd $rootdir/tmp/$packagename
mkdir $installedpackagesdir/$packagename &> /dev/null
mv -v list $installedpackagesdir/$packagename &> /dev/null
cp -rv ./* $rootdir &> /dev/null
if [ -f $rootdir/tmp/$packagename/post_install ]; then
sh -c $rootdir/tmp/$packagename/post_install
fi
if [[ "$(cat $packagesqueryfile | grep ${packagename%.pkg*})" == "" ]]; then
echo ${packagename%.pkg*} >> $packagesqueryfile
fi
rm -rv $rootdir/tmp/$packagename &> /dev/null
printf "$Yellow**$Green Installed ${packagename%.pkg*} successful\n$Color_off"
}
#------------------------------------------------------------------------
#------------------ delete package function -----------------------------
del() {
printf "$Yellow**$Green deleting\n$Color_off"
for i in $*; do
if [[ "$i" == "del" ]]; then
continue
fi
printf "$Yellow**$Green deleting $i\n$Color_off"
if [ ! -f $installedpackagesdir/$i.pkg/list ]; then
printf "$Yellow**$Bred error:$Color_off package not installed\n"
exit 0
fi
rm -v $rootdir/$(cat $installedpackagesdir/$i.pkg/list) &> /dev/null
rm -rv $installedpackagesdir/$i.pkg &> /dev/null
sed -i "/$i/d" $packagesqueryfile
printf "$Yellow**$Green delete $i successful\n$Color_off"
done
}
#------------------------------------------------------------------------
#------------------- list files in package function ---------------------
list() {
if [[ "$1" == "" ]]; then
help
exit 0
fi
if [[ "$(cat $packagesqueryfile | grep $1)" == "" ]]; then
printf "$Yellow**$Bred error:$Color_off package is not installed\n"
exit 1
fi
filelist=$(cat $installedpackagesdir/$1.pkg/list)
for i in $filelist; do
printf "$Yellow$1: $Bwhite$i$Color_off\n"
done
}
#------------------------------------------------------------------------
#------------------- show installed packages function -------------------
query() {
packagesquery=$(cat $packagesqueryfile)
if [[ "$packagesquery" == "" ]]; then
printf "$Yellow**$Bwhite No installed packages\n"
exit 0
fi
printf "$packagesquery\n"
}
#------------------------------------------------------------------------
#--------------------- show help function -------------------------------
help() {
printf "
$Yellow**$Green pm usage$Color_off :
$Bwhite pm add [package name] - download and install from repository
pm unpack [/path/to/package/archive] - unpack(install) from local package archive
pm down [package name] - download package from repository without install
pm del [package name] - delete package
pm list [package name] - list files in package
pm search [package name] - search package in repository
pm query - show installed packages
pm help - this help message
pm clear - clear all package archives from cached packages directory
pm sync - synchronize repository
$Yellow**$Green examples$Color_off :
$Bwhite pm add dnsmasq
pm unpack ./dnsmasq.pkg.gz
pm down dnsmasq
pm search dnsmasq
pm help
pm clear
pm sync
pm del dnsmasq
pm list dnsmasq
pm query
\n$Color_off"
}
#------------------------------------------------------------------------
#------------------- sync repo function ---------------------------------
sync() {
servers=$(cat $repofile)
for i in $servers; do
serverdir=$(echo $i | sed -e "/http:\//s///")
mkdir $reposquerydir/$serverdir &> /dev/null
wget $i/query -O $reposquerydir/$serverdir/query &> /dev/null
done
}
#------------------------------------------------------------------------
#----------------- search package in repo function ----------------------
search() {
servers=$(cat $repofile)
if [[ ! $1 ]]; then
for i in $servers; do
serverdir=$(echo $i | sed -e "/http:\/\//s///")
repoquery=$(cat $reposquerydir/$serverdir/query | sed -e '/.pkg.gz/s///')
for j in $repoquery; do
printf "$Yellow$serverdir: $Bwhite$j\n$Color_off"
done
done
exit 0
fi
for i in $servers; do
serverdir=$(echo $i | sed -e "/http:\/\//s///")
repoquery=$(cat $reposquerydir/$serverdir/query | sed -e '/.pkg.gz/s///')
for j in $repoquery; do
if [[ $j == $1 ]]; then
printf "$Yellow$serverdir: $Bwhite$j\n$Color_off"
exit 0
fi
done
done
printf "$Yellow**$Red error:$Color_off can't find package ($1)\n"
}
#------------------------------------------------------------------------
#------------------- clear cached packages directory --------------------
clear() {
rm -v $cachedpkgdir/*
}
#------------------------------------------------------------------------
case "$1" in
add)
add $*
;;
down)
down $2
;;
unpack)
unpack $2
;;
del)
del $*
;;
list)
list $2
;;
query)
query
;;
help)
help
;;
sync)
sync
;;
search)
search $2
;;
clear)
clear
;;
*)
help
;;
esac
-174
View File
@@ -1,174 +0,0 @@
#!/bin/sh
########## ##########
########## ##########
## ## ##
## ##
## ## - RC BOOT SCRIPTS MANAGER FOR SIMPLE LINUX
## ## - AUTHOR -- TOLA MIRONCENKO
## ##
## ##
## ##########
## ##########
#----- colors -------
Green='\033[0;32m'
Color_off='\033[0m'
Red='\033[0;31m'
Bred='\033[1;31m'
Yellow='\033[1;33m'
White='\033[0;37m'
Bwhite='\033[1;37m'
#--------------------
rootdir=/
#------------------------ add to boot function --------------
add() {
resultlink=$(cat /usr/share/rc/ordernumbers | grep $1)
if [ -f /etc/init.d/$1 ] && [ $resultlink ]; then
cd /etc/rc.d
ln -sv ../init.d/$1 "$resultlink" &> /dev/null
echo "added $1 to init."
else
help
fi
}
#------------------------------------------------------------
#--------------------- del from boot function ---------------
del() {
filetoremove=$(find /etc/rc.d/ | grep $1 )
if [ $filetoremove ]; then
rm -v $filetoremove &> /dev/null
echo "removed $1 from init."
else
help
fi
}
#------------------------------------------------------------
#---------------------- start daemon function ---------------
start() {
if [ -f /etc/init.d/$1 ]; then
/etc/init.d/$1 start
else
help
fi
}
#------------------------------------------------------------
#---------------- stop daemon function ----------------------
stop() {
if [ -f /etc/init.d/$1 ]; then
/etc/init.d/$1 stop
else
help
fi
}
#------------------------------------------------------------
#------------- restart daemon function ----------------------
restart() {
if [ -f /etc/init.d/$1 ]; then
/etc/init.d/$1 restart
else
help
fi
}
#------------------------------------------------------------
#------------------ list services ---------------------------
list() {
ls --color $rootdir/etc/init.d
}
#------------------------------------------------------------
#------------------ list enabled services -------------------
bootlist() {
ls --color $rootdir/etc/rc.d
}
#------------------------------------------------------------
#------------------ service status --------------------------
status() {
if [[ "$1" == "" ]]; then
help
exit 0
fi
if [[ "$(ls /etc/init.d | grep $1)" == "" ]]; then
printf "$Yellow**$Bred error:$Color_off can't find service /etc/init.d/$1\n"
exit 1
fi
printf "$Yellow**$Green $1$Color_off\n"
rcdservice=$(ls $rootdir/etc/rc.d | grep $1 2> /dev/null)
if [[ "$rcdservice" == "" ]]; then
printf "Loaded:$Yellow unloaded$Color_off (/etc/rc.d)\n"
else
printf "Loaded:$Green loaded$Color_off (/etc/rc.d/$rcdservice)\n"
fi
servicepid=$(ls $rootdir/var/run | grep $1)
if [[ "$servicepid" == "" ]]; then
printf "Active: deactive (${Yellow}deactive$Color_off)\n"
else
printf "Active: active (${Green}running$Color_off); pid (/var/run/$servicepid)\n"
fi
}
#------------------------------------------------------------
#-------------- print help function -------------------------
help() {
echo "
** rc usage:
rc add [init.d script name] - add service on boot
rc del [init.d script name] - delete service from boot
rc start [init.d script name] - start service
rc stop [init.d script name] - stop service
rc restart [init.d script name] - restart service
rc list - list all services
rc bootlist - list enabled services
rc status [init.d script name] - check service status
examples:
rc add httpd
rc del httpd
rc start httpd
rc stop httpd
rc restart httpd
rc list
rc bootlist
"
}
#------------------------------------------------------------
command="$1"
case ${command} in
add)
add $2 $3
;;
del)
del $2
;;
start)
start $2
;;
stop)
stop $2
;;
restart)
restart $2
;;
list)
list
;;
bootlist)
bootlist
;;
status)
status $2
;;
*)
help
;;
esac
-64
View File
@@ -1,64 +0,0 @@
#!/bin/sh
. /etc/init.d/funcs/colors.sh
[ -z "$1" ] && printf "$URED** ERROR: should be called from udhcpc\n$RESET" && exit 1
RESOLF_CONF="/etc/resolv.conf"
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
# return 0 if root is mounted on a network filesystem
root_if_nfs() {
grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts
}
have_bin_ip=0
if [ -x /bin/ip ]; then
have_bin_ip=1
fi
case "$1" in
deconfig)
if ! rootfs_is_nfs; then
if [ $have_bin_ip -eq 1 ]; then
ip a flush dev $interface
ip l set dev $interface up
else
/sbin/ifconfig $interface 0.0.0.0
fi
fi
;;
renew|bound)
if [ $have_bin_ip -eq 1 ]; then
ip a add dev $interface local $ip/$mask $BROADCAST
else
/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
fi
if [ -n "$router" ]; then
if ! root_if_nfs; then
if [ $have_bin_ip -eq 1 ]; then
while ip r del default 2>/dev/null; do
:
done
else
while route del default gw 0.0.0.0 dev $interface 2>/dev/null; do
:
done
fi
fi
metric=0
for i in $router; do
if [ $have_bin_ip -eq 1 ]; then
ip r add default via $i metric $((metric++))
else
route add default gw $i dev $interface metric $((metric++)) 2>/dev/null
fi
done
fi
echo -n > $RESOLF_CONF
[ -n "$domain" ] && echo search $domain >> $RESOLF_CONF
for i in $dns; do
echo adding dns $i
echo nameserver $i >> $RESOLF_CONF
done
;;
esac
exit 0
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
. ./scripts/kernel.sh
ko8821au() {
pkgname=8821au
pkgver=20210708
gitsrc=https://github.com/morrownr/8821au-20210708.git
printf "$GREEN** Building and installing $pkgname\n$RESET"
[ ! -d $build/$pkgname ] && mkdir $build/$pkgname
cd $build/$pkgname
git clone $gitsrc
cd ${pkgname}-${pkgver}
make ARCH=$ARCH CROSS_COMPILE=${CROSS_COMPILE}- KSRC=${build}/kernel/linux-${KERNEL_VERSION} modules ${makeflags}
check $? "Build ${pkgname}"
mkdir -pv $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
gzip -9 $rootfspath/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/8821au.ko
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/build ] && rm -rv $rootfspath/usr/lib/modules/$KERNEL_VERSION/build
}
-17
View File
@@ -1,17 +0,0 @@
#!/bin/sh
#------------- grub rescue ---------------------------
grub_rescue() {
grub-mkrescue -o $build/simplelinux.iso $rootfspath &>> $fulllogfile
check $? "Build grub-rescue"
cp -v $build/simplelinux.iso $out/ &>> $fulllogfile
}
#-----------------------------------------------------
#------------------ rootfs archive -------------------
rootfs_archive() {
cd $rootfspath
tar -czvf $out/simplelinux-$version-rootfs.tar.gz . &>> $fulllogfile
check $? "Build rootfs archive"
}
#-----------------------------------------------------
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
bash() {
pkgname=bash
pkgver=5.2.32
printf "$GREEN** Building and installing bash\n$RESET"
mkdir $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
check $? "Extract ${pkgname}"
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--disable-readline \
--host=$CROSS_COMPILE
check $? "Configure bash"
make $makeflags
check $? "Build bash"
cp -v bash $rootfspath/usr/bin
$CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/bash
check $? "Installing to rootfs bash"
}
+56 -68
View File
@@ -1,84 +1,72 @@
#!/bin/sh
#!/bin/bash
#--------------------------------- Logo ---------------------------------------------------------------------
# ####### ## ## ## ####### ## ####### | ## ## ## ## ## ## ## ## |
# ## ## #### #### ## ## ## ## | ## ## ## ## ## ## ## ## |
# ## ## ## ## ## ## ## ## | ## ## ## ## ## ## ## |
# ## ## ## ## ## ## ## ## ## | ## ## ### ## ## ## ## |
# ####### ## ## ## ####### ## ####### | ## ## #### ## ## ## ## |
# ## ## ## ## ## ## ## | ## ## ## #### ## ## ## |
# ## ## ## ## ## ## ## | ## ## ## ### ## ## ## ## |
# ## ## ## ## ## ## ## | ## ## ## ## ## ## ## ## |
# ####### ## ## ## ## ####### ####### | ####### ## ## ## ######## ## ## |
#------------------------------------------------------------------------------------------------------------
#--- import rolors ---
. ./scripts/colors.sh
#---------------------
#--- import funcs ----
. ./scripts/funcs.sh
#---------------------
#----- import config variables ----------
. ./scripts/config.sh
#----------------------------------------
#----- import busybox build funcs ---
. ./scripts/busybox.sh
#------------------------------------
#-------- check root ------------------
check_root
#--------------------------------------
mkdir $out &>> $fulllogfile
mkdir $root/.log &>> $fulllogfile
#--------- import Download sources funcs ------
. ./scripts/funcs.sh
. ./scripts/download.sh
#----------------------------------------------
#---------- import build kernel funcs ---------
. ./scripts/busybox.sh
. ./scripts/kernel.sh
#----------------------------------------------
#-------- import build glibc funcs ------------
. ./scripts/glibc.sh
#----------------------------------------------
#-------- import build initramfs funcs --------
. ./scripts/initramfs.sh
#----------------------------------------------
#----------- import build rootfs funcs --------
. ./scripts/rootfs.sh
#----------------------------------------------
. ./scripts/uboot.sh
. ./scripts/sdroot.sh
. ./scripts/dropbear.sh
. ./scripts/libnl.sh
. ./scripts/iw.sh
. ./scripts/hostapd.sh
. ./scripts/openssl.sh
. ./scripts/iptables.sh
. ./scripts/8821au_ko.sh
. ./scripts/finit_init.sh
#----------- import cleaning funcs -------------
. ./scripts/clean.sh
#-----------------------------------------------
#-------- import build artifacts funcs ---------
. ./scripts/artifacts.sh
#-----------------------------------------------
buid_image() {
clean
download_sources
rootfs
grub_rescue
rootfs_archive
}
case "$1" in
clean)
clean
;;
case $1 in
build)
buid_image
if [ ! -d downloads ]; then
download_sources
fi
rootfs
if [ "$IMAGE_USABLE_ENABLE" = "y" ]; then
sdroot_usable
fi
if [ "$IMAGE_ENABLE" = "y" ]; then
sdroot
fi
;;
dropbear)
dropbear
;;
download)
download_sources
;;
rootfs)
libnl)
libnl
;;
iw)
iw
;;
hostapd)
hostapd
;;
openssl)
openssl
;;
iptables)
iptables
;;
finit_init)
finit_init
;;
ko8821au)
ko8821au
;;
sdroot_usable)
if [ ! -d downloads ]; then
download_sources
fi
rootfs
sdroot_usable
;;
initramfs)
initramfs
;;
*)
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
Regular → Executable
+24 -36
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#--- import rolors ---
. ./scripts/colors.sh
@@ -6,54 +6,42 @@
#--- import funcs ----
. ./scripts/funcs.sh
#---------------------
. ./scripts/config.sh
#----------- Building busybox for rootfs ----------
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
rm -rv $build/busybox # &>> $fulllogfile
mkdir -pv $build/busybox # &>> $fulllogfile
cd $build/busybox
tar -xvjf $root/downloads/busybox-1.36.1.tar.bz2 # &>> $fulllogfile
cd busybox-1.36.1
cp -v $root/busybox/busybox-rootfs-config .config # &>> $fulllogfile
printf "$UGREEN** Configuring busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
check $? "Build busybox all logs in .log"
}
#--------------------------------------------------
#------------------ Building busybox for initramfs ----------------
busybox_initramfs() {
printf "$UGREEN** Building busybox for initramfs\n$RESET"
rm -r $build/busybox &>> $fulllogfile
rm -r $build/busybox # &>> $fulllogfile
mkdir -p $build/busybox
cd $build/busybox
tar -xjf $root/downloads/busybox-1.36.1.tar.bz2
check $? "Extract busybox"
cd busybox-1.36.1
cp $root/busybox/busybox-initramfs-config .config
export PATH=$PATH:/opt/toolchains/x86_64-buildroot-linux-uclibc-gcc/bin
# export PATH=$PATH:/opt/toolchains/x86_64-buildroot-linux-uclibc-gcc/bin
printf "$UGREEN** Configuring busybox\n$RESET"
make CROSS_COMPILE=x86_64-buildroot-linux-uclibc- oldconfig &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make CROSS_COMPILE=x86_64-buildroot-linux-uclibc- $makeflags &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
check $? "Build busybox all logs in .log"
}
#------------------------------------------------------------------
#----------- Building busybox for rootfs ----------
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
rm -rv $build/busybox &>> $fulllogfile
mkdir -v $build/busybox &>> $fulllogfile
cd $build/busybox
tar -xvjf $root/downloads/busybox-1.36.1.tar.bz2 &>> $fulllogfile
cd busybox-1.36.1
cp -v $root/busybox/busybox-rootfs-config .config &>> $fulllogfile
printf "$UGREEN** Configuring busybox\n$RESET"
make oldconfig &>> $fulllogfile
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make $makeflags &>> $fulllogfile
check $? "Build busybox all logs in .log"
}
#--------------------------------------------------
#------------------ Building busybox ------------------------------
busybox() {
case "$1" in
initramfs)
busybox_initramfs
;;
rootfs)
busybox_rootfs
;;
esac
}
#------------------------------------------------------------------
+29
View File
@@ -0,0 +1,29 @@
pkgname=busybox
pkgver=1.36.1
pkgrel=1
source="https://busybox.net/downloads/busybox-1.36.1.tar.bz2"
deps="uClibc-ng-1.0.50-1"
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.bz2
cd -
export srcdir=$srcdir/$pkgname-$pkgver
cp -v busybox.config $srcdir/.config
make -C $srcdir ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
}
build() {
make -C $srcdir ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- -j$(nproc)
$CROSS_COMPILE-strip $srcdir/busybox
}
package() {
[ ! -d $pkgdir/usr/bin ] && mkdir -p $pkgdir/usr/bin
cp -v $srcdir/busybox $pkgdir/usr/bin
for i in $(cat busybox_list); do ln -sv $pkgname $pkgdir/usr/bin/$i; done
}
+1231
View File
File diff suppressed because it is too large Load Diff
+371
View File
@@ -0,0 +1,371 @@
[
[[
acpid
add-shell
addgroup
adduser
adjtimex
ar
arch
arp
arping
ascii
awk
base32
base64
basename
bc
beep
blkdiscard
blkid
blockdev
bootchartd
brctl
bunzip2
bzcat
bzip2
cal
cat
chat
chattr
chgrp
chmod
chown
chpasswd
chroot
chrt
chvt
cksum
clear
cmp
comm
conspy
cp
cpio
crc32
crond
crontab
cryptpw
cttyhack
cut
date
dc
dd
deallocvt
delgroup
deluser
depmod
devmem
df
dhcprelay
diff
dirname
dmesg
dnsd
dnsdomainname
dos2unix
du
dumpkmap
dumpleases
echo
ed
egrep
eject
env
ether-wake
expand
expr
factor
fakeidentd
fallocate
false
fatattr
fbset
fbsplash
fdflush
fdformat
fdisk
fgconsole
fgrep
find
findfs
flock
fold
free
freeramdisk
fsck
fsfreeze
fstrim
fsync
ftpd
ftpget
ftpput
fuser
getopt
getty
grep
groups
gunzip
gzip
halt
hd
hdparm
head
hexdump
hexedit
hostid
hostname
httpd
hwclock
i2cdetect
i2cdump
i2cget
i2cset
i2ctransfer
id
ifconfig
ifdown
ifenslave
ifplugd
ifup
inetd
init
insmod
install
ionice
iostat
ip
ipaddr
ipcalc
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
kbd_mode
kill
killall
killall5
klogd
last
less
link
linux32
linux64
linuxrc
ln
loadfont
loadkmap
logger
login
logname
logread
losetup
lpd
lpq
lpr
ls
lsattr
lsmod
lsof
lspci
lsscsi
lsusb
lzcat
lzma
lzop
lzopcat
makedevs
man
md5sum
mdev
mesg
microcom
mim
mkdir
mkdosfs
mke2fs
mkfifo
mkfs.ext2
mkfs.vfat
mknod
mkpasswd
mkswap
mktemp
modinfo
modprobe
more
mount
mountpoint
mpstat
mt
mv
nameif
nanddump
nandwrite
nbd-client
nc
netstat
nice
nl
nmeter
nohup
nologin
nproc
nsenter
nslookup
ntpd
od
openvt
partprobe
passwd
paste
patch
pgrep
pidof
ping
ping6
pivot_root
pkill
pmap
poweroff
powertop
printenv
printf
ps
pscan
pstree
pwd
pwdx
raidautorun
rdate
rdev
readahead
readlink
readprofile
realpath
reboot
remove-shell
renice
reset
resize
rev
rfkill
rm
rmdir
rmmod
route
rtcwake
run-parts
rx
script
scriptreplay
sed
seedrng
seq
setarch
setconsole
setfattr
setfont
setkeycodes
setlogcons
setpriv
setserial
setsid
sh
sha1sum
sha256sum
sha3sum
sha512sum
showkey
shred
shuf
slattach
sleep
smemcap
sort
split
ssl_client
stat
strings
stty
su
sulogin
sum
swapoff
swapon
switch_root
sync
sysctl
syslogd
tac
tail
tar
taskset
tcpsvd
tee
telnet
telnetd
test
tftp
tftpd
time
timeout
top
touch
tr
traceroute
traceroute6
tree
true
truncate
ts
tsort
tty
ttysize
tunctl
tune2fs
udhcpc
udhcpc6
udhcpd
udpsvd
uevent
umount
uname
uncompress
unexpand
uniq
unix2dos
unlink
unlzma
unlzop
unshare
unxz
unzip
uptime
users
usleep
uudecode
uuencode
vconfig
vi
vlock
volname
w
wall
watch
watchdog
wc
wget
who
whoami
whois
xargs
xxd
xz
xzcat
yes
zcat
zcip
Regular → Executable
+7 -13
View File
@@ -1,14 +1,8 @@
#!/bin/sh
#!/bin/bash
#---------- Cleaning build and out directory ---------
clean() {
printf "$UGREEN** Cleaning build and out directories\n$RESET"
rm -rv $root/.log/* &>> $fulllogfile
mkdir -p $root/.log
rm -rv $out &>> $fulllogfile
mkdir -p $out
rm -rv $build &>> $fulllogfile
mkdir -p $build
printf "$UGREEN** SUCCESS: Cleaning build and out directories\n$RESET"
} # clean
#-----------------------------------------------------
if [ -d out ]; then
rm -rv out;
fi
if [ -d build ]; then
rm -rv build
fi
Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#--- reset colors ---
RESET="\033[0m"
Regular → Executable
+51 -17
View File
@@ -1,20 +1,54 @@
#!/bin/sh
#!/bin/bash
#------------ config ------------------
version=0.0.1 # script version
root=$(pwd) # root build directory
disk="sdz" # disk to write install image
distro_name="Simple" # distro name
distro_desc="Simple linux distro" # distro desctiption
distro_codename="zero_zero_one" # distro codename
hyperv_support="false" # hyperv support for kernel image
out=$root/out # output directory
build=$root/build # build directory
sourcesfilename=sources.txt # sources file for downloading
initramfsfile=$root/initramfs/initramfs.txt # file to created directories for initramfs
initramfspath=$build/initramfs # initramfs build directory
rootfsfile=$root/rootfs/rootfs.txt # file to created directories for rootfs
rootfspath=$build/rootfs # rootfs build directory
fulllogfile=$root/.log/fulllog.log # file for full build logs
makeflags=-j$(grep -c processor /proc/cpuinfo) # makeflags
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export PKG_CONFIG_PATH=/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/pkgconfig
export version=0.0.1 # script version
export root=$(pwd) # root build directory
# disk="sdz" # disk to write install image
export distro_name="Simple Linux" # distro name
export distro_pretty_name="Simple Linux"
export distro_id="simple"
export distro_build_id="rolling"
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
# hyperv_support="false" # hyperv support for kernel image
export BOARD_NAME=orangepi_pc
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
export initramfsfile=$root/initramfs/initramfs.txt # file to created directories for initramfs
export initramfspath=$build/initramfs # initramfs build directory
export rootfsfile=$root/rootfs/rootfs.txt # file to created directories for rootfs
export rootfspath=$build/rootfs # rootfs build directory
export fulllogfile=$root/.log/fulllog.log # file for full build logs
export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
export sdroot=$out/sdroot
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
export KERNEL_VERSION=6.13.3
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export UBOOT_DEFCONFIG=orangepi_pc_defconfig
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=y
export SFTP_SERVER_ENABLE=y
export CURL_ENABLE=n
export BASH_ENABLE=n
export GIT_ENABLE=n
export GITEA_ENABLE=n
export LIBNL_ENABLE=n
export IW_ENABLE=n
export WIRELES_TOOLS_ENABLE=n
export WPA_SUPPLICANT_ENABLE=n
export HOSTAPD_ENABLE=n
export OPENSSL_ENABLE=n
export DNSMASQ_ENABLE=n
export IPTABLES_ENABLE=n
export KO8821AU_ENABLE=n
export FINIT_INIT_ENABLE=y
#--------------------------------------
+41
View File
@@ -0,0 +1,41 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
. ./scripts/zlib.sh
curl() {
if [ ! -d $build/zlib ]; then
zlib
fi
pkgname=curl
pkgver=8.9.1
printf "$GREEN** Building and installing curl\n$RESET"
mkdir $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
check $? "Extract ${pkgname}"
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--without-ssl \
--disable-static \
--enable-shared \
--with-zlib=$rootfspath
check $? "Configure ${pkgname}"
make $makeflags
check $? "Build ${pkgname}"
make DESTDIR=$rootfspath install
rm \
-rv \
$rootfspath/usr/include \
$rootfspath/usr/share/aclocal \
$rootfspath/usr/share/man \
$rootfspath/usr/lib/*.a \
$rootfspath/usr/lib/*.la \
$rootfspath/usr/lib/pkgconfig
$CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/curl $rootfspath/usr/lib/libcurl.so.4.8.0
check $? "Installing to rootfs ${pkgname}"
}
+43
View File
@@ -0,0 +1,43 @@
pkgname=curl
pkgver=8.9.1
pkgrel=1
source="https://curl.se/download/curl-8.9.1.tar.xz"
deps="uClibc-ng-1.0.50-1 openssl-3.4.1-1 zlib-1.3.1-1"
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.xz
cd -
export srcdir=$srcdir/$pkgname-$pkgver
cd $srcdir
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--with-openssl \
--disable-static \
--enable-shared \
--with-zlib=$(pwd)/../../../../../build/rootfs/usr
cd -
}
build() {
make -C $srcdir -j$(nproc)
}
package() {
[ ! -d $pkgdir/usr/lib ] && mkdir -pv $pkgdir/usr/lib
make -C $srcdir DESTDIR=$pkgdir install
rm -rv $pkgdir/usr/include \
$pkgdir/usr/share \
$pkgdir/usr/lib/*.a \
$pkgdir/usr/lib/*.la \
$pkgdir/usr/lib/pkgconfig
${CROSS_COMPILE}-strip \
--strip-unneeded \
$pkgdir/usr/bin/curl \
$pkgdir/usr/lib/libcurl.so.4.8.0
}
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
dnsmasq() {
pkgname=dnsmasq
pkgver=2.90
printf "$GREEN** Building and installing $pkgname\n$RESET"
[ ! -d $build/$pkgname ] && mkdir $build/$pkgname
cd $build/$pkgname
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
cd ${pkgname}-${pkgver}
make CC=${CROSS_COMPILE}-gcc ${makeflags}
check $? "Build ${pkgname}"
${CROSS_COMPILE}-strip src/$pkgname
check $? "Stripping ${pkgname} binary"
cp -v src/$pkgname $rootfspath/usr/bin/$pkgname
check $? "Install to rootfs ${pkgname}"
}
+30
View File
@@ -0,0 +1,30 @@
pkgname=dnsmasq
pkgver=2.90
pkgrel=1
source="https://thekelleys.org.uk/dnsmasq/dnsmasq-2.90.tar.xz"
deps="uClibc-ng-1.0.50-1"
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.xz
cd -
export srcdir=$srcdir/$pkgname-$pkgver
}
build() {
cd $srcdir
make CC=${CROSS_COMPILE}-gcc -j$(nproc)
$CROSS_COMPILE-strip $srcdir/src/$pkgname
cd -
}
package() {
[ ! -d $pkgdir/usr/bin ] && mkdir -p $pkgdir/usr/bin
[ ! -d $pkgdir/usr/lib/init/services ] && mkdir -pv $pkgdir/usr/lib/init/services
cp -v $srcdir/src/$pkgname $pkgdir/usr/bin
cp -v dnsmasq.service $pkgdir/usr/lib/init/services/dnsmasq.service
}
+31
View File
@@ -0,0 +1,31 @@
#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
start() {
notify "Starting dnsmasq"
/usr/bin/dnsmasq --user=dnsmasq --pid-file=/var/run/dnsmasq.pid
check $? "start dnsmasq"
return $?
}
stop() {
notify "Stopping dnsmasq"
kill $(cat /var/run/dnsmasq.pid)
check $? "stop dnsmasq"
rm /var/run/dnsmasq.pid &> /dev/null
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
;;
esac
return $?
Regular → Executable
+4 -1
View File
@@ -1,4 +1,7 @@
#!/bin/sh
#!/bin/bash
. ./scripts/funcs.sh
. ./scripts/config.sh
#------------ Download needed sources from sources.txt ------------------
download_sources() {
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
. ./scripts/zlib.sh
dropbear() {
if [ ! -d $build/zlib ]; then
zlib
fi
printf "$GREEN** Building and installing dropbear\n$RESET"
mkdir $build/dropbear
cd $build/dropbear
tar -xvf $root/downloads/DROPBEAR_2024.86.tar.gz
check $? "Extract dropbear"
cd dropbear-DROPBEAR_2024.86
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--with-zlib=$build/rootfs/usr
# CC=${CROSS_COMPILE}gcc ./configure --prefix=/usr --shared
check $? "Configure dropbear"
make $makeflags
check $? "Build dropbear"
make DESTDIR=$rootfspath install
check $? "Installing to rootfs dropbear"
[ "$SFTP_SERVER_ENABLE" = "n" ] && rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/*
mkdir -pv $build/rootfs/etc/dropbear
# check $? "Installing to rootfs zlib"
}
+36
View File
@@ -0,0 +1,36 @@
pkgname=dropbear
pkgver=2025.87
pkgrel=1
source="https://dropbear.nl/mirror/releases/dropbear-2025.87.tar.bz2"
deps="uClibc-ng-1.0.50-1 zlib-1.3.1-1"
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.bz2
cd -
export srcdir=$srcdir/$pkgname-$pkgver
cd $srcdir
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--with-zlib=../../../../../build/rootfs/usr
cd -
}
build() {
make -C $srcdir -j$(nproc)
}
package() {
[ ! -d $pkgdir/usr ] && mkdir -pv $pkgdir/usr/bin && ln -sv bin $pkgdir/usr/sbin && mkdir -pv $pkgdir/usr/lib/init/services
make -C $srcdir DESTDIR=$pkgdir install
${CROSS_COMPILE}-strip --strip-unneeded $pkgdir/usr/bin/*
cp -v dropbear.service $pkgdir/usr/lib/init/services
mkdir -pv $pkgdir/etc/{dropbear,default}
cp -v dropbear.default $pkgdir/etc/default/dropbear
rm -rv $pkgdir/usr/share
}
+3
View File
@@ -0,0 +1,3 @@
DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS="-E -R -B -m"
ENABLE_ROOT_LOGIN="yes"
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
. /etc/default/dropbear
ENABLE_ROOT_LOGIN_ARGS=""
if [ "$ENABLE_ROOT_LOGIN" = "no" ]; then
ENABLE_ROOT_LOGIN_ARGS="-w -g"
fi
start() {
notify "Starting dropbear"
/usr/bin/dropbear -P /var/run/dropbear.pid $DROPBEAR_EXTRA_ARGS $ENABLE_ROOT_LOGIN_ARGS -p $DROPBEAR_PORT &> /var/log/dropbear.log
check $? "start dropbear"
return $?
}
stop() {
notify "Stopping dropbear"
kill $(cat /var/run/dropbear.pid)
check $? "stop dropbear"
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
;;
esac
return $?
+72
View File
@@ -0,0 +1,72 @@
#!/bin/sh
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
finit_init() {
printf "$GREEN** Building and installing finit\n$RESET"
mkdir -pv $build/finit
cd $build/finit
git clone https://github.com/troglobit/libite
check $? "Download libite"
git clone https://github.com/troglobit/libuev
check $? "Download libuev"
git clone https://github.com/troglobit/finit
check $? "Download finit"
cd libite
./autogen.sh
check $? "Autogen libite"
./configure --host=$CROSS_COMPILE --prefix=/usr
check $? "Configure libite"
make $makeflags
check $? "Build libite"
make DESTDIR=$rootfspath install
check $? "Installing to rootfs libite"
cd ../libuev
./autogen.sh
check $? "Autogen libuev"
./configure --host=$CROSS_COMPILE --prefix=/usr
check $? "Configure libuev"
make $makeflags
check $? "Build libuev"
make DESTDIR=$rootfspath install
check $? "Installing to rootfs libuev"
cd ../finit
./autogen.sh
check $? "Autogen finit"
./configure \
--host=$CROSS_COMPILE \
--prefix=/usr \
--exec-prefix= \
--sysconfdir=/etc \
--localstatedir=/var \
--with-watchdog \
--with-keventd \
--with-sulogin
check $? "Configure finit"
make $makeflags
check $? "Build finit"
make DESTDIR=$rootfspath install
check $? "Installing to rootfs finit"
find $rootfspath -name "*.la" -delete
find $rootfspath -name "*.a" -delete
rm -rv \
$rootfspath/usr/lib/pkgconfig \
$rootfspath/lib/pkgconfig \
$rootfspath/usr/include \
$rootfspath/usr/share/man \
$rootfspath/usr/share/doc
$CROSS_COMPILE-strip --strip-unneeded \
$rootfspath/usr/lib/libite.so.5.4.0 \
$rootfspath/usr/lib/libuev.so.3.0.0 \
$rootfspath/sbin/finit \
$rootfspath/sbin/initctl \
$rootfspath/libexec/finit/* \
$rootfspath/lib/libsystemd.so.0.0.0 \
$rootfspath/lib/finit/plugins/*
}

Some files were not shown because too many files have changed in this diff Show More