public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cross-depmod?
@ 2004-08-05 21:51 Hollis Blanchard
  2004-08-06  8:40 ` cross-depmod? David Vrabel
  2004-08-06 15:42 ` cross-depmod? Sam Ravnborg
  0 siblings, 2 replies; 7+ messages in thread
From: Hollis Blanchard @ 2004-08-05 21:51 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

Hi Sam, would you take a patch like this:

--- 1.509/Makefile      Tue Aug  3 16:11:35 2004
+++ edited/Makefile     Thu Aug  5 17:12:07 2004
@@ -790,7 +790,11 @@
 endif
 .PHONY: _modinst_post
 _modinst_post: _modinst_
-       if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
+       if [ -z "$(CROSS_COMPILE)" -o "$(DEPMOD)" != "/sbin/depmod" ] ; then \
+               if [ -r System.map ]; then \
+                       $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); \
+               fi \
+       fi

 else # CONFIG_MODULES

(I don't like hardcoding /sbin/depmod; this is just for conversation.)

My problem is that I cross-build my kernels, and 'make rpm' is very
unhappy when it can't use depmod. I know that I can do 'make
DEPMOD=/bin/true rpm', but can't we figure that out automatically?

In general if you're cross-compiling I don't think you can assume
/sbin/depmod is ok. Someone could do 'make DEPMOD=powerpc-linux-depmod'
though (couldn't they? does anybody bother?), so if $(DEPMOD) has been
specified we still want to let that work...

-- 
Hollis Blanchard
IBM Linux Technology Center


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-09  6:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 21:51 cross-depmod? Hollis Blanchard
2004-08-06  8:40 ` cross-depmod? David Vrabel
2004-08-06 13:45   ` cross-depmod? Geert Uytterhoeven
2004-08-06 15:17     ` cross-depmod? Sam Ravnborg
2004-08-06 15:42 ` cross-depmod? Sam Ravnborg
2004-08-08 23:05   ` cross-depmod? Rusty Russell
2004-08-09  6:15     ` cross-depmod? Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox