Re: kbuild now support arch/$ARCH/include - time for ARCHs to convert

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Monday, August 4, 2008 - 9:45 am

On Mon, Aug 04, 2008 at 06:00:53PM +0200, Geert Uytterhoeven wrote:

For sparc I has a similar issue and in the end I decided
to put the extra effort in and merged the header files
for sparc and sparc64. In this way we then had only a single
source to export from and despite the number of files named
foo_32.h / foo_64.h it was a net win because David long term anyway
plan to merge the two.

So to me the obvious solution for m68k / m68knommu is to
put in the additional effort required to merge the header files
for the two architectures.

In the top-level Makefile you will need this trivial patch to make it work:
diff --git a/Makefile b/Makefile
index f156f40..491ce6b 100644
--- a/Makefile
+++ b/Makefile
@@ -206,10 +206,12 @@ ifeq ($(ARCH),x86_64)
 endif

 # Where to locate arch specific headers
+hdr-arch  := $(SRCARCH)
 ifeq ($(ARCH),sparc64)
        hdr-arch  := sparc
-else
-       hdr-arch  := $(SRCARCH)
+endif
+ifeq ($(ARCH),m68knommu)
+        hdr-arch := m68k
 endif

So we have a script to help us. We know what files are identical and
kbuild support is ready.

And if we avoid it we have issues with exported headers.

So let's merge the two now - there is no reason to wait.
And do so in the git tree to make it obvious what happens.

	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Geert Uytterhoeven, (Wed Jul 30, 5:26 am)
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Geert Uytterhoeven, (Thu Jul 31, 12:17 am)
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Martin Schwidefsky, (Fri Aug 1, 1:35 am)
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Geert Uytterhoeven, (Sun Aug 3, 1:16 pm)
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Geert Uytterhoeven, (Mon Aug 4, 9:00 am)
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Sam Ravnborg, (Mon Aug 4, 9:45 am)
Re: kbuild now support arch/$ARCH/include - time for ARCHs ..., Geert Uytterhoeven, (Tue Aug 5, 10:16 am)