Hi,

 Due to arch/alpha/vmlinux.lds being build by the archdep and removed by
the clean target, the usual `make dep clean boot' command does not work
for Alpha.  There are also a few names of programs hardcoded in Alpha
Makefiles, which causes problems when cross-compiling.  The following
patch fixes these for me.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [EMAIL PROTECTED], PGP key available        +

diff -u --recursive --new-file linux-2.4.0-test6.macro/arch/alpha/Makefile 
linux-2.4.0-test6/arch/alpha/Makefile
--- linux-2.4.0-test6.macro/arch/alpha/Makefile Sun Jul 16 22:26:32 2000
+++ linux-2.4.0-test6/arch/alpha/Makefile       Mon Aug 21 06:37:12 2000
@@ -8,7 +8,7 @@
 # Copyright (C) 1994 by Linus Torvalds
 #
 
-NM := nm -B
+NM := $(NM) -B
 
 LINKFLAGS = -static -T arch/alpha/vmlinux.lds -N #-relax
 CFLAGS := $(CFLAGS) -pipe -mno-fp-regs -ffixed-8
@@ -95,6 +95,11 @@
 rawboot:
        @$(MAKEBOOT) rawboot
 
+vmlinux: arch/alpha/vmlinux.lds
+
+arch/alpha/vmlinux.lds: arch/alpha/vmlinux.lds.in
+       $(CPP) $(CPPFLAGS) -xc -P $< -o $@
+
 #
 # My boot writes directly to a specific disk partition, I doubt most
 # people will want to do that without changes..
@@ -117,7 +122,6 @@
 
 archdep:
        @$(MAKEBOOT) dep
-       $(CPP) $(CPPFLAGS) -xc -P arch/alpha/vmlinux.lds.in -o arch/alpha/vmlinux.lds
 
 bootpfile:
        @$(MAKEBOOT) bootpfile
diff -u --recursive --new-file linux-2.4.0-test6.macro/arch/alpha/boot/Makefile 
linux-2.4.0-test6/arch/alpha/boot/Makefile
--- linux-2.4.0-test6.macro/arch/alpha/boot/Makefile    Sun Jul 30 22:09:34 2000
+++ linux-2.4.0-test6/arch/alpha/boot/Makefile  Mon Aug 21 06:13:56 2000
@@ -68,7 +68,7 @@
        $(OBJSTRIP) -v $(VMLINUX) vmlinux.nh
 
 vmlinux: $(TOPDIR)/vmlinux
-       strip -o vmlinux $(VMLINUX)
+       $(STRIP) -o vmlinux $(VMLINUX)
 
 tools/lxboot: $(OBJSTRIP) bootloader
        $(OBJSTRIP) -p bootloader tools/lxboot

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to