From: phodina via Guix-patches via <guix-patches@gnu.org>
To: "51771@debbugs.gnu.org" <51771@debbugs.gnu.org>
Subject: [bug#51771] [PATCH 2/2] gnu: Add linux-libre-with-waydroid.
Date: Thu, 11 Nov 2021 19:04:55 +0000 [thread overview]
Message-ID: <vT1t7q1nSybGdcbnNv0gBkOmsLDQKTpuvLjBmsObWL0vH3rxO_vtPlSdqRKap4nKqivgnqL4pQi0LUmjJ66XJMqDTdAOmmgyn3Pcg3BMmO8=@protonmail.com> (raw)
In-Reply-To: <iOvT9g1d7_K-thdi2Zsdn4SxPyMuPrPFP6k121oLlG67EGRxi5tPyWOE8vb3jvCfsgZPQ13b7dKWRdVdAY6VCXV0goFY5AYOPBRV4nsvdRA=@protonmail.com>
* gnu/packages/linux.scm (linux-libre-with-waydroid,
* waydroid-extra-linux-options): New variables.
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ffbaed0c57..2ec9c88ecb 100644
--- 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" . #t)
+ ("CONFIG_ANDROID_BINDER_IPC" . m)
+ ("CONFIG_ANDROID_BINDERFS" . #f)
+ ("CONFIG_ANDROID_BINDER_DEVICES" . "binder,hwbinder,vndbinder")))
+
(define (config->string options)
(string-join (map (match-lambda
((option . 'm)
@@ -1147,6 +1155,24 @@ (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 "linux"
+ #:configuration-file kernel-config
+ #:extra-options
+ (append %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*
--
2.33.0
next prev parent reply other threads:[~2021-11-11 19:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-11 19:02 [bug#51771] [PATCH 1/2] gnu: linux: Support numbers and strings in options phodina via Guix-patches via
2021-11-11 19:04 ` phodina via Guix-patches via [this message]
2021-11-13 10:49 ` [bug#51771] [PATCH 2/2] gnu: Add linux-libre-with-waydroid phodina via Guix-patches via
2021-11-13 10:53 ` [bug#51771] Linux-libre-with-waydroid phodina via Guix-patches via
2022-03-24 13:30 ` phodina via Guix-patches via
2022-04-14 8:07 ` phodina via Guix-patches via
2021-11-11 19:31 ` [bug#51771] Binder kernel module missing phodina via Guix-patches via
2021-11-13 10:50 ` [bug#51771] [PATCH v2 2/2] gnu: Add linux-libre-with-waydroid phodina via Guix-patches via
2024-04-08 20:27 ` [bug#51771] %5BPATCH%201%2F2%5D%20gnu%3A%20linux%3A%20Support%20numbers%20and%20strings%20in%20options outlook user
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='vT1t7q1nSybGdcbnNv0gBkOmsLDQKTpuvLjBmsObWL0vH3rxO_vtPlSdqRKap4nKqivgnqL4pQi0LUmjJ66XJMqDTdAOmmgyn3Pcg3BMmO8=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=51771@debbugs.gnu.org \
--cc=phodina@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.