Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2513294rwp; Fri, 14 Jul 2023 07:17:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGM4XhEqUcGryrAVKEMDlzJm7lmIRGDWtJp/AOIeORns1T/n982Ih8dBwoHvc6oj3HhQZQV X-Received: by 2002:a05:6a20:1d5:b0:132:f3c0:c743 with SMTP id 21-20020a056a2001d500b00132f3c0c743mr3853106pzz.61.1689344235624; Fri, 14 Jul 2023 07:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689344235; cv=none; d=google.com; s=arc-20160816; b=lcc1Dru19D+2aNRDjuhZ4iiV9MvC6o2UGNBWj956PH3S7+Pc1acYDcFc+CiKitDdt9 fW/IL9zlX+aN3ySd/JZ6qs0jb2zS18YvM7ri36f4HLCMC25jp2Xa8MO/XRgIf/aofzaH aBn2D583V0030HOC12y+5gX+fNyQT055Nlh6c9JNyVAO2uwI57pEVFe2c1+LlIAgs3ke oPKZbkkxI6gOddxbw9FRkvdpMnP3sD0EZyCDZn/jrAhROkwf9nC4rteVyZJXo6Mmdyfg ku0O8sDQZ/wEoE1rrQOAdgXL+9MDQgBhGB7zjarGjnfGBdl3pr3P/ZaLaRdPOJVADpJM /K8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=Epn4M12EMMtIKIyIZc7yfNtOd8tKd2U0+jthECcmPvQ=; fh=osrFv9NYlMUPZNYHLxGA+QcrTwVGCoeLQZcEEEWoxUM=; b=U5jW5qV1uZ5YyPeldTnF+UoGHu/EynqSMMlIcAsYxeZgJkbisLXDtExN+vPtrNsVmv Ubjy0oNfSEtSMs6kWKEt8F4Hwt+ElWcbgCFE6xQP/OPSIjLxe4RuJdJyv4jvOX8sTGIM 0QAs2UvNNNN/7y6v0Dx/4HwDr90qoTbYx+YiiKfpuLz4Z9Y/V2fglkzYwsULyXkYUCyo siSdaZrzOhad9sDY05CmLYwjkgPDBP1cu+kapxOZt37MvNzXYGFUlaeqjqefJpfnMrWl q4Hx2ntnZfABCYd5nAUvz7IGkjLfLz4GLfpbBJrkmgN2OOx4+2UWMXpUOi1YGtpr42S7 bRFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rfT7n0Lg; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=7gCaZnBO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a656811000000b005503f25aac2si7255815pgt.241.2023.07.14.07.17.03; Fri, 14 Jul 2023 07:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rfT7n0Lg; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=7gCaZnBO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235274AbjGNOCf (ORCPT + 99 others); Fri, 14 Jul 2023 10:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235815AbjGNOCd (ORCPT ); Fri, 14 Jul 2023 10:02:33 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D32F269F; Fri, 14 Jul 2023 07:02:32 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 445C81F750; Fri, 14 Jul 2023 14:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689343351; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Epn4M12EMMtIKIyIZc7yfNtOd8tKd2U0+jthECcmPvQ=; b=rfT7n0LgxtPmC4nzmdf7Syi+PrKAu8elVuE5rsv7TwOwbDBudf3ui9z6FNQM8DKsmo4W9J +gMmYQI4ZzT1fSue4GAL2h/yhfmly77Qg6+LLDRljkUelt2xzODFjd/WzVsFImunhmArJ2 IqFXEsSSAo3G6gfmDJqVdVMHpl67BaM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689343351; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Epn4M12EMMtIKIyIZc7yfNtOd8tKd2U0+jthECcmPvQ=; b=7gCaZnBOYP7FxVS7nvoijBmJHxjFD+Q1UMxUAcrZxnYex5CIxZj9fSgzkAPMbQb7sawjhb 3qfcJ1K6YdP/oDAw== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id DF1102C142; Fri, 14 Jul 2023 14:02:30 +0000 (UTC) Date: Fri, 14 Jul 2023 16:02:29 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Jan Engelhardt Cc: linux-modules@vger.kernel.org, Takashi Iwai , Lucas De Marchi , Michal =?iso-8859-1?Q?Koutn=FD?= , Jiri Slaby , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH kmod v2 3/4] kmod: Add config command to show compile time configuration as JSON Message-ID: <20230714140229.GJ9196@kitsune.suse.cz> References: <20230711153126.28876-1-msuchanek@suse.de> <20230712140103.5468-3-msuchanek@suse.de> <429o975-ro63-o94r-qs96-76ro6o28on5@vanv.qr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <429o975-ro63-o94r-qs96-76ro6o28on5@vanv.qr> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Jul 14, 2023 at 03:52:05PM +0200, Jan Engelhardt wrote: > > On Wednesday 2023-07-12 16:00, Michal Suchanek wrote: > > >Show prefix (where configuration files are searched/to be installed), > >module compressions, and module signatures supported. > > What about doing it like systemd and generate a .pc file instead > that can then be queried like so, e.g.: > > $ pkg-config kmod --variable=modulesdir > /usr/lib/modules - AFAICS tools packed with kernel generate but do not consume .pc files while JSON and jq are commonly used througout the kernel ecosystem - .pc files would be shipped with libkmod development package, not the kmod tool in a binary distribution Other than that JSON and .pc files are roughly quivalent in usability. Thanks Michal