Commit graph

45 commits

Author SHA1 Message Date
Simon Fels
7dde2d9fdf snap: cleanup and small refactoring
We're using the desktop helpers now to setup all necessary environment
variables for GL drivers etc. and only keep a small set of extra changes
on top for things the desktop-helpers don't support yet.
2018-05-18 19:38:05 +02:00
Simon Fels
5070880428 external: import local copy of GLM 0.9.7.2
This allows building against the same version of GLM across all targets
and not deal with API changes of newer GLM versions which introduce
regressions. Long term we want to migrate away from GLM and stick to a
minimal self-written subset.
2018-05-18 19:37:52 +02:00
王振华 (WANG Zhenhua)
4566aedd68 snap build: prefer local android.img rather than always download
Previously we always load android.img from server when building snap.
Now, build with <ANBOX>/android-images/android.img if there is one.
2017-07-28 09:50:20 +08:00
Simon Fels
531dcd8c68 Add simple script to collect various relevant log files for a bug report 2017-07-27 09:24:52 +02:00
Simon Fels
a127a9115e Update android image
* Don't crash inside AlarmManager when PendingIntent is not set
2017-07-14 19:56:44 +02:00
Simon Fels
86bcf0c4fb Merge pull request #348 from morphis/f/add-lxc-tools
Add a few more lxc tools as part of the snap
2017-07-10 21:41:16 +02:00
Simon Fels
da36f20f11 Add a few more lxc tools as part of the snap 2017-07-10 09:59:03 +02:00
Simon Fels
9f00ec3397 Add slot definitions for our dbus service 2017-07-10 09:58:33 +02:00
Simon Fels
90d0f46495 Update to newer Android image
Changes:

 * Android system log is now dumped into $ANDROID_DATA/system.log so
   it can be accessed without adb and logcat
 * Fix SEGV in art on newer kernels with CVE-2017-1000364 fixed

Fixes #337
2017-07-07 10:44:17 +02:00
Simon Fels
43ee622f20 Add support to download architecture specific image 2017-06-19 21:43:21 +02:00
Simon Fels
4ff35c2026 Pass snap version to correct cmake variable 2017-06-07 07:41:11 +02:00
Simon Fels
dc21069ae1 Rework versioning to include git rev in snap version 2017-06-03 14:02:04 +02:00
Simon Fels
c8621e4b97 Bump snap version to 3 2017-05-27 20:35:52 +02:00
Simon Fels
da20611a6c Merge pull request #214 from morphis/f/fork-session-mgr
Start session manager when not already running
2017-05-07 12:05:53 +02:00
Simon Fels
45ac3ecf6a Set version we're building from snapcraft 2017-05-05 07:51:55 +02:00
Simon Fels
f61a7f91d6 Use a full screen loading image which includes some text 2017-05-03 20:47:40 +02:00
Simon Fels
817f80d6bd Add missing build dependency on libsdl2-image-dev 2017-05-03 08:28:56 +02:00
Simon Fels
fe0dba3b82 Bump snap version to 2 2017-04-29 12:14:29 +02:00
Simon Fels
2e479e26ee Fix a few things in snapcraft.yaml to get the build back working 2017-04-12 19:09:14 +02:00
Simon Fels
c5c5df85dc Move snapcraft.yaml back to our toplevel directory 2017-04-12 19:09:14 +02:00
Simon Fels
03cb2fe4ff Move snap packaging bits into packaging/ subdirectory 2017-04-08 14:09:21 +02:00
Simon Fels
4162e4b7b5 Use upstream lxc instead of patched one 2017-04-08 13:55:13 +02:00
Simon Fels
8d0ccb9447 Migrate from copy to dump and from snap to prime keywords 2017-04-05 08:45:15 +02:00
Simon Fels
8717d6d173 Add missing build dependencies 2017-04-05 08:44:44 +02:00
Simon Fels
4e64e7ffda Use a -dev suffix for our version as long as we're in development 2017-03-15 07:20:00 +01:00
Simon Fels
f51669d17b Drop classic scripts used for kernel module building 2017-02-07 12:12:23 +01:00
Simon Fels
2e3a82c429 Remove kernel module building inside the snap 2017-02-07 12:12:23 +01:00
Simon Fels
fba0b8215d Add missing dependency on boost-test 2017-01-31 08:47:58 +01:00
Simon Fels
51489edbfc Don't build snap in debug mode anymore 2017-01-31 08:47:58 +01:00
Simon Fels
8caaa1f35c Drop leftover things from snapcraft build configuration 2017-01-05 10:34:18 +01:00
Simon Fels
45dd1cd498 Only package the single android image file our scripts generate 2017-01-05 10:16:48 +01:00
Simon Fels
0c234ed673 Fetch android image files from a specific subfolder 2016-12-15 08:49:26 +01:00
Simon Fels
7f564c55eb 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.
2016-12-13 13:51:40 +01:00
Simon Fels
cbb4beaac2 Restructure container manager startup script
Mount /cache and /data properly and stop bridge correctly.
2016-12-08 17:08:18 +01:00
Simon Fels
6860338c4b Use disk images instead of a rootfs tarball 2016-12-05 10:06:48 +01:00
Simon Fels
a86a5847f8 Start bridge as part of the container manager 2016-12-04 17:16:55 +01:00
Simon Fels
a8704556da Unload AppArmor profile for container management process
If we run the management process with the AppArmor profile loaded
from snap-confine various ashmem/binder operations are failing with
permission denied errors. To workaround this until this problem
is fixed we simply unload the AppArmor profile and continue to
execute completely without any profile loaded.
2016-12-04 17:07:44 +01:00
Simon Fels
cb9814fb02 Don't supply any argument for anbox command 2016-12-03 17:11:50 +01:00
Simon Fels
6d2b39cb68 Drop kernel modules and shell from snap
We have adb now available and kernel module support need to be solved
differently.
2016-11-27 16:04:41 +01:00
Simon Fels
fd2c833b95 Add bridge as part of the snap 2016-11-26 13:44:18 +01:00
Simon Fels
113a06590a Launch container manager as daemon 2016-10-21 19:55:22 +02:00
Simon Fels
a87fe63cca Add snap application for container shell 2016-10-21 19:55:22 +02:00
Simon Fels
d5891765bb Further improvements for the snap packaging 2016-09-17 10:54:00 +02:00
Simon Fels
117111ce20 Extend snap packaging with further details 2016-09-17 10:48:07 +02:00
Simon Fels
15995d43ea Add snap build support 2016-08-05 19:35:19 +02:00