Messages in this thread Patch in this message | | | Subject | cross-depmod? | From | Hollis Blanchard <> | Date | Thu, 05 Aug 2004 16:51:56 -0500 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |