Skip to content
Snippets Groups Projects
Commit 012d5bab authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD
Browse files

ixp: Move conditional compilation to Makefile


Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
parent f693f501
No related branches found
No related tags found
No related merge requests found
...@@ -26,10 +26,16 @@ include $(TOPDIR)/config.mk ...@@ -26,10 +26,16 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a LIB = $(obj)lib$(CPU).a
START = start.o START = start.o
COBJS = serial.o interrupts.o cpu.o timer.o pci.o COBJS-y += cpu.o
COBJS-y += interrupts.o
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) COBJS-$(CONFIG_PCI) += pci.o
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) COBJS-y += serial.o
ifndef CONFIG_USE_IRQ
COBJS-y += timer.o
endif
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
START := $(addprefix $(obj),$(START)) START := $(addprefix $(obj),$(START))
all: $(obj).depend $(START) $(LIB) all: $(obj).depend $(START) $(LIB)
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
#include <common.h> #include <common.h>
#ifdef CONFIG_PCI
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/io.h> #include <asm/io.h>
#include <pci.h> #include <pci.h>
...@@ -572,4 +569,3 @@ pci_dev_t pci_find_devices (struct pci_device_id * ids, int devNo) ...@@ -572,4 +569,3 @@ pci_dev_t pci_find_devices (struct pci_device_id * ids, int devNo)
} }
return -1; return -1;
} }
#endif /* CONFIG_PCI */
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <common.h> #include <common.h>
#include <asm/arch/ixp425.h> #include <asm/arch/ixp425.h>
#ifndef CONFIG_USE_IRQ
ulong get_timer (ulong base) ulong get_timer (ulong base)
{ {
return get_timer_masked () - base; return get_timer_masked () - base;
...@@ -80,4 +79,3 @@ ulong get_timer_masked (void) ...@@ -80,4 +79,3 @@ ulong get_timer_masked (void)
} }
return (reload_constant - current); return (reload_constant - current);
} }
#endif /* #ifndef CONFIG_USE_IRQ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment