Skip to content

Commit

Permalink
feat:[close #14] add binder+ashmem modules for waydroid (#31)
Browse files Browse the repository at this point in the history
Adds Binder and Ashmem kernel modules to ensure that waydroid functions
properly.

Closes #14
  • Loading branch information
mirkobrombin authored Jan 1, 2024
2 parents e92dfd3 + 42eaddc commit 7110709
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes.container/etc/modules.load.d/waydroid.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
binder_linux
ashmem_linux
2 changes: 2 additions & 0 deletions includes.container/etc/udev/rules.d/99-waydroid.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
KERNEL=="binder", NAME="%k", MODE="0666"
KERNEL=="ashmem", NAMe="%k", MODE="0666"
24 changes: 24 additions & 0 deletions modules/02-waydroid-modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: waydroid-modules
type: shell
commands:
- cp -rT /sources/waydroid-modules/binder /usr/src/waydroid-binder-1
- cp -rT /sources/waydroid-modules/ashmem /usr/src/waydroid-ashmem-1
- dkms install waydroid-binder/1 -k $(ls /usr/src | grep -Po '[0-9].[0-9].[0-9].*$' | head -1)
- dkms install waydroid-ashmem/1 -k $(ls /usr/src | grep -Po '[0-9].[0-9].[0-9].*$' | head -1)
source:
type: git
url: https://github.com/choff/anbox-modules.git
branch: master
commit: latest
modules:
- name: waydroid-deps-install
type: apt
source:
packages:
- dkms
modules:
- name: dkms-linux-headers
type: shell
commands:
- apt install -y linux-headers-amd64

1 change: 1 addition & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ modules:
- modules/00-vanilla-system-operator
- modules/00-vanilla-apx-gui
- modules/01-vanilla-cleanup
- modules/02-waydroid-modules
- modules/20-gnome-core
- modules/30-gnome-essentials
- modules/40-gnome-appearance
Expand Down

0 comments on commit 7110709

Please sign in to comment.