[Buildroot] [PATCH 2/2] linux: fix linux-% shortcut targets

Bjørn Forsman bjorn.forsman at gmail.com
Sun Dec 19 18:37:29 UTC 2010


linux-% shortcut targets (short for linux26-%) ignores the ouput dir
$(O) so that 'make O=output.arm linux-menuconfig' is actually run in the
default $(O) directory output/ and not in output.arm/. Fix by passing on
$(O).

Signed-off-by: Bjørn Forsman <bjorn.forsman at gmail.com>
---
 linux/linux.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index 6636a35..68d2d6d 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -200,4 +200,4 @@ endif
 endif
 
 linux-%:
-	$(MAKE) $(subst linux-,linux26-,$@)
+	$(MAKE) O=$(O) $(subst linux-,linux26-,$@)
-- 
1.7.1



More information about the buildroot mailing list