]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
[MIPS] cpu/mips/Makefile: Split [CS]OBJS onto separate lines
authorShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Sat, 7 Jun 2008 11:51:59 +0000 (20:51 +0900)
committerShinya Kuribayashi <shinya.kuribayashi@necel.com>
Sat, 7 Jun 2008 11:51:59 +0000 (20:51 +0900)
Also get rid of some #ifdefs in *.c files.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
cpu/mips/Makefile
cpu/mips/asc_serial.c
cpu/mips/au1x00_eth.c
cpu/mips/au1x00_serial.c
cpu/mips/au1x00_usb_ohci.c

index 92dcc167e8b6b3fc2134592da23daa588d180ba4..50917812393377a288a2d73439174f9ad726e126 100644 (file)
@@ -25,13 +25,16 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(CPU).a
 
-START  = start.o
-COBJS  = asc_serial.o au1x00_serial.o au1x00_eth.o au1x00_usb_ohci.o \
-         cpu.o interrupts.o incaip_clock.o
-SOBJS  = incaip_wdt.o cache.o
+SOBJS-y        = cache.o
+COBJS-y        = cpu.o interrupts.o
 
-SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+SOBJS-$(CONFIG_INCA_IP)        += incaip_wdt.o
+COBJS-$(CONFIG_INCA_IP)        += asc_serial.o incaip_clock.o
+COBJS-$(CONFIG_PURPLE) += asc_serial.o
+COBJS-$(CONFIG_SOC_AU1X00) += au1x00_eth.o au1x00_serial.o au1x00_usb_ohci.o
+
+SRCS   := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 START  := $(addprefix $(obj),$(START))
 
 all:   $(obj).depend $(START) $(LIB)
index 3498b61e8be024b89ed55ed32b8dd1d4604dce29..be686c2ae8ddbb5e0fc0594f0998cf3b19289da1 100644 (file)
@@ -4,8 +4,6 @@
 
 #include <config.h>
 
-#if defined(CONFIG_PURPLE) || defined(CONFIG_INCA_IP)
-
 #ifdef CONFIG_PURPLE
 #define        serial_init     asc_serial_init
 #define        serial_putc     asc_serial_putc
@@ -368,4 +366,3 @@ int serial_tstc (void)
 
     return res;
 }
-#endif /* CONFIG_PURPLE || CONFIG_INCA_IP */
index aeb96622812944072bd7c9da7234041cc30455b8..d0cf8e0c1bdfa68e31245580a11362293dc7fedf 100644 (file)
@@ -23,8 +23,6 @@
  */
 #include <config.h>
 
-#ifdef CONFIG_SOC_AU1X00
-
 #if defined(CFG_DISCOVER_PHY)
 #error "PHY not supported yet"
 /* We just assume that we are running 100FD for now */
@@ -307,5 +305,3 @@ int au1x00_enet_initialize(bd_t *bis){
 
        return 1;
 }
-
-#endif /* CONFIG_SOC_AU1X00 */
index ec10ac03708fc30b52171292ed999b98c4b5a99e..63097940acc81db2e759614fc0cf42c324392328 100644 (file)
@@ -26,9 +26,6 @@
  */
 
 #include <config.h>
-
-#ifdef CONFIG_SOC_AU1X00
-
 #include <common.h>
 #include <asm/au1x00.h>
 
@@ -132,4 +129,3 @@ int serial_tstc (void)
        }
        return 0;
 }
-#endif /* CONFIG_SOC_AU1X00 */
index e03b1255ecb52483065ec831a097a7f063dca69d..1ca8aafbbc9ccd3b01cf629e9a8290ed99e01ba2 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <config.h>
 
-#if defined(CONFIG_SOC_AU1X00) && defined(CONFIG_USB_OHCI)
+#ifdef CONFIG_USB_OHCI
 
 /* #include <pci.h> no PCI on the AU1x00 */