From 79fa88f3ede051ca860667d5397e6cdc7e74a6d0 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 7 Jun 2004 23:46:25 +0000 Subject: Patch by Pantelis Antoniou, 5 May 2004: - Intracom board update. - Add Codec POST. --- Makefile | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 407f5c4cfd..453195675e 100644 --- a/Makefile +++ b/Makefile @@ -417,19 +417,50 @@ NETPHONE_config: unconfig } @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone -xtract_NETTA = $(subst _ISDN,,$(subst _config,,$1)) +xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) +NETTA_ISDN_6412_SWAPHOOK_config \ +NETTA_ISDN_SWAPHOOK_config \ +NETTA_6412_SWAPHOOK_config \ +NETTA_SWAPHOOK_config \ +NETTA_ISDN_6412_config \ NETTA_ISDN_config \ +NETTA_6412_config \ NETTA_config: unconfig @ >include/config.h - @[ -z "$(findstring NETTA_config,$@)" ] || \ + @[ -z "$(findstring ISDN_,$@)" ] || \ + { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \ + } + @[ -n "$(findstring ISDN_,$@)" ] || \ { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \ } - @[ -z "$(findstring NETTA_ISDN_config,$@)" ] || \ - { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \ + @[ -z "$(findstring 6412_,$@)" ] || \ + { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \ + } + @[ -n "$(findstring 6412_,$@)" ] || \ + { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \ + } + @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ + { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \ + } + @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ + { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \ } @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta +xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) + +NETTA2_V2_config \ +NETTA2_config: unconfig + @ >include/config.h + @[ -z "$(findstring NETTA2_config,$@)" ] || \ + { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \ + } + @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ + { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \ + } + @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 + NX823_config: unconfig @./mkconfig $(@:_config=) ppc mpc8xx nx823 -- cgit v1.2.3