linux-mips
[Top] [All Lists]

[PATCH 2.4] LASAT updates

To: ralf@linux-mips.org
Subject: [PATCH 2.4] LASAT updates
From: Brian Murphy <brm@murphy.dk>
Date: Wed, 07 Apr 2004 23:38:26 +0200
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf, 
        this is a small patch to make the Lasat rom image build again
after some LDFLAGS changes which broke it.

/Brian

Index: arch/mips/lasat/image/Makefile
===================================================================
RCS file: /cvs/linux/arch/mips/lasat/image/Makefile,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 Makefile
--- arch/mips/lasat/image/Makefile      24 Feb 2003 21:26:19 -0000      1.1.2.3
+++ arch/mips/lasat/image/Makefile      30 Jan 2004 11:30:03 -0000
@@ -24,12 +24,13 @@
 
 LDSCRIPT= -Tromscript.normal
 
-AFLAGS_head.o = -D_kernel_start=0x$(KERNEL_START) \
+HEAD_DEFINES = -D_kernel_start=0x$(KERNEL_START) \
                -D_kernel_entry=0x$(KERNEL_ENTRY) \
                -D VERSION="\"$(Version)\"" \
                -D TIMESTAMP=$(shell date +%s) 
 
-head.o: $(KERNEL_IMAGE)
+head.o: head.S $(KERNEL_IMAGE)
+       $(CC) -fno-pic $(HEAD_DEFINES) -I$(TOPDIR)/include -c -o $@ $<
 
 OBJECTS= head.o kImage.o
 
@@ -44,7 +45,7 @@
        $(LD) $(LDFLAGS) $(LDSCRIPT) -o rom $(OBJECTS) 
 
 %.o: %.gz
-       $(LD) -r -o $@ -b binary $<
+       $(LD) $(LDFLAGS) -r -o $@ -b binary $<
 
 %.gz: %.bin
        gzip -cf -9 $< > $@

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.4] LASAT updates, Brian Murphy <=