#!/bin/bash
PSGWRKDIR=`pwd`
cd ..
rm -rf buildroot
git clone git://git.buildroot.net/buildroot
cd buildroot
#git checkout 63a20d5dfebe83e2b2bd683dc78ebdf787dff100 -b psgwrk
git checkout master -b psgwrk
#==== Patches
patch -p1 < ../PSG/001-PSG_add_CrossCompile_sh.patch
#
chmod a+x *.sh
cp ../PSG/configs/* ./configs
git add .
git commit -m "PSG wrk changes and setup"
make  BR2_EXTERNAL=../PSG iot2000_defconfig
cd $PSGWRKDIR
