From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68375C35641 for ; Sat, 22 Feb 2020 00:16:12 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DC9620675 for ; Sat, 22 Feb 2020 00:16:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DC9620675 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1j5ISO-0006as-Ts; Fri, 21 Feb 2020 19:15:44 -0500 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1j5ISM-0006aj-Ul for kernelnewbies@kernelnewbies.org; Fri, 21 Feb 2020 19:15:43 -0500 Received: from mr1.cc.vt.edu (mr1.cc.ipv6.vt.edu [IPv6:2607:b400:92:8300:0:31:1732:8aa4]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 01M0FfEo023593 for ; Fri, 21 Feb 2020 19:15:41 -0500 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mr1.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 01M0Fajj019784 for ; Fri, 21 Feb 2020 19:15:41 -0500 Received: by mail-qk1-f197.google.com with SMTP id z124so2999151qkd.20 for ; Fri, 21 Feb 2020 16:15:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=aVqSaun/DeyIlX7lsw0dEu8SAq2sQPDMppGMUHm8EDM=; b=YMR59R+c6P891GGzEKA9tjsGRgI35E6N6nxjVIf9oruEIEHd+4eUhAj2zs0GXDj7Ua r6vXlOZzyUKuDnxyzI/Kvm+2A4djI7EZkXx1vnCr7QLu/55x15ggknm60zJzzW7yakVO /6K3YaF80OeBAfTWmpUy63CIF+pU2owYFjSBLnuQTScqmNPTmhOEWo9zX3NSxkIWQSXj jx0egEmGdVLfqdPjCGfuDfw37UMHpdtSq1ArGi9DSGoODs+iQtNeYxAGyQngW6Vv2psX Un1mgnvAKPX9bNNbB05Ro5mDwnBW81I/iim4vQEtSYGz7h9gvvBUit5GvsJa1ARmf6Ck OaNw== X-Gm-Message-State: APjAAAXWyUzw3kOLtECQUha9wKTxqjEUfWcxRH4ZjdZC8vcvBmWdCkz9 Y1qXJsC+ACSU1qhDonfRmiEx2aFEbhGIqM96CG0voemrSesSUpfjM3A6B8zqtT3ZIRrbIBwGt+M vSNVyq9n2vuTjh6sWZ4tvXJ+powZt1oUi4hb0WDU= X-Received: by 2002:ac8:1206:: with SMTP id x6mr35247611qti.55.1582330536211; Fri, 21 Feb 2020 16:15:36 -0800 (PST) X-Google-Smtp-Source: APXvYqynRFra7FepRFCuVCDhEBH8WsSSPmB50GgBQT6YqEy9ko0mSF6CoqsUwxylent8lV4qS/ocWQ== X-Received: by 2002:ac8:1206:: with SMTP id x6mr35247581qti.55.1582330535877; Fri, 21 Feb 2020 16:15:35 -0800 (PST) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id d3sm2334046qkl.0.2020.02.21.16.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 16:15:34 -0800 (PST) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Enzo Desiage Subject: Re: .config In-Reply-To: References: Mime-Version: 1.0 Date: Fri, 21 Feb 2020 19:15:33 -0500 Message-ID: <125650.1582330533@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0476545686563199451==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============0476545686563199451== Content-Type: multipart/signed; boundary="==_Exmh_1582330532_2081P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1582330532_2081P Content-Type: text/plain; charset=us-ascii On Fri, 21 Feb 2020 23:41:10 +0000, Enzo Desiage said: > modules I actually need (thanks find_all_modules.sh). I'm trying to devise > a strategy to take the output of that script and make a brand new minimal > .config file. However, the only solution I've found is doing it manually > via make menuconfig. This seems to be a rather long process, which I > wouldn't mind doing if there aren't any other alternatives. > Is there any other way? Step 1: Plug in all your USB widgets and storage and other hot-pluggables long enough for the kernel to load each device's drivers. Step 2: 'make localmodconfig'. This will create a .config that only has those modules that were actually loaded at the time (there's also an option to take the output of an 'lsmod', in case you're doing the builds on a different machine) --==_Exmh_1582330532_2081P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXlBypAdmEQWDXROgAQJswQ//atqRalN+xQ0/KC2FTw9McPICi9T9iiX1 ETzt905lUUiNtc1JbIfFjHAmb352qAM1m4exDezK3QxMDpvDwxWRg6sGGGKLPUJD 8MZkUFS78A5nEJzAdS7b9xuK81f2Es21g9IIxsXoSFy/X3CmFe6VJ+Ufc1CvJkn1 auyCuL86fWBLdoujVkO6Qks3SQMibljbZLWRcoEgYSzGDiTdlv6VIQIWro3ZeTTG xzMHiVaCypxoVB5U7rV5XU7CH+9IttPkS4bpHFiIe8f2zVVYYgJNEveQOblYkbzK Q7bYEaSNeou74RNreM4bJKB1UiHZii+O2VIazJMdS2r9qxs7HZoVq6ZjEGArea9/ h8vpktFHi9MVc+LkHPaE0f0XmN+YfePMVyT9THhpt1MqKK5Gv1MPZA9jrp9IdvUB J/zU3w9L0XLUworXsDRPhv7ng3Jhfo6K3Zl7hSco2Au3YqqfLmqO+Rp8rRum8y12 232SHS9yvQrt/g6qc5OYrbcNR6ViCm45CNVtSgLPWM8BWRvh87dB+eywORU44DlT amJkK/AoY8IhnA7P/mMJHJOheQr6HrscemX3p/Oq7Vl9RorZMYQ6eD/vCm325E3c QI3lJdxSd7joiXaXyJnnc5JgbYt8ACSuMlq2uIV45gA174T912DEyRw+uXdXOKXN H4XQEsvD+w8= =VlmX -----END PGP SIGNATURE----- --==_Exmh_1582330532_2081P-- --===============0476545686563199451== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============0476545686563199451==--