First working rel

This commit is contained in:
Giulio 2020-05-21 16:52:16 +02:00
parent 11ea9972b6
commit d3a6647f81

9
build.sh Normal file → Executable file
View File

@ -4,17 +4,18 @@
# apt install -t build-essential libncurses-dev bison flex libssl-dev libelf-dev # apt install -t build-essential libncurses-dev bison flex libssl-dev libelf-dev
echo "[+] Starting build script..." echo "[+] Starting build script..."
mkdir target/overlay/var/www/html mkdir -p target/overlay/var/www/html
echo "[+] Cloning buildroot" echo "[+] Cloning buildroot"
git clone https://github.com/buildroot/buildroot.git target git clone https://github.com/buildroot/buildroot.git target/buildroot
echo "[+] Building the keygen" echo "[+] Building the keygen"
echo "[+] Adding customization files" echo "[+] Adding customization files"
cp -R buildroot/* target/buildroot # copy buildroot configs cp -R buildroot/* target/buildroot # copy buildroot configs
cp -R conf/* target/ovarlay # copy target system config files cp -R conf/* target/overlay # copy target system config files
cp -R webpanel/* target/overlay/var/www/html # copy the webpanel cp -R webpanel/* target/overlay/var/www/html # copy the webpanel
cp -R update/* target/ovarlay #copy the update script and certificate cp -R update/* target/overlay #copy the update script and certificate
echo "[+] Building the image" echo "[+] Building the image"
N=`grep -c '^processor' /proc/cpuinfo` N=`grep -c '^processor' /proc/cpuinfo`
cd target/buildroot cd target/buildroot
make pcengines_apu2_defconfig
make -j$N make -j$N