updated variables and added defconfigs
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#------------ config ------------------
|
||||||
|
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/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 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 ZLIB_ENABLE="true"
|
||||||
|
export DROPBEAR_ENABLE="true"
|
||||||
|
export IMAGE_USABLE_ENABLE="true"
|
||||||
|
export SFTP_SERVER_ENABLE="true"
|
||||||
|
export CURL_ENABLE="false"
|
||||||
|
export BASH_ENABLE="false"
|
||||||
|
export GIT_ENABLE="false"
|
||||||
|
export GITEA_ENABLE="false"
|
||||||
|
export LIBNL_ENABLE="true"
|
||||||
|
export IW_ENABLE="true"
|
||||||
|
export WIRELES_TOOLS_ENABLE="true"
|
||||||
|
export WPA_SUPPLICANT_ENABLE="true"
|
||||||
|
export HOSTAPD_ENABLE="true"
|
||||||
|
export OPENSSL_ENABLE="true"
|
||||||
|
export DNSMASQ_ENABLE="true"
|
||||||
|
export IPTABLES_ENABLE="true"
|
||||||
|
export KO8821AU_ENABLE="true"
|
||||||
|
#--------------------------------------
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#------------ config ------------------
|
||||||
|
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/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 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 ZLIB_ENABLE="true"
|
||||||
|
export DROPBEAR_ENABLE="true"
|
||||||
|
export IMAGE_USABLE_ENABLE="true"
|
||||||
|
export SFTP_SERVER_ENABLE="true"
|
||||||
|
export CURL_ENABLE="false"
|
||||||
|
export BASH_ENABLE="false"
|
||||||
|
export GIT_ENABLE="false"
|
||||||
|
export GITEA_ENABLE="false"
|
||||||
|
export LIBNL_ENABLE="true"
|
||||||
|
export IW_ENABLE="true"
|
||||||
|
export WIRELES_TOOLS_ENABLE="true"
|
||||||
|
export WPA_SUPPLICANT_ENABLE="true"
|
||||||
|
export HOSTAPD_ENABLE="true"
|
||||||
|
export OPENSSL_ENABLE="true"
|
||||||
|
export DNSMASQ_ENABLE="true"
|
||||||
|
export IPTABLES_ENABLE="true"
|
||||||
|
export KO8821AU_ENABLE="true"
|
||||||
|
#--------------------------------------
|
||||||
@@ -23,7 +23,7 @@ case $1 in
|
|||||||
download_sources
|
download_sources
|
||||||
fi
|
fi
|
||||||
rootfs
|
rootfs
|
||||||
if [ "$image_usable_enable" = "true" ]; then
|
if [ "$IMAGE_USABLE_ENABLE" = "true" ]; then
|
||||||
sdroot_usable
|
sdroot_usable
|
||||||
fi
|
fi
|
||||||
sdroot
|
sdroot
|
||||||
|
|||||||
+15
-15
@@ -24,19 +24,19 @@ export sdroot=$out/sdroot
|
|||||||
|
|
||||||
export ZLIB_ENABLE="true"
|
export ZLIB_ENABLE="true"
|
||||||
export DROPBEAR_ENABLE="true"
|
export DROPBEAR_ENABLE="true"
|
||||||
export image_usable_enable="true"
|
export IMAGE_USABLE_ENABLE="true"
|
||||||
export sftp_server_enable="true"
|
export SFTP_SERVER_ENABLE="true"
|
||||||
export curl_enable="false"
|
export CURL_ENABLE="false"
|
||||||
export bash_enable="false"
|
export BASH_ENABLE="false"
|
||||||
export git_enable="false"
|
export GIT_ENABLE="false"
|
||||||
export gitea_enable="false"
|
export GITEA_ENABLE="false"
|
||||||
export libnl_enable="true"
|
export LIBNL_ENABLE="true"
|
||||||
export iw_enable="true"
|
export IW_ENABLE="true"
|
||||||
export wireles_tools_enable="true"
|
export WIRELES_TOOLS_ENABLE="true"
|
||||||
export wpa_supplicant_enable="true"
|
export WPA_SUPPLICANT_ENABLE="true"
|
||||||
export hostapd_enable="true"
|
export HOSTAPD_ENABLE="true"
|
||||||
export openssl_enable="true"
|
export OPENSSL_ENABLE="true"
|
||||||
export dnsmasq_enable="true"
|
export DNSMASQ_ENABLE="true"
|
||||||
export iptables_enable="true"
|
export IPTABLES_ENABLE="true"
|
||||||
export ko8821au_enable="true"
|
export KO8821AU_ENABLE="true"
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
|
|||||||
+12
-12
@@ -53,19 +53,19 @@ rootfs() {
|
|||||||
kernel
|
kernel
|
||||||
kernel_modules
|
kernel_modules
|
||||||
[ "$ZLIB_ENABLE" = "true" ] && zlib
|
[ "$ZLIB_ENABLE" = "true" ] && zlib
|
||||||
[ "$openssl_enable" = "true" ] && openssl
|
[ "$OPENSSL_ENABLE" = "true" ] && openssl
|
||||||
[ "$dnsmasq_enable" = "true" ] && dnsmasq
|
[ "$DNSMASQ_ENABLE" = "true" ] && dnsmasq
|
||||||
[ "$DROPBEAR_ENABLE" = "true" ] && dropbear
|
[ "$DROPBEAR_ENABLE" = "true" ] && dropbear
|
||||||
[ "$sftp_server_enable" = "true" ] && sftp_server
|
[ "$SFTP_SERVER_ENABLE" = "true" ] && sftp_server
|
||||||
[ "$curl_enable" = "true" ] && curl
|
[ "$CURL_ENABLE" = "true" ] && curl
|
||||||
[ "$bash_enable" = "true" ] && bash
|
[ "$BASH_ENABLE" = "true" ] && bash
|
||||||
[ "$git_enable" = "true" ] && git_build
|
[ "$GIT_ENABLE" = "true" ] && git_build
|
||||||
[ "$gitea_enable" = "true" ] && gitea
|
[ "$GITEA_ENABLE" = "true" ] && gitea
|
||||||
[ "$libnl_enable" = "true" ] && libnl
|
[ "$LIBNL_ENABLE" = "true" ] && libnl
|
||||||
[ "$iw_enable" = "true" ] && iw
|
[ "$IW_ENABLE" = "true" ] && iw
|
||||||
[ "$hostapd_enable" = "true" ] && hostapd
|
[ "$HOSTAPD_ENABLE" = "true" ] && hostapd
|
||||||
[ "$iptables_enable" = "true" ] && iptables
|
[ "$IPTABLES_ENABLE" = "true" ] && iptables
|
||||||
[ "$ko8821au_enable" = "true" ] && ko8821au
|
[ "$KO8821AU_ENABLE" = "true" ] && 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
|
||||||
|
|||||||
Reference in New Issue
Block a user