#!/bin/bash
GFAWRKDIR=`pwd`
cd ..
rm -rf buildroot
git clone git://git.buildroot.net/buildroot
cd buildroot
##git checkout 63a20d5dfebe83e2b2bd683dc78ebdf787dff100 -b gfawrk
git checkout 048ec8ae4cf67ec88bef3dec9b2ef354e8f3c85a -b gfawrk
patch -p1 < ../GfA/GfA-buildroot-changes.patch
chmod a+x *.sh
cp ../GfA/configs/* ./configs
git add .
git commit -m "GfA wrk changes and setup"
make  BR2_EXTERNAL=../GfA Display001_defconfig
cd $GFAWRKDIR
