linux-advanced: Fix probing of kernel version
authorCameron Hutchison <lists@xdna.net>
Tue, 23 Feb 2010 22:00:16 +0000 (22:00 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 23 Feb 2010 22:17:40 +0000 (23:17 +0100)
Probing the kernel version uses command substitution to capture the
result of a make command. If the top-level make is run with -C, the
sub-make will print entering/leaving directory messages, mucking up the
output we're trying to capture.

Invoke the sub-make with --no-print-directory so we get clean output.

Signed-off-by: Cameron Hutchison <cam@camh.ch>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
target/linux/Makefile.in.advanced

index b4774ca23d2b275d7ae1382362d360047cc20f18..7679d1ed709ad067754c6d451d5e2b5de9916563 100644 (file)
@@ -41,7 +41,7 @@ endif
 endif
 
 # Ask the kernel what version number it will use when installing modules
-LINUX26_VERSION_PROBED = `$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) -s kernelrelease`
+LINUX26_VERSION_PROBED = `$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) --no-print-directory -s kernelrelease`
 
 ifeq ($(BOARD_PATH),)
 BOARD_PATH:=$(call qstrip,$(BR2_BOARD_PATH))