diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /arch/ppc/boot/Makefile | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'arch/ppc/boot/Makefile')
-rw-r--r-- | arch/ppc/boot/Makefile | 63 |
1 files changed, 47 insertions, 16 deletions
diff --git a/arch/ppc/boot/Makefile b/arch/ppc/boot/Makefile index 1b5056bea..7b4ed71f6 100644 --- a/arch/ppc/boot/Makefile +++ b/arch/ppc/boot/Makefile @@ -20,30 +20,61 @@ .S.o: $(CC) -D__ASSEMBLY__ -traditional -c -o $*.o $< -OBJECTS = head.o main.o -all: linux.boot mkboot +ZLINKFLAGS = -T ../ld.script -Ttext 0x00800000 +GZIP_FLAGS = -9 -linux.boot: $(TOPDIR)/vmlinux mkboot - rsh charon /bin/rm -f /usr/tftpboot/vmlinux - /bin/rm -f /usr/tftpboot/vmlinux - ./mkboot $(TOPDIR)/vmlinux /usr/tftpboot/vmlinux - rcp /usr/tftpboot/vmlinux charon:/usr/tftpboot/vmlinux - sync +SYSTEM = $(TOPDIR)/vmlinux -tImage: mk_type41 $(TOPDIR)/vmlinux mkboot - ./mkboot $(TOPDIR)/vmlinux vmlinux - mk_type41 vmlinux tImage - rm vmlinux +OBJECTS = head.o inflate.o unzip.o misc.o vreset.o + +CFLAGS = -O2 -DSTDC_HEADERS -I$(TOPDIR)/include + +all: $(TOPDIR)/zImage mkboot : cortstrip.c - $(HOSTCC) -o mkboot cortstrip.c + $(HOSTCC) $(CFLAGSINC) -Wl,-static -o mkboot cortstrip.c mk_type41: mk_type41.c - gcc -o mk_type41 mk_type41.c + $(HOSTCC) $(CFLAGSINC) -Wl,-static -o mk_type41 mk_type41.c + +floppy: zImage $(TOPDIR)/vmlinux + dd if=$(TOPDIR)/zImage of=/dev/fd0H1440 bs=64b + +netboot : $(TOPDIR)/vmlinux mkboot + mkboot $(TOPDIR)/vmlinux $(TOPDIR)/netboot +# rcp $(TOPDIR)/netboot charon:/usr/tftpboot/vmlinux + +znetboot : mkboot zvmlinux + mkboot zvmlinux $(TOPDIR)/znetboot + rcp $(TOPDIR)/znetboot charon:/usr/tftpboot/vmlinux + +zImage: mk_type41 zvmlinux +# make znetboot ourselves since using the normal dep +# will rcp it -- Cort + mkboot zvmlinux $(TOPDIR)/znetboot + mk_type41 $(TOPDIR)/znetboot $(TOPDIR)/zImage + +install: zImage + dd if=$(TOPDIR)/zImage of=/dev/sda4 + ln -s /dev/sda4 $(INSTALL_PATH)/vmlinuz + cp $(TOPDIR)/System.map $(INSTALL_PATH)/ + +zvmlinux: $(OBJECTS) $(SYSTEM) piggyback netboot $(TOPDIR)/vmlinux + gzip ${GZIP_FLAGS} <$(TOPDIR)/netboot | ./piggyback | $(AS) -o piggy.o + $(LD) $(ZLINKFLAGS) -o zvmlinux $(OBJECTS) piggy.o + rm -f piggy.o xx_boot + +head.o: head.s + +head.s: head.S $(TOPDIR)/include/linux/tasks.h + $(CPP) -traditional head.S -o head.s + +piggyback: piggyback.c + $(HOSTCC) $(CFLAGS) -o piggyback piggyback.c clean: - rsh charon /bin/rm -f /usr/tftpboot/vmlinux - /bin/rm -f /usr/tftpboot/vmlinux + rm -f piggyback zvmlinux mk_type41 mkprep mkboot + rm -f $(TOPDIR)/{zImage,znetboot,netboot} dep: |