From patchwork Tue May 3 14:29:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 9004331 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A3254BF29F for ; Tue, 3 May 2016 14:31:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD615202C8 for ; Tue, 3 May 2016 14:31:50 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6A2D3202A1 for ; Tue, 3 May 2016 14:31:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axbKa-0004ND-Oz; Tue, 03 May 2016 14:29:44 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axbKZ-0004Lz-AJ for xen-devel@lists.xen.org; Tue, 03 May 2016 14:29:43 +0000 Received: from [85.158.143.35] by server-1.bemta-6.messagelabs.com id 86/F9-18833-6D5B8275; Tue, 03 May 2016 14:29:42 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRWlGSWpSXmKPExsVyMXThEd1rWzX CDR7f47NY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDM6V85jLtjDWzFr1SyWBsY13F2MnBxCAhMZ Jfb9Eeli5OJgEZjHLPHs83JmkISEQD+rxL41yhB2jMTRe9tZIOwaidm9J9kgmhUkfk84xATSL CQwhUli76N9YEVsAhoST37NACsSEZCWuPb5MiNIEbPAMyaJ14e7wDYIC7hITL58mx3EZhFQle h5uw2smVfAQeLWgU9AcQ6gbXISC977gJicAo4Sr3ekQ+x1kLjfdJ9pAqPAAkaGVYzqxalFZal FuoZ6SUWZ6RkluYmZObqGBmZ6uanFxYnpqTmJScV6yfm5mxiBQcUABDsYdz53OsQoycGkJMr7 Y4lGuBBfUn5KZUZicUZ8UWlOavEhRhkODiUJ3pwtQDnBotT01Iq0zBxgeMOkJTh4lER4p4Oke YsLEnOLM9MhUqcYLTm2/L62lonj08Y7QHLb1HtrmYRY8vLzUqXEeSNAGgRAGjJK8+DGwWLwEq OslDAvI9CBQjwFqUW5mSWo8q8YxTkYlYR5rUGm8GTmlcBtfQV0EBPQQdnrVUEOKklESEk1MKb Oqrtawdi5//+qvM51mhd+1R0OX3hI+W9J+9/dbxOSSnkVWDbMMxSy4/7iwBfY90bVMFz0ocXc FPW/bMu+7xfQendzzWvFcxkX17j1Z63Y9Xf2ulfLXl/r2rx8Uncfd7XclLAuq13bq/856///8 YFJZvfG6mt123unr3tr8P5q0Gau91/mxrxQYinOSDTUYi4qTgQAVfAxVbwCAAA= X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1462285779!12299184!1 X-Originating-IP: [209.85.161.196] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 45553 invoked from network); 3 May 2016 14:29:42 -0000 Received: from mail-yw0-f196.google.com (HELO mail-yw0-f196.google.com) (209.85.161.196) by server-10.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 3 May 2016 14:29:42 -0000 Received: by mail-yw0-f196.google.com with SMTP id i22so1766383ywc.1 for ; Tue, 03 May 2016 07:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pZoe3amqE1EUkCA3LfWLLWHofcVap3u8PDlAoYQY4R0=; b=bNia2ik4D83o8OQhyrW/4qlkxP/a6CX8jGAEe4mD2JYVMqqcbAHh31uyXsq+dEUxYd xFipI9g3tMev5ObXkK21D/JTqeaelWyMNd6vIbBYUis5nKhHMmPWeOHpK61L55bnFp9U siZcM40Teabsgp64ztRdcZ3jqcHbhx3xm3Er0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pZoe3amqE1EUkCA3LfWLLWHofcVap3u8PDlAoYQY4R0=; b=MDpbym2gYdAXbz9W4w9cQe9h4jySpkLJ85u7e5dXI3yAVJqaGso+czx6GulYNhZeCe vLDD/0NJDafS3dmm0Lfuw+/4LO6LsCzHfyyysqT8UjF1fmCdMPP0Ba4rTns08oBPBcGj 3poUM2UOYvMRcyFOXqbbBpOjdG0zUVJiytaAz4M58Xw/Ze90Lis6Bhz/rpiuLzu6hk6/ Yz5NNGLM7nWZ5kn+4AMq7zgqR8xexGd9SC5mukoaGpJG8JZEyvlxIefalSxh4Yo/xClD r3BdQaXbtiYkgAHkcoEQPEXKTdjNrNUvcrIt3C4o/apHG4KVh3FmSa/+JhRus+5JLbQn SCAQ== X-Gm-Message-State: AOPr4FVt3abtfw5IceI001jDa2FIlmu+DjReUWpkB23mnmSIIHZnQucIAtz7nu8xbR3AjQ== X-Received: by 10.129.108.208 with SMTP id h199mr1414221ywc.229.1462285771994; Tue, 03 May 2016 07:29:31 -0700 (PDT) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id l132sm1879409ywb.26.2016.05.03.07.29.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 May 2016 07:29:31 -0700 (PDT) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Tue, 3 May 2016 09:29:11 -0500 Message-Id: <1462285753-5588-6-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1462285753-5588-1-git-send-email-cardoe@cardoe.com> References: <1462285753-5588-1-git-send-email-cardoe@cardoe.com> Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Doug Goldstein , Tim Deegan , Jan Beulich , Ian Jackson Subject: [Xen-devel] [PATCH v2 5/7] build: wire up pre-existing debug build flag X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows 'make debug=n' and 'make debug=y' work as it did previously but only in the case of the user not having an existing .config file from a 'make menuconfig'. This is because the command line 'debug' flag can only be used to set the default value and if the user has already built up a config with their real preference set. Signed-off-by: Doug Goldstein --- CC: Andrew Cooper CC: George Dunlap CC: Ian Jackson CC: Jan Beulich CC: Konrad Rzeszutek Wilk CC: Stefano Stabellini CC: Tim Deegan CC: Wei Liu --- xen/Kconfig.debug | 5 +++++ xen/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug index c75cf1d..9aefa16 100644 --- a/xen/Kconfig.debug +++ b/xen/Kconfig.debug @@ -1,6 +1,11 @@ +config DEBUG_ENV + bool + option env="debug" menuconfig DEBUG bool "Debugging Options" + default y if DEBUG_ENV = "y" + default n ---help--- If you want to debug Xen say Y and select any additional debugging support options. Enabling this option is intended for development diff --git a/xen/Makefile b/xen/Makefile index 0d5f240..31cca71 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -27,6 +27,7 @@ SRCARCH=$(shell echo $(ARCH) | sed -e 's/x86.*/x86/' -e s'/arm\(32\|64\)/arm/g') # Don't break if the build process wasn't called from the top level # we need XEN_TARGET_ARCH to generate the proper config include $(XEN_ROOT)/Config.mk +export debug # Allow someone to change their config file export KCONFIG_CONFIG ?= .config