From patchwork Mon May 2 04:10:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8989771 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 716D49F39D for ; Mon, 2 May 2016 04:13:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 941FC20173 for ; Mon, 2 May 2016 04:13:41 +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 A4753201F2 for ; Mon, 2 May 2016 04:13:40 +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 1ax5CQ-0002Fj-8c; Mon, 02 May 2016 04:11:10 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ax5CO-0002Ev-Kh for xen-devel@lists.xen.org; Mon, 02 May 2016 04:11:08 +0000 Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id 05/DC-03814-B53D6275; Mon, 02 May 2016 04:11:07 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRWlGSWpSXmKPExsVyMXThQd3oy2r hBjdmC1ss+biYxYHR4+ju30wBjFGsmXlJ+RUJrBl9i6+wFeznrVh88A9LA+N67i5GLg4hgUmM Eq+PLWIHcVgE5jFLzJy7kg3EkRDoZ5X4sWs9axcjJ5ATI/FnTiMbhF0j8fjzdrC4kICCxO8Jh 5ggRk1mkjjz4R0jSIJNQEPiya8ZYA0iAtIS1z5fZgQpYhZ4xiTx+nAXM0hCWMBV4lbLNiYQm0 VAVWLW2qNgcV4BR4kVz36xdDFyAG2Tk1jw3gckzCngJNH3dRMzxGJHiacf7jNOYBRYwMiwilG 9OLWoLLVI11IvqSgzPaMkNzEzR9fQwFgvN7W4ODE9NScxqVgvOT93EyMwtOoZGBh3ML7+6XSI UZKDSUmUd/IxtXAhvqT8lMqMxOKM+KLSnNTiQ4wyHBxKEryZl4BygkWp6akVaZk5wCCHSUtw8 CiJ8NqeA0rzFhck5hZnpkOkTjFacmz5fW0tE8enjXeA5Lap99YyCbHk5eelSonzmoDMEwBpyC jNgxsHi8RLjLJSwryMDAwMQjwFqUW5mSWo8q8YxTkYlYR5eUCm8GTmlcBtfQV0EBPQQdnrVUE OKklESEk1MDZw7C75xre889PBX8qHN2Ts2id7/TO/00tf/sv8/+N8t6scDQuTiO49U8jwqP9f j1pZ8oxtHz52/Nayc4vKrg/a9eLBhSdTFcNT7j55MKVG6FvB/wVuz/pjQ/6stDY49/PwzVOpr YsOeu1J4HYNPX1vlmvBwYXXW8Ic01iC4iW+v2aWSWKs2qzEUpyRaKjFXFScCAA9qnHsvwIAAA == X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-14.tower-31.messagelabs.com!1462162266!37940468!1 X-Originating-IP: [209.85.161.193] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 65016 invoked from network); 2 May 2016 04:11:07 -0000 Received: from mail-yw0-f193.google.com (HELO mail-yw0-f193.google.com) (209.85.161.193) by server-14.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 2 May 2016 04:11:07 -0000 Received: by mail-yw0-f193.google.com with SMTP id v81so17931628ywa.2 for ; Sun, 01 May 2016 21:11:07 -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=LOtjmwEmb72SAsxO3GjkWHVCnpKqc7AvsFVyu8DNHVQ=; b=ajnRcaDXnASm6XGduznOInSfoVAcmtjk9FJwMsWPHYY8jQl+UpdXodzVrR02wNkP4B cRdcwyxShiVWcn6oDRYjncI1saI/yigYJPU6vA8pgM4h+5u8UaOyIWFkhkxGfO9gB8Ut H8piTX/wbwnsGVv69l8/zIB1byuUniCyVZ9a4= 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=LOtjmwEmb72SAsxO3GjkWHVCnpKqc7AvsFVyu8DNHVQ=; b=EnayTLLQk2H6DFYAiGG30ogxcmd8tSBtC+3DxiR7XktVi5Uf3uA8TY5jDD1Iu/f9Xe mlBi+Y9jNxfqcPv0rsdt7KHpuZhGxiJJ+rE+DhIGm6oo2J8y1rKYBthKF/U3KRa0gVxB 0v7SYVIfvRAYMcjcp079MH/SXf/xhSYsfJFjsragCkHyFTem0xzu1YsJmdUPOVdpyGe1 I0651c8/Tr5kxLLmne12VsSGQgdGUHfrxdD1dr0BRv+g5EkFdLn5JXpMZ3Bn81LjZmSV /mtYDfWpyK5i5fd5UJvopZobA49voeY9QfVKwtcqX1XsSJlVNN0kmh6fGMsfpfh1CA4i Y3/w== X-Gm-Message-State: AOPr4FWGmzN+VI5WRAYOt+bAmCnDxody2eyYjcuNXsnLrVN5Vmsfpi0DNEbMEUwy+mrxJQ== X-Received: by 10.129.73.134 with SMTP id w128mr17404489ywa.155.1462162266063; Sun, 01 May 2016 21:11:06 -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 j3sm14334897ywj.32.2016.05.01.21.11.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 May 2016 21:11:05 -0700 (PDT) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Sun, 1 May 2016 23:10:44 -0500 Message-Id: <1462162246-32413-6-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1462162246-32413-1-git-send-email-cardoe@cardoe.com> References: <1462162246-32413-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] [RFC PATCH 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=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID,UNPARSEABLE_RELAY,URIBL_BLACK 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 their have 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 0b2ec50..ec27b09 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. This enables additional debugging through Xen diff --git a/xen/Makefile b/xen/Makefile index f49014b..e2da895 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