Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:[close #14] add binder+ashmem modules for waydroid #31

Merged
merged 9 commits into from
Jan 1, 2024
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