Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp826209ybi; Wed, 3 Jul 2019 05:19:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwayGKp+/lVNUMidcp0ruhk3Crx8PTGRdjq7Lg+SBFj+A/6R2hrd7FyauysCyd7f2iWzQgo X-Received: by 2002:a17:90a:d997:: with SMTP id d23mr11878287pjv.84.1562156399104; Wed, 03 Jul 2019 05:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562156399; cv=none; d=google.com; s=arc-20160816; b=FeuHAnbJpPOsL/7Cy5E977pQ3e8xUGwTtjLqj4hkN1nUwscYqLJ1BXU2HthMUWNjDG n5HAuN7m1LVsP6G8fgEtjyK0cfOU4ohm2Pujnj+WuSlWpYymlEfKkv8S5RYWdRwS/eJ1 R0kwO7fDbcDF4wT4o3PXjdOyZULXa3lbs7uD6tE5a+MlijJNelm+lZpj2v4mkyDUgiBV dFSueiNgIKdFaYz7ajSKup4nDqetNjatPGkWlV8pz+d166TSgUAesujVHM+1upnMEWuD 0f30O1vIBGunXGseXBugTfHE8aeBcrjac8mjZ3I2WnXRV6TrmL/XmrxtwtWMVwn05JiV UQGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=gBS9B/+JQduL7VGj4ZBPde46YV7u/ObJZ40fl3ix5HA=; b=J0C4qPP23f6nlqmvMUhZkeTFOoXAWdI1HtDLjF/o0Hb0AIjcYJmeBf/O0bCe0EoulA qKnvwddjr6q6jfi7WrlVBHqTJSs91wrAIHyXks9KwZAYd4DpAyXVh/CgdCAH430rPnKT 7SrUTedxol0anQVIYtFWLIuJMxvVPyEXLVKdgCfAJZF0pj6f6pG9BsCrVrOCmk0Tfh8u ozo0f1p9SV2kOMt80LtJNgAEcEcPL7t57lnqMgob8odOZK4x9POdvUzuna8meTgoEFiC Iz7UZ5PEkZNqLw82UPUmhC4BtSf/f+lKeS1Sh6k03ns7ZIbx0FgZAyAxdZNQ9cUpF9It C4kw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si2370846pfn.104.2019.07.03.05.19.44; Wed, 03 Jul 2019 05:19:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbfGCMS5 (ORCPT + 99 others); Wed, 3 Jul 2019 08:18:57 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:57023 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfGCMS5 (ORCPT ); Wed, 3 Jul 2019 08:18:57 -0400 Received: from [192.168.1.110] ([95.114.150.241]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFbmS-1hkIsC3VvC-00H6cu; Wed, 03 Jul 2019 14:16:55 +0200 Subject: Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute To: Luis Chamberlain , Christoph Hellwig Cc: Brendan Higgins , Cristina Moraru , "vegard.nossum@gmail.com" , Valentin Rothberg , Hannes Reinecke , Sam Ravnborg , Michal Marek , "linux-kernel@vger.kernel.org" , Tom Gundersen , Kay Sievers , Rusty Russell , Andrew Morton , backports@vger.kernel.org, Guenter Roeck , Greg Kroah-Hartman , "rafael.j.wysocki" , Dmitry Torokhov , Takashi Iwai , Mauro Carvalho Chehab , Johannes Berg , Hauke Mehrtens , Paul Bolle , Paul Gortmaker , Alexey Khoroshilov , Sathya Prakash Veerichetty , "Martin K. Petersen" , Laurence Oberman , Johannes Thumshirn , Tejun Heo , Jej B , Theodore Ts'o , Daniel Jonsson , Andrzej Wasowski References: <1471462023-119645-1-git-send-email-cristina.moraru09@gmail.com> <20160818175505.GM3296@wotan.suse.de> <20160825074313.GC18622@lst.de> <20160825201919.GE3296@wotan.suse.de> <20190627045052.GA7594@lst.de> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: <40f70582-c16a-7de0-cfd6-c7d5ff9ead71@metux.net> Date: Wed, 3 Jul 2019 14:16:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:W1x9k6V+ILJLTptyvRZZehGm7oOh188B4CLlH8SDPNOMPl6mkgL jwh0gmXALvMKQ4QkJaDBduAejwvFFp99TX7tMmfPMp6/Dpi0tkOW5Vc2SXzFeZqTGvmGb5Y HAYYNuC6Zdm3DbpjV5aoBc0pQCIBGck52IAZ0AwhayVJboHeRay4HUUcqSLO1Wf8jbO9wk1 0SCzRRtgb7tB0OH4MzTsQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WAtJgcwxvoU=:0kmEfqi451hPUIuRJpYyTG a4GnD3P2+1ZySKAR+DRfEbJgyVBnoylrvqvBwRReBdXZpfdeKejKNy3yUDAFD/7K5kXXFauYg UhzsEPInu3J1+7YyfAosnCb+hog0ydu0KyACei8pcZv1lfeffilhFcokmwQa9V1Deys0c7+81 1m+4LCKd1KxM9gVP699lhg8zFJddDWYVL3Y0+HcRBQXUYQ15r/jcozg8tGRfq2SRPfFdCYrNX SZ3ZDEEVP5Bf8g6lyEDiR/LfdaM9BBM6d4WPU8vdS4myU1mYEuzGm8YJI87RvYv+ngHEvzlNr tBjknxuzp56tuWOi+vuaCU/Cr4g9zAkdMfrlHrXNsovVHtMONkLPQAydDzvQK6WnW2kCm0m40 AeZxso0aibZqL/e48hYl/o4/ne4oe7aJihzWdOknbn4dfCW8Ee6BDTxLC6VvAJnwi03bb5UWb 2eom04i8VSqMCzLjw72ZIb0Vp8DXbYA2tkR0q8IXBGxTk5ijHGXqWCaU10TyF18Foaiwa5mwT Dvx6tqdMfkyWaz3LM4wU0XeHurVba/ZFK/iYtD4FumEc8yUseDNoe8qR7pIOxMivxAbvCzgRn Has1Um8+1KKg/fmi253tN7Ie8lreycS5eGqFKk+jqlWvFYzjxBKSk4tEx+k3Hencsm/KzkRwT GRUt6KTYYgS9LNoDVeSH37fwr3MRgTvqa39ybtVakFxB/X99d8YuWLvQzYNrKSCuW2hnoxB6a a13bmJgK7Yj2qw9kJLymTcKC7AH3GNmVyGabQMc8x5cBqEB8PiBezdDgtdE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.06.19 20:40, Luis Chamberlain wrote: Hi folks, > The solution puts forward a mechanism to add a kconfig_symb where we> are 100% certain we have a direct module --> config mapping. Okay, but IIRC this will add more boilerplate those modules. And I wonder whether target binaries are the right place for those things at all - IMHO that's something one wants to derive from the source code / .config's. At least in the cases I'm imagining, I don't even have an actual kernel running on the corresponding target yet. (eg. in crosscompile situations) OTOH, a more pressing problem for me is identifying the right drivers and corresponding config options (usually plural, as certain subsystems have to be enabled, too) by hardware information like DT, ACPI, DMI, PCI, etc. For now, I have to do that manually, which is pretty time consuming. In embedded world, we often have scenarios where we want a really minimal kernel, but need to enable/disable certain hi-level peripherals in the middle of the project (eg. "oh, we also need ethernet, but we wanna drop usb"). There we'll have to find out what actual chip is, its corresponding driver, required subsystems, etc, and also kick off everything we don't need anymore. I've thought about implementing some actual dependency tracking (at least recording the auto-enabled symbols), but didn't expect that to become practically usable anytime soon, so I went for a different approach: writing a little tool that allows modeling hilevel features and corresponding (potentially board-specific) config syms, so the whole .config for certain board and usecase can be autogenerated by just some small meta-configuration: https://github.com/metux/kmct Maybe this could also help for your usecase ? --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287