patch-2.2.11 linux/arch/mips/baget/Makefile
Next file: linux/arch/mips/baget/baget.c
Previous file: linux/arch/mips/arc/tree.c
Back to the patch index
Back to the overall index
- Lines: 76
- Date:
Mon Aug 9 12:04:38 1999
- Orig file:
v2.2.10/linux/arch/mips/baget/Makefile
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.2.10/linux/arch/mips/baget/Makefile linux/arch/mips/baget/Makefile
@@ -0,0 +1,75 @@
+# $Id$
+#
+# Makefile for the Baget specific kernel interface routines
+# under Linux.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+# Note 2! The CFLAGS definitions are now in the main makefile...
+
+all: baget.a
+
+image: ../../../vmlinux
+ cp -f $< $@
+
+O_TARGET := baget.a
+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 $@ $<
+
+
+##################### Baget Loader stuff ########################
+
+dummy.c:
+ touch $@
+
+image.bin: image
+ $(OBJCOPY) -O binary $< $@
+
+ramdisk.bin:
+ echo "Dummy ramdisk used. Provide your own if needed !" > $@
+
+dummy.o: dummy.c image.bin ramdisk.bin
+ $(CC) $(CFLAGS) -c -o $@ $<
+ $(OBJCOPY) --add-section=.vmlinux=image.bin \
+ --add-section=.ramdisk=ramdisk.bin $@
+
+balo.h: image
+ $(NM) $< | awk ' \
+ BEGIN { printf "/* DO NOT EDIT THIS FILE */\n" } \
+ /kernel_entry/ { printf "#define START 0x%s\n", $$1 } \
+ /balo_ramdisk_base/ { printf "#define RAMDISK_BASE 0x%s\n", $$1 } \
+ /balo_ramdisk_size/ { printf "#define RAMDISK_SIZE 0x%s\n", $$1 } \
+ ' > $@
+balo.o: balo.c balo.h
+ $(CC) $(CFLAGS) -c $<
+
+balo_supp.o: balo_supp.S
+ $(CC) $(CFLAGS) -c $<
+
+balo: balo.o dummy.o balo_supp.o print.o
+ $(LD) $(LDFLAGS) -T ld.script.balo -o $@ $^
+
+clean:
+ rm -f balo.o balo.h dummy.o dummy.c hello.o image.bin image balo_supp.o
+ rm -f $(O_OBJS) $(O_TARGET)
+
+include $(TOPDIR)/Rules.make
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)