diff options
Diffstat (limited to 'arch/mips/baget/Makefile')
-rw-r--r-- | arch/mips/baget/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/mips/baget/Makefile b/arch/mips/baget/Makefile index 2980761be..6bddfad4b 100644 --- a/arch/mips/baget/Makefile +++ b/arch/mips/baget/Makefile @@ -15,8 +15,22 @@ image: ../../../vmlinux cp -f $< $@ O_TARGET := baget.a -O_OBJS := baget.o print.o setup.o irq.o time.o \ - bagetIRQ.o vacserial.o reset.o +O_OBJS := baget.o print.o setup.o time.o irq.o bagetIRQ.o reset.o wbflush.o + +ifeq ($(CONFIG_SERIAL),y) + OX_OBJS += vacserial.o +else + ifeq ($(CONFIG_SERIAL),m) + MX_OBJS += vacserial.o + endif +endif +ifeq ($(CONFIG_VAC_RTC),y) + OX_OBJS += vacrtc.o +else + ifeq ($(CONFIG_VAC_RTC),m) + MX_OBJS += vacrtc.o + endif +endif bagetIRQ.o : bagetIRQ.S $(CC) $(CFLAGS) -c -o $@ $< |