Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Geert Uytterhoeven Newsgroups: linux.kernel Subject: Re: [PATCH] scripts/dtc: dt_to_config - report kernel config options for a devicetree Date: Fri, 29 Apr 2016 08:50:02 +0200 Message-ID: References: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=+LKExATzEl7EV0cXlRPc4bAsaqLoHSfdEgKEt2aLrME=; b=qkVzNMQ6170AQNjM7UoOr4T3G40rIw5NDy2LaLXEmgjTSJs87tTCSzgF40sHDdZTmn vQAdKZJtsocyxAL2P7/0JAGL+88A0fyPka9KSkb5mp1MweRgiLS24wRxh4yHQ9naRfk7 /o242lbz3OlkrwnBeRWS7R4GDEcUv32fJsplQKKO8nqutSD4E9jKUJQordVJneZQNNlz UYHdS/Ou1wCP34x6aD2zxUQozXlVxstJdKP+r4GaWiiEU1+eNARd+1GFssb9HoVwaSHF 9/31bSRGvbNPDzDolmKgFDHMlbKg8bsiNHvAXLrfLfCmOP1XBSkrhfLPnBa3NSVICbJ2 oJqA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=+LKExATzEl7EV0cXlRPc4bAsaqLoHSfdEgKEt2aLrME=; b=nFlTfdI/BH9y1mzuj/aUR6k9vXZQEHYnZZhNptMQinqP7DSnnYmhxu9xNP+G+259dq YAGmz9DouQW1/xzW/GQNalGvlmfoi4niC566IuRCEiW8otJueMPrUeofTR+CXcQjAvGZ ryI2nhJNHKNG8e97YxBbzjdee8ZWhT3fZKQTzFFJdveJOjTKY/GffPyyzPUXS8UYJ4z4 NJMkPzB9LJY9As+vVntXPMvEuVs8TNqh7Gtwl1Ztyw09KDNBBPMWOIKEm7IaTta3RkQd QHPBtPsazD4n6hV3lxU5gbR/2Dvm8TvMiDoJgp8SxPURhpHDT5SrB2jWsv2Cd8GTiFER 85tQ== X-Gm-Message-State: AOPr4FXne/4LJzWYPv29UpoG5w3HFmtWjW5Jl7pwmzXoKvqveYwtn6vI6cWTS7JDO9cVtp9fbKuTMc3fJ6OsAA== MIME-Version: 1.0 X-Received: by 10.50.96.132 with SMTP id ds4mr2476020igb.31.1461912241879; Thu, 28 Apr 2016 23:44:01 -0700 (PDT) X-Google-Sender-Auth: JQ2CZzJKG2J1a_ugjinKTGRctRs Content-Type: text/plain; charset=UTF-8 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 34 Organization: linux.* mail to news gateway X-Original-Cc: Rob Herring , Frank Rowand , Grant Likely , "devicetree@vger.kernel.org" , Linux Kernel list , Geert Uytterhoeven , Pavel Machek , Alison Chaiken X-Original-Date: Fri, 29 Apr 2016 08:44:01 +0200 X-Original-Message-ID: X-Original-References: <572284AB.102@gmail.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1390803 On Fri, Apr 29, 2016 at 8:39 AM, Gaurav Minocha wrote: > On Thu, Apr 28, 2016 at 3:32 PM, Rob Herring wrote: >> On Thu, Apr 28, 2016 at 4:46 PM, Frank Rowand wrote: >>> From: Frank Rowand >>> >>> Determining which kernel config options need to be enabled for a >>> given devicetree can be a painful process. Create a new tool to >>> find the drivers that may match a devicetree node compatible, >>> find the kernel config options that enable the driver, and >>> optionally report whether the kernel config option is enabled. >> >> I would find this more useful to output a config fragment with all the >> options enabled. The hard part there is enabling the options a given >> option is dependent on which I don't think kbuild takes care of. > > Do you mean to generate something like .config? If yes, then IMO it would > not be a correct configuration file. A fragment to be appended to your current .config. After that, an additional run of "make oldconfig" should (hopefully) bring everything into good shape. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds