patch-2.3.99-pre9 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: 59
- Date:
Sat May 13 08:29:14 2000
- Orig file:
v2.3.99-pre8/linux/arch/mips/baget/Makefile
- Orig date:
Sat Feb 26 22:31:39 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/arch/mips/baget/Makefile linux/arch/mips/baget/Makefile
@@ -11,11 +11,8 @@
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
+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
@@ -38,8 +35,8 @@
##################### Baget Loader stuff ########################
-dummy.c:
- touch $@
+image: ../../../vmlinux
+ cp -f $< $@
image.bin: image
$(OBJCOPY) -O binary $< $@
@@ -47,6 +44,9 @@
ramdisk.bin:
echo "Dummy ramdisk used. Provide your own if needed !" > $@
+dummy.c:
+ touch $@
+
dummy.o: dummy.c image.bin ramdisk.bin
$(CC) $(CFLAGS) -c -o $@ $<
$(OBJCOPY) --add-section=.vmlinux=image.bin \
@@ -54,10 +54,11 @@
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 } \
+ BEGIN { printf "/* DO NOT EDIT THIS FILE */\n" } \
+ /_ftext/ { printf "#define LOADADDR 0x%s\n", $$1 } \
+ /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 $<
@@ -69,7 +70,6 @@
$(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)
+ rm -f balo balo.h dummy.c image image.bin
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)