From: Sam Ravnborg Date: Mon, 22 Oct 2007 09:30:45 +0000 (+0200) Subject: kbuild: allow depmod in cross builds again X-Git-Tag: upstream/snapshot3+hdmi~29372^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8d2e78a061e1ace98544b100b7837c620fbb950;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git kbuild: allow depmod in cross builds again depmod from module-init-tools 3.3-pre2 are reported to work fine in cross build. depmod from module-init-tools 3.1-pre5 are known to SEGV Do not workaround older module-init-tools bugs here. The right fix is for users to upgrade module-init-tools. Signed-off-by: Sam Ravnborg Cc: Geert Uytterhoeven --- diff --git a/Makefile b/Makefile index f4238b2..264f37b 100644 --- a/Makefile +++ b/Makefile @@ -1505,7 +1505,7 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files)) # and we build for the host arch quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) cmd_depmod = \ - if [ -r System.map -a -x $(DEPMOD) -a "$(SUBARCH)" = "$(ARCH)" ]; then \ + if [ -r System.map -a -x $(DEPMOD) ]; then \ $(DEPMOD) -ae -F System.map \ $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ $(KERNELRELEASE); \