Skip to content

Commit 778bc14

Browse files
congwangralfbaechle
authored andcommitted
[MIPS] Lasat: Fix built in separate object directory.
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> [Ralf: The LDSCRIPT script needed fixing, too] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 84c21e2 commit 778bc14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/mips/lasat/image/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ endif
1212

1313
MKLASATIMG = mklasatimg
1414
MKLASATIMG_ARCH = mq2,mqpro,sp100,sp200
15-
KERNEL_IMAGE = $(TOPDIR)/vmlinux
15+
KERNEL_IMAGE = vmlinux
1616
KERNEL_START = $(shell $(NM) $(KERNEL_IMAGE) | grep " _text" | cut -f1 -d\ )
1717
KERNEL_ENTRY = $(shell $(NM) $(KERNEL_IMAGE) | grep kernel_entry | cut -f1 -d\ )
1818

19-
LDSCRIPT= -L$(obj) -Tromscript.normal
19+
LDSCRIPT= -L$(srctree)/$(src) -Tromscript.normal
2020

2121
HEAD_DEFINES := -D_kernel_start=0x$(KERNEL_START) \
2222
-D_kernel_entry=0x$(KERNEL_ENTRY) \
2323
-D VERSION="\"$(Version)\"" \
2424
-D TIMESTAMP=$(shell date +%s)
2525

2626
$(obj)/head.o: $(obj)/head.S $(KERNEL_IMAGE)
27-
$(CC) -fno-pic $(HEAD_DEFINES) -I$(TOPDIR)/include -c -o $@ $<
27+
$(CC) -fno-pic $(HEAD_DEFINES) $(LINUXINCLUDE) -c -o $@ $<
2828

2929
OBJECTS = head.o kImage.o
3030

0 commit comments

Comments
 (0)