From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +DV9GFANjWFpeAAAgWs5BA (envelope-from ) for ; Thu, 11 Nov 2021 13:32:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 5gwLFFANjWEbRQAAbx9fmQ (envelope-from ) for ; Thu, 11 Nov 2021 12:32:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D6858155A9 for ; Thu, 11 Nov 2021 13:32:15 +0100 (CET) Received: from localhost ([::1]:57658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml9FW-00070D-0k for larch@yhetil.org; Thu, 11 Nov 2021 07:32:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml9FJ-000702-VP for help-guix@gnu.org; Thu, 11 Nov 2021 07:32:01 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:16323) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml9FH-0007Ns-MW for help-guix@gnu.org; Thu, 11 Nov 2021 07:32:01 -0500 Date: Thu, 11 Nov 2021 12:31:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636633905; bh=M2IJ05utrVuO70z8mwkUa4qxeH0rjVhmU/airyMPHSI=; h=Date:To:From:Reply-To:Subject:From; b=pVEvyyGFXHEszOgGWbI4M9T3ES68ezRxp4Pnd+mMUghilDxoaqCEfWJxwXtvyMDx0 ZOXYYRUf5J+Ve09Dnr6N/ZP/XsOP9XX1aDNYFuxaUV/RP5QbPZv0U50xtr96Ci3UEu C8iMplOS14PhV0H9Cz2gy87OVGIT4Ujf0tiwMwnc= To: help-guix From: phodina Subject: Custom libre kernel configuration Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.134; envelope-from=phodina@protonmail.com; helo=mail-40134.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636633936; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=M2IJ05utrVuO70z8mwkUa4qxeH0rjVhmU/airyMPHSI=; b=GCWaT42T3MK/EsozAY5rDvUtiTF56DVe4DXvudnIwc00rBre+z1aJyepTvsYewkgCxxupL 1VwjNmnRN/eIzJ0kEMhW1HPmtKnm4C66Q50FL4mMOI9e2mpfxu7C6xJEHDpz9SyAPLsXfF K4vULbfPl3RXG0XKMStjrP8aE6uFKVid4f+P0DzOrORonv0n/KwTtOTtrYzKJrMCy+PG2y oMT5GDNzR8A8koevVm0TRUKvpzpXc19Vpb5M/PHt8d5gPlRC30XSlBmXKZ4Yhcd98DlIIj JQ5zg/NeiQRSdV5k/S+zTfg2WzgKxrxEw2inVdR+EUjcaIVzaSf1X98rMZjUZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636633936; a=rsa-sha256; cv=none; b=VzW/KK4kel5pv91aEUMPLAzYPiA2Qf2eh+w5K3A4chyFujnFqRKExIRPk1tbCOA6F0VwVY wRDSsCezehefhPg+6OYQCaLPgdAkY4ecBx9x/wKxe8xpc+ji2wgKdOG9s1JCxuHBufOTMk 3kZB26bK0oy3KBI0XVITtKXyUm2p/OLX/DqWAhwq/X+RPcqsr59GtMv+e2UsNX+ivBN/Y3 7iGbyvh11RGYjzNVmiFXNgQE7uo30tPTOpGIdeF2S0cm6UF3tDbQhVD96qvHuy7lVIBY2s QoOBm9TJvd/6Sd1PiKGxHdgnnDUfg6S+STXuOhVQHoHr/jb/G/GyHu7AOnqn+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=pVEvyyGF; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=pVEvyyGF; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: D6858155A9 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: N2aH8Q+mZ3lx Hi! I'm attempting to compile a custom linux libre kernel with several addition= al config options enabled (listed below). Unfortunately I get the following error messages: Throw to key `match-error' with args `("match" "no matching pattern" ("CONF= IG_ANDROID" . y))'. I followed the blog post[1] on customizing kernel. Downloaded the sources and checked for the options in menuconfig: tar xf $(guix build linux-libre --source) guix environment linux-libre --ad-hoc ncurses -- make menuconfig Could you please give me hint on what I'm doing wrong? Petr --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -722,6 +722,14 @@ (define %bpf-extra-linux-options ;; kheaders module ("CONFIG_IKHEADERS" . #t))) +(define %waydroid-extra-linux-options + `(;; Modules required for waydroid: + ("CONFIG_ASHMEM" . m) + ("CONFIG_ANDROID" . y) + ("CONFIG_ANDROID_BINDER_IPC" . m) + ("CONFIG_ANDROID_BINDERFS" . n) + ("CONFIG_ANDROID_BINDER_DEVICES" . "binder,hwbinder,vndbinder"))) + (define (config->string options) (string-join (map (match-lambda ((option . 'm) @@ -1143,6 +1151,25 @@ (define-public linux-libre-mips64el-fuloong2e `(("CONFIG_OVERLAY_FS" . m)) %default-extra-linux-options))) +(define-public linux-libre-with-waydroid + (let ((base-linux-libre + (make-linux-libre* + linux-libre-5.14-version + linux-libre-5.14-gnu-revision + linux-libre-5.14-source + '("x86_64-linux" "i686-linux" "armhf-linux" + "aarch64-linux" "riscv64-linux") + #:extra-version "bpf" + #:configuration-file kernel-config + #:extra-options + (append %bpf-extra-linux-options + %waydroid-extra-linux-options + %default-extra-linux-options)))) + (package + (inherit base-linux-libre) + (name "linux-libre-waydroid") + (inputs `(("cpio" ,cpio) ,@(package-inputs base-linux-libre)))))) + (define-public linux-libre-with-bpf (let ((base-linux-libre (make-linux-libre* --- [1] https://guix.gnu.org/en/blog/2019/creating-and-using-a-custom-linux-ker= nel-on-guix-system