aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/u-boot/u-boot-2009.11/at91/vG20/0001-u-boot-Add-new-board-VulcanoG20-into-Makefile.patch
blob: f70319157281f7a888a72dbbd3e8b61341d7d718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 93807a8da1720e41dfc65c934d4cb2ecf5c7acce Mon Sep 17 00:00:00 2001
From: mlafauci <mlafauci@metodo2.it>
Date: Mon, 3 Oct 2011 22:47:54 +0200
Subject: [PATCH 1/3] u-boot: Add new board VulcanoG20 into Makefile

---
 Makefile |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 2db49be..c9179ed 100644
--- a/Makefile
+++ b/Makefile
@@ -2845,6 +2845,25 @@ at91sam9rlek_config	:	unconfig
	fi;
	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91

+vulcano-g20_nandflash_config \
+vulcano-g20_dataflash_cs0_config \
+vulcano-g20_dataflash_cs1_config \
+vulcano-g20_config	:	unconfig
+	@mkdir -p $(obj)include
+	@echo "#define CONFIG_VULCANO_G20 1"	>>$(obj)include/config.h ;
+	@if [ "$(findstring _nandflash,$@)" ] ; then \
+		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
+		$(XECHO) "... with environment variable in NAND FLASH" ; \
+	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
+		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
+		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
+	else \
+		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
+		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
+	fi;
+	@$(MKCONFIG) -a vulcano-g20 arm arm926ejs vulcano-g20 metodo2 at91
+
+
 CPU9G20_128M_config \
 CPU9G20_config \
 CPU9260_128M_config \
--
1.7.0.4