From 993cad9364c6b87ae429d1ed1130d8153f6f027e Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 26 Jun 2003 22:04:09 +0000 Subject: * Patches by Robert Schwebel, 26 Jun 2003: - logdl - csb226 - innokom * Patch by Pantelis Antoniou, 25 Jun 2003: update NetVia with V2 board support --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3b4d78fde5..af14042926 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 -- cgit v1.2.1