#!/bin/bash

if [ x"$1" == "xu" ] ;then
	cd longan/brandy/brandy-2.0
	./build.sh -p sun50iw10p1
	cd -
fi

if [ x"$1" == "xk" ] ;then
	cd longan
	./build.sh
	cd -
	
	cd android
	. ./build/envsetup.sh
	lunch ceres_c3-userdebug
	extract-bsp && pack
	cd -
fi

if [ x"$1" == "xa" ] ;then	
	cd android
	. ./build/envsetup.sh
	lunch ceres_c3-userdebug
	extract-bsp
	make BUILD_NUMBER=ido-a133 -j10 && pack
#	make -j10 && pack -v
	cd -
fi

if [ x"$1" == "xp" ] ;then
	cd android
	. ./build/envsetup.sh
	lunch ceres_c3-userdebug
	extract-bsp && pack
	cd -
fi

