Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1448960imm; Thu, 4 Oct 2018 13:54:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63jMhMMiJO9+NvAMyrbQm0I3PyQgMqDAks4j5coz6TG194kxk8ZqFg14siepRKzCkcBkjUl X-Received: by 2002:a17:902:4e:: with SMTP id 72-v6mr8353433pla.318.1538686499027; Thu, 04 Oct 2018 13:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538686498; cv=none; d=google.com; s=arc-20160816; b=k3bVBET/o9r2Fr7w5oSCjCPCv1txr0emhcVCPLhvw0Lh5AE7rNPp3eZgN48f4vxVTT TG/X/SG94j0Pl5C+9BxDKLgUHr+A5mQ1Xf1KgntrMP+03ol9S+ToSvajZ2gcyhabSQxi gEh8psMHN7+yLEpsdnUJoRCnmuRfgKaDoeJ359ORWkOpf+TwfEg0YxIkfKkzV63Rcebk jGBN3B1QqXbSqNwZ7FTQSQpBnVcQ6Rgh5FWKSFZdqdQcWsAHb3uUZZRuuNdUlaLPl05+ sFcSHjk954a4DJfX6qyMA5jlbqqtorZ4tVyOjC1TcCeq563nUc2lyDSALfU9w786mPOK /KZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TpabJRGbBcS4XfHdBIjwrj6zPMW0iqHFp2GfXLCImaY=; b=BZ+Nyt0+F/wwi+sHS+QiNx7C//OGyhmZEn7p3AHlN4piO30ZSOiNpvfE8Et43/WNkq QNjBtxuFXSO4tYpsfbqdO/yBFsqmXQmCXZbiAyKhuQ0DzekFvitHnhug7vIo9ErtoU5O xci5B+CYTaUXJW1tk3Kbt9ny+tDXTbqjE1KlclivdXniE+IoRH6vRpdsMLxAGU7Nsum5 fcqZuBDUZUTy0sb2Aw+EtAz4nEiHWvoZpaYS6eqsY9+57BZcIEfihZcqLvA+uAIr+Jbq 6b8/1pcZQxJpYUtpJPmIukVKV/lFGxY8VzGPOyEX4H2c/pH0vycv84SvAYrYeu6qtt30 ftMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138-v6si5720933pgc.218.2018.10.04.13.54.43; Thu, 04 Oct 2018 13:54:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728108AbeJEDs1 (ORCPT + 99 others); Thu, 4 Oct 2018 23:48:27 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:41033 "EHLO mail-pl1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727536AbeJEDs0 (ORCPT ); Thu, 4 Oct 2018 23:48:26 -0400 Received: by mail-pl1-f173.google.com with SMTP id q17-v6so5748829plr.8; Thu, 04 Oct 2018 13:53:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TpabJRGbBcS4XfHdBIjwrj6zPMW0iqHFp2GfXLCImaY=; b=DtO9j1tn3M7X66O0VU1FFWRSQaqr+bDUmPr+2FN1Nc0mffMe0K/DJsg32U2hIZ+NJf hdYNFGrNuxX2hQYWqQMzgfHRPGYqMeWck8WdX6G2CLbcPRCIM92rIUQWLeO2S1FuqsM2 5B+nzZYdr43Nk+SyF7PbK5/HkeEWurrizOKVXaFMHum6UQhve935w46CXgcIvGetT3Kz MzyrepTEePVGYMu370utM4seKDDMXt9BOqHnpIhuvcG2z2brGtLRE18cORXr2MSWioF/ mKqj6Auxs1103UCRp9Ys5p2CAxa5B/0lGVb8IyY/1h8HKp0F3lvdDjCbWKtRnQD5DNMd QwWg== X-Gm-Message-State: ABuFfoi9DFVMMEZIHw99doRuFuJBl2+VVvA8tDcrZ/Quh182lnx8D4VC QAHVadSLeEI5JeCMjPjLw5k= X-Received: by 2002:a17:902:9047:: with SMTP id w7-v6mr8435536plz.291.1538686403845; Thu, 04 Oct 2018 13:53:23 -0700 (PDT) Received: from garbanzo.do-not-panic.com (c-73-71-40-85.hsd1.ca.comcast.net. [73.71.40.85]) by smtp.gmail.com with ESMTPSA id t85-v6sm8269506pfi.73.2018.10.04.13.53.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 13:53:22 -0700 (PDT) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Thu, 04 Oct 2018 13:53:19 -0700 Date: Thu, 4 Oct 2018 13:53:19 -0700 From: Luis Chamberlain To: Josh Triplett Cc: LKML , linux-kbuild@vger.kernel.org, Masahiro Yamada , Randy Dunlap , Sam Ravnborg , Petr Vorel , Steven Rostedt , Johannes Berg , Valentin Rothberg , Vegard Nossum , Felix Fietkau , kconfig-sat@googlegroups.com Subject: Re: [kconfig-sat] [ANN] init-kconfig - easy way to embrace Linux's kconfig Message-ID: <20181004205319.GO5238@garbanzo.do-not-panic.com> References: <20181004200249.GL5238@garbanzo.do-not-panic.com> <20181004200859.GA10237@localhost> <20181004203950.GN5238@garbanzo.do-not-panic.com> <20181004204117.GA10640@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181004204117.GA10640@localhost> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 01:41:18PM -0700, Josh Triplett wrote: > I would *love* to see Kconfig in Linux evolved to be more easily reused. This *can* happen. Let me itemize a few things off of my head I think would need to be done as its at least fresh in my head now: All we need from scripts/Kbuild.include is filechk and kecho (what I have in my scripts/Kbuild.include). This could be moved to scripts/Kbuild.basic, and so would make sync'ing easier. The scripts/kconfig/Makefile would need a respective modifications to make it work independently, see my scripts/kconfig/Makefile. Perhaps the biggest pain was resolving the target for scripts/kconfig/.mconf-cfg. If somehow we end up with a file which could work for both environments we're set. Other than this we'd need a simple script, say scripts/copy-kconfig.sh which would copy over only those files I took from scripts/kconfig. There's a few things to consider for a split copy / demo: * versioning *is not* part of kconfig * object building *is not* part of kconfig But the problem I faced was that to demo kconfig I had to use *something* for versioning and object building. The object building is simple, and the versioning scheme was just copied from Linux. What I ended up with the smallest demo I could come up with. Luis