From d3a6647f81246f113e26ed577084d5c9f0ce30b9 Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 21 May 2020 16:52:16 +0200 Subject: [PATCH] First working rel --- build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 6835e49..3a433cc --- a/build.sh +++ b/build.sh @@ -4,17 +4,18 @@ # apt install -t build-essential libncurses-dev bison flex libssl-dev libelf-dev echo "[+] Starting build script..." -mkdir target/overlay/var/www/html +mkdir -p target/overlay/var/www/html 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 "[+] Adding customization files" 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 update/* target/ovarlay #copy the update script and certificate +cp -R update/* target/overlay #copy the update script and certificate echo "[+] Building the image" N=`grep -c '^processor' /proc/cpuinfo` cd target/buildroot +make pcengines_apu2_defconfig make -j$N