From eaa9bd4511b69b6097726b68957fa7da5a44323f Mon Sep 17 00:00:00 2001
From: Benoit Rat <benoit@sevensols.com>
Date: Fri, 11 May 2012 12:36:25 +0200
Subject: [PATCH 13/19] add simple script to compile for DF and NF

---
 build.sh |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 build.sh

diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..a9711d9
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+showhelp()
+{
+	echo "Usage: $0 [options]"
+	echo "options:"
+	echo "		--help: show this little help"
+	echo "		--df: compile only for dataflash"
+	echo "		--nf: compile only for nandflash"
+}
+
+
+
+case "$1" in
+	--help) showhelp;; 
+	--nf) 	yes "" | make at91sam9g45nf_defconfig > /dev/null; make;;
+	--df) 	yes "" | make at91sam9g45df_defconfig > /dev/null; make;;
+	*) 	yes "" | make at91sam9g45df_defconfig > /dev/null; make; yes "" | make at91sam9g45nf_defconfig > /dev/null; make;;
+esac
+
+
-- 
1.7.9.5

