From patchwork Mon Apr 8 10:51:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Bolle X-Patchwork-Id: 2407521 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 15703DFB78 for ; Mon, 8 Apr 2013 10:51:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934545Ab3DHKv2 (ORCPT ); Mon, 8 Apr 2013 06:51:28 -0400 Received: from cpsmtpb-ews05.kpnxchange.com ([213.75.39.8]:57603 "EHLO cpsmtpb-ews05.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761729Ab3DHKv1 (ORCPT ); Mon, 8 Apr 2013 06:51:27 -0400 Received: from cpsps-ews07.kpnxchange.com ([10.94.84.174]) by cpsmtpb-ews05.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 8 Apr 2013 12:51:26 +0200 Received: from CPSMTPM-TLF102.kpnxchange.com ([195.121.3.5]) by cpsps-ews07.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 8 Apr 2013 12:51:26 +0200 Received: from [192.168.1.103] ([212.123.139.93]) by CPSMTPM-TLF102.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 8 Apr 2013 12:51:25 +0200 Message-ID: <1365418285.1830.90.camel@x61.thuisdomein> Subject: [PATCH v2] doc: change example to existing Makefile fragment From: Paul Bolle To: Michal Marek Cc: Rob Landley , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 08 Apr 2013 12:51:25 +0200 In-Reply-To: <51629F0F.6070501@suse.cz> References: <1364206584.1390.268.camel@x61.thuisdomein> <1364258406.15703.70@driftwood> <51629F0F.6070501@suse.cz> X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 X-OriginalArrivalTime: 08 Apr 2013 10:51:25.0403 (UTC) FILETIME=[03F4F2B0:01CE3447] X-RcptDomain: vger.kernel.org Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Signed-off-by: Paul Bolle Acked-by: Rob Landley --- v2: added Rob's ACK and send to Michal e.a., for the kbuild tree. Documentation/kbuild/makefiles.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 5198b74..020bb67 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt @@ -921,8 +921,9 @@ When kbuild executes, the following steps are followed (roughly): Often, the KBUILD_CFLAGS variable depends on the configuration. Example: - #arch/x86/Makefile - cflags-$(CONFIG_M386) += -march=i386 + #arch/x86/boot/compressed/Makefile + cflags-$(CONFIG_X86_32) := -march=i386 + cflags-$(CONFIG_X86_64) := -mcmodel=small KBUILD_CFLAGS += $(cflags-y) Many arch Makefiles dynamically run the target C compiler to