Re: crossbuild fails in modpost

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jiri Slaby <jirislaby@...>
Cc: Linux kernel mailing list <linux-kernel@...>, Michael Buesch <mb@...>, Gordon Farquharson <gordonfarquharson@...>
Date: Thursday, May 15, 2008 - 1:40 pm

On Thu, May 15, 2008 at 07:35:39PM +0200, Sam Ravnborg wrote:

So something like this (entirely untested):

--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -65,7 +65,7 @@ modules   := $(patsubst %.o,%.ko, $(wildcard $(__modules:.ko=.o)))
 # Stop after building .o files if NOFINAL is set. Makes compile tests quicker
 _modpost: $(if $(KBUILD_MODPOST_NOFINAL), $(modules:.ko:.o),$(modules))
 
-ifneq ($(KBUILD_BUILDHOST),$(ARCH))
+ifneq ($(CC),$(HOSTCC))
         cross_build := 1
 endif
 

Only powerpc (and ppc) does seems to do the wrong thing
and fiddle with CC:

powerpc/Makefile:override CC    += -m$(CONFIG_WORD_SIZE)

So for most users this is OK.
(If it works as expected).

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

Messages in current thread:
crossbuild fails in modpost, Jiri Slaby, (Thu May 15, 9:44 am)
Re: crossbuild fails in modpost, Jiri Slaby, (Thu May 15, 1:12 pm)
Re: crossbuild fails in modpost, Sam Ravnborg, (Thu May 15, 1:35 pm)
Re: crossbuild fails in modpost, Sam Ravnborg, (Thu May 15, 1:40 pm)
Re: crossbuild fails in modpost, Jiri Slaby, (Thu May 15, 3:19 pm)
Re: crossbuild fails in modpost, Sam Ravnborg, (Sun May 18, 5:31 pm)
Re: crossbuild fails in modpost, Adrian Bunk, (Thu May 15, 4:46 pm)
Re: crossbuild fails in modpost, Jan Engelhardt, (Sun May 18, 3:55 pm)
Re: crossbuild fails in modpost, Adrian Bunk, (Sun May 18, 4:42 pm)
Re: crossbuild fails in modpost, Jan Engelhardt, (Sun May 18, 5:15 pm)
Re: crossbuild fails in modpost, David Woodhouse, (Fri May 23, 7:58 pm)
Re: crossbuild fails in modpost, Jan Engelhardt, (Sat May 24, 12:46 am)