summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-26 22:04:09 +0000
committerwdenk <wdenk>2003-06-26 22:04:09 +0000
commit993cad9364c6b87ae429d1ed1130d8153f6f027e (patch)
tree43faaa643caeaacec331db78850a5a4834bad354 /Makefile
parentb783edaee8252bfdba3f7b3fd29519a81ce71e42 (diff)
downloadu-boot-imx-993cad9364c6b87ae429d1ed1130d8153f6f027e.zip
u-boot-imx-993cad9364c6b87ae429d1ed1130d8153f6f027e.tar.gz
u-boot-imx-993cad9364c6b87ae429d1ed1130d8153f6f027e.tar.bz2
* Patches by Robert Schwebel, 26 Jun 2003:
- logdl - csb226 - innokom * Patch by Pantelis Antoniou, 25 Jun 2003: update NetVia with V2 board support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3b4d78f..af14042 100644
--- a/Makefile
+++ b/Makefile
@@ -302,8 +302,20 @@ MHPC_config: unconfig
MVS1_config : unconfig
@./mkconfig $(@:_config=) ppc mpc8xx mvs1
+xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
+
+NETVIA_V2_config \
NETVIA_config: unconfig
- @./mkconfig $(@:_config=) ppc mpc8xx netvia
+ @ >include/config.h
+ @[ -z "$(findstring NETVIA_config,$@)" ] || \
+ { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
+ echo "... Version 1" ; \
+ }
+ @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
+ { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
+ echo "... Version 2" ; \
+ }
+ @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
NX823_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8xx nx823