Build and load binder/ashmem kernel modules on service start

As both kernel modules are not part of the standard Ubuntu kernel we
need to build and load them at runtime. We bundle this together with
the container manager start and reuse the classic snap scripts to do
the actual build in a proper environment.
This commit is contained in:
Simon Fels 2016-12-13 13:50:04 +01:00
commit 7f564c55eb
5 changed files with 206 additions and 0 deletions

View file

@ -29,6 +29,9 @@ parts:
files:
system.img: system.img
ramdisk.img: ramdisk.img
kernel-modules:
plugin: dump
source: kernel
anbox-common:
plugin: copy
source: .
@ -36,10 +39,16 @@ parts:
scripts/snap-wrapper.sh: bin/anbox-wrapper.sh
scripts/container-manager.sh: bin/container-manager.sh
scripts/anbox-bridge.sh: bin/anbox-bridge.sh
scripts/classic: bin/classic
scripts/classic-create: bin/classic-create
scripts/classic-reset: bin/classic-reset
snap:
- bin/anbox-bridge.sh
- bin/anbox-wrapper.sh
- bin/container-manager.sh
- bin/classic
- bin/classic-create
- bin/classic-reset
apparmor:
plugin: nil
stage-packages: