Updated build script for tgr

This commit is contained in:
Giulio 2020-09-08 15:45:53 +02:00
parent 0258b7cfb7
commit 430efee467

View File

@ -25,7 +25,7 @@ git clone https://github.com/buildroot/buildroot.git target/buildroot
echo "[+] Adding customization files" echo "[+] Adding customization files"
cp -R buildroot/* target/buildroot # copy buildroot configs cp -R buildroot/* target/buildroot # copy buildroot configs
sed -i "s/###ROOTPASSWORD###/$password/g" target/buildroot/configs/pcengines_apu2_defconfig sed -i "s/###ROOTPASSWORD###/$password/g" target/buildroot/configs/tiesse_tgr_defconfig
cp -R conf/* target/overlay # 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/update.sh target/overlay #copy the update script and certificate cp -R update/update.sh target/overlay #copy the update script and certificate
@ -62,5 +62,5 @@ echo $password > target/keys/rootpassword
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 tiesse_tgr_defconfig
make -j$N make -j$N