#!/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 # 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 #--------------------------------------