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 4JOGFKRyj2HOnwAAgWs5BA (envelope-from ) for ; Sat, 13 Nov 2021 09:09:08 +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 gCYhEKRyj2GjDQAAbx9fmQ (envelope-from ) for ; Sat, 13 Nov 2021 08:09:08 +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 DC3011D693 for ; Sat, 13 Nov 2021 09:09:07 +0100 (CET) Received: from localhost ([::1]:56998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlo5z-0007lS-2S for larch@yhetil.org; Sat, 13 Nov 2021 03:09:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlo5m-0007lF-Ty for help-guix@gnu.org; Sat, 13 Nov 2021 03:08:54 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]:52277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlo5k-0006Kx-8Z for help-guix@gnu.org; Sat, 13 Nov 2021 03:08:54 -0500 Date: Sat, 13 Nov 2021 08:08:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636790923; bh=+x8dzmuzbwfUji366GhdChTj2DWXd5SkT1h8fHQHPMs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=nKjTQEPnBJ+BlaKfh4L7qXKqcsXoSU9iZuqgKhReWVmKnlx18gJ6ZiaaukUf/ap58 N++IepZpWvlhtXTykomiauoQj9kb4+RQgvKecQpohi2GQfjxjrCIMlinnuPgCzzqjD SPsdPUyF9DP4Vmt5qsJOtbKkDXoU1Ezhe7cJO924= To: Tobias Geerinckx-Rice From: phodina Cc: help-guix Subject: Re: Custom libre kernel configuration Message-ID: In-Reply-To: <877dddhrcp.fsf@nckx> References: <2cc0eaa33fd6bd50b5ecc0dab0ef2491@tobias.gr> <877dddhrcp.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.22; envelope-from=phodina@protonmail.com; helo=mail-4322.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_H2=-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=1636790948; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+x8dzmuzbwfUji366GhdChTj2DWXd5SkT1h8fHQHPMs=; b=FuZDwQ62RLhYuFxmmKd7X7p/jbI59z0ZF3kfWE+0eA+mGfDZPj+vRuZp5exrJKtHXvNmMq NHJu0ReIL2ytaRv13NSSsyQZVB4ulxBISi9NHkZieEHGNoSM3EWsse905Cgp1qzenTlZqc /sxqhcyliOObBNFl24QV3L+REE+j2FCa5Y90kRKgx33YKou7SP8OpXKAAZa+CBLDZOcgY5 NpNZsfxquso/bTeLfi3yNyPyvdmN97RXdApQv5jkcbgxJgxNX8fvBLDYTk+KjX8i9yy12j R+Pljb+wc8dTGq/JXbvf+yNs6z/JA8oWs6EKQ3Iuco7D2pJ0PW+0O/SIudNglg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636790948; a=rsa-sha256; cv=none; b=KtcYOLwmQ34Lc5c+Qet5Ktg7JyzmFRPw+34c0CtGrs5ylewmSYe8bqSnXQiCyPOEGd5bJ4 xA1tK3tR/JGzDvl3HYBHio0bCoRpvB0JfJOnmB9XhbICAZU3Acr1M4j/t6cBlHQNkG+vVr OekkEhToaD4OA6aMMGmx0+bUEcQq3m3ugnzjSzlivDh1JjiB/xg/DlLJsiNeV+MVmjg1t8 3Gk63sy691W6hYBBA/hBRjf8lHp1i6o0AGGU+IhrozLelz+xrnYI+2hSaAGwakIJmxAmld Bjhll33dFx+OVHXUQ3A4yIfIA1tsfICBYsl9mTHDaMU1opPHcK2psmXR+hHBJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=nKjTQEPn; 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: -4.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=nKjTQEPn; 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: DC3011D693 X-Spam-Score: -4.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: iFikeMFkACDq Thanks Tobia, > You're not matching numbers here: =E2=80=98number=E2=80=99 is your chosen= variable name, not magic. It could be =E2=80=98foo=E2=80=99. It could be a= nything, without changing the effect of this code. > > > ((option . string) > > (string-append option "=3D\\"" string > = "\\""))) > > > > This will never be reached. > > I'm almost certain that this is, at least in part, why your BINDER config= uration isn't taking effect. > > Here's mine: > > (define option->string > > (match-lambda ((option . #f) > > (format #f "# ~a is not set" option)) > > ((option . #t) > > (format #f "~a=3Dy" option)) > > ((option . 'm) > > (format #f "~a=3Dm" option)) > > ((option . (? number? value)) > > (format #f "~a=3D~a" option value)) > > ((option . (? string? value)) > > (format #f "~a=3D\"~a\"" option value)))) > > Kind regards, > > T G-R I took your changes and applied them to the code: (define (config->string options) (string-join (map (match-lambda ((option . #f) (format #f "# ~a is not set" option)) ((option . #t) (format #f "~a=3Dy" option)) ((option . 'm) (format #f "~a=3Dm" option)) ((option . (? number? value)) (format #f "~a=3D~a" option value)) ((option . (? string? value)) (format #f "~a=3D\"~a\"" option value))) options) "\n")) However, the CONFIG_ANDROID_BINDER_IPC is still not part of the config :-/ $ grep BINDER .config # CONFIG_ANDROID_BINDER_IPC is not set The Guix part of generating the code is fine though. Thanks. So I digged little deeper and it seems that they have to be compiled into t= he kernel. $ tar xf $(guix build linux-libre --source) $ cd linux-5.14.17 $ guix environment linux --ad-hoc ncurses pkg-config -- make MENUCONFIG_COL= OR=3Dmono menuconfig $ grep ANDROID .config CONFIG_ANDROID=3Dy CONFIG_ANDROID_BINDER_IPC=3Dy CONFIG_ANDROID_BINDERFS=3Dy CONFIG_ANDROID_BINDER_DEVICES=3D"binder,hwbinder,vndbinder" # CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set Though the issue seems to come from the Archlinux Wiki[1] where they supply= wrong CONFIG options. Kind regards Petr [1] https://wiki.archlinux.org/title/Waydroid