diff -puN Makefile.orig Makefile --- Makefile.orig 2004-12-09 00:08:43.000000000 +0100 +++ Makefile 2004-12-08 23:59:34.000000000 +0100 @@ -788,7 +788,9 @@ depmod_opts := -b $(INSTALL_MOD_PATH) -r endif .PHONY: _modinst_post _modinst_post: _modinst_ +ifeq ([ uname -m ],$(ARCH)) if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi +endif else # CONFIG_MODULES