#!/bin/bash folder=$(mktemp -d) auxfolder=$(mktemp -d) cd $folder wget http://buildroot.uclibc.org/downloads/buildroot-2015.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 svn export http://svn.lliurex.net/trusty/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 echo -e "\n\n\n\n**************************************" echo "output folder $folder" echo -e "\n\n\n\n**************************************"