* RE: Sparc-64 kernel build fails on version.h during 'make oldconf ig'
@ 2001-07-26 16:17 Leif Sawyer
2001-07-27 9:41 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Leif Sawyer @ 2001-07-26 16:17 UTC (permalink / raw)
To: Andreas Schwab, Thorsten Kukuk, David S. Miller, Alan Cox; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]
Andreas Schwab <schwab@suse.de> responded to:
> Thorsten Kukuk <kukuk@suse.de> who writes:
>
> |> No, I send you and on the sparclinux list already a patch for
> |> this 2 weeks ago. The problem is, that make dep will build at
> |> first sparc specific programs (archdep) which needs linux/version.h,
> |> but make dep does create linux/version.h only after building
> |> this tools. The following patch solved the problem for me:
> |>
> |> --- linux/Makefile
> |> +++ linux/Makefile 2001/05/21 12:57:07
> |> @@ -440,7 +440,7 @@
> |> sums:
> |> find . -type f -print | sort | xargs sum > .SUMS
> |>
> |> -dep-files: scripts/mkdep archdep include/linux/version.h
> |> +dep-files: include/linux/version.h scripts/mkdep archdep
>
> This will still fail with parallel builds. Better make the
> dependency of archdep on version.h explicit.
Hmm.. didn't think about SMP, as I'm only UP right now.
The enclosed patch then should cover all the architectures
for the stock 2.4.7 kernel.
I tried to find the cleanest place to put the dependancy,
which was usually on the archdep: target, but in the case
of sparc builds, it was on the check-asm: target.
In either case, i'm now building correctly for both i386 and sparc64
for make -j2 dep. I can also break out of the archdep tools build
and find version.h built, so unless anybody has any major gripes, this
patch should find it's way to the general release, yes?
Alan?
[-- Attachment #2: makefiles.diff --]
[-- Type: application/octet-stream, Size: 4969 bytes --]
diff -ru linux/arch/alpha/Makefile linux-2.4.7/arch/alpha/Makefile
--- linux/arch/alpha/Makefile Sun Dec 3 16:45:20 2000
+++ linux-2.4.7/arch/alpha/Makefile Thu Jul 26 08:03:47 2001
@@ -121,7 +121,7 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
vmlinux: arch/alpha/vmlinux.lds
diff -ru linux/arch/arm/Makefile linux-2.4.7/arch/arm/Makefile
--- linux/arch/arm/Makefile Wed Jun 27 13:12:04 2001
+++ linux-2.4.7/arch/arm/Makefile Thu Jul 26 08:03:55 2001
@@ -207,7 +207,7 @@
archclean:
@$(MAKEBOOT) clean
-archdep: scripts/mkdep archsymlinks
+archdep: scripts/mkdep archsymlinks include/linux/version.h
@$(MAKETOOLS) dep
@$(MAKEBOOT) dep
diff -ru linux/arch/cris/Makefile linux-2.4.7/arch/cris/Makefile
--- linux/arch/cris/Makefile Wed Jul 4 10:50:38 2001
+++ linux-2.4.7/arch/cris/Makefile Thu Jul 26 08:03:47 2001
@@ -105,5 +105,5 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
diff -ru linux/arch/i386/Makefile linux-2.4.7/arch/i386/Makefile
--- linux/arch/i386/Makefile Thu Apr 12 11:20:31 2001
+++ linux-2.4.7/arch/i386/Makefile Thu Jul 26 08:03:54 2001
@@ -143,5 +143,5 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
diff -ru linux/arch/ia64/Makefile linux-2.4.7/arch/ia64/Makefile
--- linux/arch/ia64/Makefile Thu Apr 5 11:51:46 2001
+++ linux-2.4.7/arch/ia64/Makefile Thu Jul 26 08:03:46 2001
@@ -131,7 +131,7 @@
rm -f arch/$(ARCH)/vmlinux.lds
@$(MAKE) -C arch/$(ARCH)/tools mrproper
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
bootpfile:
diff -ru linux/arch/m68k/Makefile linux-2.4.7/arch/m68k/Makefile
--- linux/arch/m68k/Makefile Mon Jun 11 18:15:27 2001
+++ linux-2.4.7/arch/m68k/Makefile Thu Jul 26 08:03:53 2001
@@ -173,4 +173,4 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
diff -ru linux/arch/mips/Makefile linux-2.4.7/arch/mips/Makefile
--- linux/arch/mips/Makefile Mon Jul 2 12:56:40 2001
+++ linux-2.4.7/arch/mips/Makefile Thu Jul 26 08:03:43 2001
@@ -292,7 +292,7 @@
@$(MAKEBOOT) mrproper
$(MAKE) -C arch/$(ARCH)/tools mrproper
-archdep:
+archdep: include/linux/version.h
if [ ! -f $(TOPDIR)/include/asm-$(ARCH)/offset.h ]; then \
touch $(TOPDIR)/include/asm-$(ARCH)/offset.h; \
fi;
diff -ru linux/arch/mips64/Makefile linux-2.4.7/arch/mips64/Makefile
--- linux/arch/mips64/Makefile Wed Jul 4 10:50:38 2001
+++ linux-2.4.7/arch/mips64/Makefile Thu Jul 26 08:03:53 2001
@@ -165,7 +165,7 @@
@$(MAKEBOOT) mrproper
$(MAKE) -C arch/$(ARCH)/tools mrproper
-archdep:
+archdep: include/linux/version.h
if [ ! -f $(TOPDIR)/include/asm-$(ARCH)/offset.h ]; then \
touch $(TOPDIR)/include/asm-$(ARCH)/offset.h; \
fi;
diff -ru linux/arch/parisc/Makefile linux-2.4.7/arch/parisc/Makefile
--- linux/arch/parisc/Makefile Tue Dec 5 11:29:39 2000
+++ linux-2.4.7/arch/parisc/Makefile Thu Jul 26 08:03:42 2001
@@ -88,4 +88,4 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
diff -ru linux/arch/ppc/Makefile linux-2.4.7/arch/ppc/Makefile
--- linux/arch/ppc/Makefile Wed Jul 18 06:14:01 2001
+++ linux-2.4.7/arch/ppc/Makefile Thu Jul 26 08:03:52 2001
@@ -99,5 +99,5 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
$(MAKEBOOT) fastdep
diff -ru linux/arch/s390/Makefile linux-2.4.7/arch/s390/Makefile
--- linux/arch/s390/Makefile Wed Apr 11 18:02:27 2001
+++ linux-2.4.7/arch/s390/Makefile Thu Jul 26 08:03:41 2001
@@ -69,5 +69,5 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
diff -ru linux/arch/s390x/Makefile linux-2.4.7/arch/s390x/Makefile
--- linux/arch/s390x/Makefile Tue Feb 13 13:13:44 2001
+++ linux-2.4.7/arch/s390x/Makefile Thu Jul 26 08:03:51 2001
@@ -66,5 +66,5 @@
archmrproper:
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
diff -ru linux/arch/sh/Makefile linux-2.4.7/arch/sh/Makefile
--- linux/arch/sh/Makefile Fri Dec 29 13:07:20 2000
+++ linux-2.4.7/arch/sh/Makefile Thu Jul 26 08:03:56 2001
@@ -98,5 +98,5 @@
archmrproper:
rm -f arch/sh/vmlinux.lds
-archdep:
+archdep: include/linux/version.h
@$(MAKEBOOT) dep
diff -ru linux/arch/sparc/Makefile linux-2.4.7/arch/sparc/Makefile
--- linux/arch/sparc/Makefile Fri Dec 29 13:07:20 2000
+++ linux-2.4.7/arch/sparc/Makefile Thu Jul 26 08:03:51 2001
@@ -60,7 +60,7 @@
archdep: check_asm
-check_asm:
+check_asm: include/linux/version.h
$(MAKE) -C arch/sparc/kernel check_asm
tftpboot.img:
diff -ru linux/arch/sparc64/Makefile linux-2.4.7/arch/sparc64/Makefile
--- linux/arch/sparc64/Makefile Fri Dec 29 13:07:21 2000
+++ linux-2.4.7/arch/sparc64/Makefile Thu Jul 26 07:58:36 2001
@@ -98,7 +98,7 @@
archdep: check_asm
-check_asm:
+check_asm: include/linux/version.h
$(MAKE) -C arch/sparc64/kernel check_asm
tftpboot.img:
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Sparc-64 kernel build fails on version.h during 'make oldconf ig'
2001-07-26 16:17 Sparc-64 kernel build fails on version.h during 'make oldconf ig' Leif Sawyer
@ 2001-07-27 9:41 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2001-07-27 9:41 UTC (permalink / raw)
To: Leif Sawyer; +Cc: Andreas Schwab, Thorsten Kukuk, Alan Cox, linux-kernel
Leif Sawyer writes:
> > |> -dep-files: scripts/mkdep archdep include/linux/version.h
> > |> +dep-files: include/linux/version.h scripts/mkdep archdep
> >
> > This will still fail with parallel builds. Better make the
> > dependency of archdep on version.h explicit.
>
> Hmm.. didn't think about SMP, as I'm only UP right now.
>
> The enclosed patch then should cover all the architectures
> for the stock 2.4.7 kernel.
Your patch points out that just making check_asm
depend on include/linux/version.h solves the problem
just fine too.
And this is the change I am making to my tree. I'd rather
keep the change localized to Sparc{,64} for 2.4.x
Thanks.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-27 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-26 16:17 Sparc-64 kernel build fails on version.h during 'make oldconf ig' Leif Sawyer
2001-07-27 9:41 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®