#!/bin/bash folder=$(mktemp -d) auxfolder=$(mktemp -d) cd $folder wget https://buildroot.org/downloads/buildroot-2016.05.tar.gz mkdir targetbuildroot tar -xf buildroot* -C targetbuildroot mv targetbuildroot/*/* targetbuildroot/ cd targetbuildroot cat /usr/share/rpi-buildroot/rpi1 /usr/share/rpi-buildroot/packagelist > configs/llxrpi1_defconfig cat /usr/share/rpi-buildroot/rpi2 /usr/share/rpi-buildroot/packagelist > configs/llxrpi2_defconfig cat /usr/share/rpi-buildroot/rpi3 /usr/share/rpi-buildroot/packagelist > configs/llxrpi3_defconfig svn export http://svn.lliurex.net/xenial/lliurex-rpi-packages/trunk/fuentes/ ${auxfolder}1 cp -r ${auxfolder}1/* package/ echo 'menu "Lliurex"' >> package/Config.in for p in $(ls "${auxfolder}1"); do echo -e '\tsource "package/'${p}'/Config.in"' >> package/Config.in done echo 'endmenu' >> package/Config.in make llxrpi1_defconfig make mv output/images ../rpi1 make clean rm .config make llxrpi2_defconfig make mv output/images ../rpi2 make llxrpi3_defconfig make mv output/images ../rpi3 echo -e "\n\n\n\n**************************************" echo "output folder $folder" echo -e "\n\n\n\n**************************************"