diff options
Diffstat (limited to 'arch/mips/orion/Makefile')
-rw-r--r-- | arch/mips/orion/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/mips/orion/Makefile b/arch/mips/orion/Makefile index a42da1b0d..60ac12423 100644 --- a/arch/mips/orion/Makefile +++ b/arch/mips/orion/Makefile @@ -13,7 +13,8 @@ .S.o: $(CC) $(CFLAGS) -c $< -o $*.o -OBJS = promcon.o char.o serial.8530.o orion.hw.init.o setup.o irq.o int-handler.o +OBJS = promcon.o char.o serial.8530.o orion.hw.init.o setup.o irq.o \ + int-handler.o zs.o all: orionkern.a @@ -21,8 +22,17 @@ orionkern.a: $(OBJS) initrd.o #no_initrd.o $(AR) rcs orionkern.a $(OBJS) initrd.o #no_initrd.o sync -initrd.c: piggyback ramdisk.image.gz - ./piggyback initrd < ramdisk.image.gz > initrd.c +# +# I usually have this mounted through loopback so I can +# change it and let the makefile include it automatically +# -- Cort <cort@fsmlabs.com> +# +#ramdisk.image.gz: ramdisk.image +# gzip -vf9 < ramdisk.image > ramdisk.image.gz + +initrd.c: piggyback ramdisk.image + gzip -vf9 < ramdisk.image | ./piggyback initrd > initrd.c + rm -f ramdisk.image.gz piggyback: piggyback.c $(HOSTCC) $(HOSTCFLAGS) -o piggyback piggyback.c @@ -41,7 +51,7 @@ orion.ctl: patchapp ../../../vmlinux dep: clean: - rm -f patchapp orion.bin orion.nosym orion.ctl initrd.c + rm -f patchapp orion.bin orion.nosym orion.ctl initrd.c piggyback dummy: |