#!/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 # disk="sdz" # disk to write install image export distro_name="Simple" # distro name 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_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 #--------------------------------------