public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] ixp/npe: Move conditional compilation to Makefile
@ 2009-01-22  6:07 Jean-Christophe PLAGNIOL-VILLARD
  2009-01-22  6:07 ` [U-Boot] [PATCH 1/5] ixp: " Jean-Christophe PLAGNIOL-VILLARD
  2009-01-22  7:46 ` [U-Boot] [PATCH 0/5] ixp/npe: Move conditional compilation to Makefile Wolfgang Denk
  0 siblings, 2 replies; 34+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-01-22  6:07 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

diff --git a/cpu/ixp/npe/Makefile b/cpu/ixp/npe/Makefile
index 25117d7..aa664a1 100644
--- a/cpu/ixp/npe/Makefile
+++ b/cpu/ixp/npe/Makefile
@@ -29,7 +29,7 @@ LOCAL_CFLAGS  += -I$(TOPDIR)/cpu/ixp/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB
 CFLAGS  += $(LOCAL_CFLAGS)
 HOST_CFLAGS  += $(LOCAL_CFLAGS)
 
-COBJS := npe.o \
+COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \
 	miiphy.o \
 	IxOsalBufferMgt.o \
 	IxOsalIoMem.o \
@@ -80,16 +80,16 @@ COBJS := npe.o \
 	IxNpeMhUnsolicitedCbMgr.o
 
 ifndef CONFIG_IXP4XX_NPE_EXT_UCODE_BASE
-COBJS += IxNpeMicrocode.o
+COBJS-$(CONFIG_IXP4XX_NPE) += IxNpeMicrocode.o
 endif
 
-SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
-START	:= $(addprefix $(obj),$(START))
+SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS-y))
+SOBJS	:= $(addprefix $(obj),$(SOBJS))
 
 all:	$(LIB)
 
-$(LIB):	$(OBJS)
+$(LIB):	$(obj).depend $(OBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
diff --git a/cpu/ixp/npe/npe.c b/cpu/ixp/npe/npe.c
index bd77fed..03e3bf7 100644
--- a/cpu/ixp/npe/npe.c
+++ b/cpu/ixp/npe/npe.c
@@ -44,8 +44,6 @@
 
 #include <npe.h>
 
-#ifdef CONFIG_IXP4XX_NPE
-
 static IxQMgrDispatcherFuncPtr qDispatcherFunc = NULL;
 static int npe_exists[NPE_NUM_PORTS];
 static int npe_used[NPE_NUM_PORTS];
@@ -690,5 +688,3 @@ int npe_initialize(bd_t * bis)
 
 	return 1;
 }
-
-#endif /* CONFIG_IXP4XX_NPE */
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2009-01-31  9:14 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22  6:07 [U-Boot] [PATCH 0/5] ixp/npe: Move conditional compilation to Makefile Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  6:07 ` [U-Boot] [PATCH 1/5] ixp: " Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  6:07   ` [U-Boot] [PATCH 2/5] ixp: move pci drivers to drivers/pci Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  6:07     ` [U-Boot] [PATCH 3/5] ixp: move pci init in arm/board instead of cpu Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  6:07       ` [U-Boot] [PATCH 4/5] ixp: move serial to drivers/serial Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  6:07         ` [U-Boot] [PATCH 5/5] ixp: add big endian LDFLAGS Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  7:51       ` [U-Boot] [PATCH 3/5] ixp: move pci init in arm/board instead of cpu Wolfgang Denk
2009-01-22  8:15         ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-22 10:41           ` Wolfgang Denk
2009-01-22 11:11             ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-31  9:14       ` [U-Boot] [PATCH V2] " Jean-Christophe PLAGNIOL-VILLARD
2009-01-22  7:48     ` [U-Boot] [PATCH 2/5] ixp: move pci drivers to drivers/pci Wolfgang Denk
2009-01-22  7:46 ` [U-Boot] [PATCH 0/5] ixp/npe: Move conditional compilation to Makefile Wolfgang Denk
2009-01-22  8:19   ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-22 10:48     ` Wolfgang Denk
2009-01-22 11:09       ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-22 11:32         ` Wolfgang Denk
2009-01-22 11:25           ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-22 16:35             ` Wolfgang Denk
2009-01-22 16:55               ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 11:33                 ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 11:34                   ` [U-Boot] [PATCH 1/2] ixp: remove the option to include the Microsode Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 11:34                     ` [U-Boot] [PATCH 2/2] ixp: add missing os define Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 14:24                       ` Wolfgang Denk
2009-01-30 14:56                         ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 15:20                           ` Wolfgang Denk
2009-01-30 15:24                             ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 15:28                               ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 16:40                               ` Wolfgang Denk
2009-01-30 16:49                                 ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 14:24                     ` [U-Boot] [PATCH 1/2] ixp: remove the option to include the Microsode Wolfgang Denk
2009-01-30 21:17                     ` [U-Boot] [PATCH 1/2 V2] " Jean-Christophe PLAGNIOL-VILLARD
2009-01-30 21:54                       ` Mike Frysinger
2009-01-30 14:23                   ` [U-Boot] [PATCH 0/5] ixp/npe: Move conditional compilation to Makefile Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox