Commit graph

1,014 commits

Author SHA1 Message Date
Simon Fels
ae8cefb770 cmds: implement CPU feature sanity check via builtin compiler functions
To prevent our whilelist from growing much more we know do an additional
sanity check via compiler builtin functions if we cannot detect all
mandatory CPU features via the cpu_features libray and if the CPU isn't
whitelisted. This should cover more or less all remaining cases unless
the compiler is unable to detect the features properly.
2018-09-11 19:43:27 +02:00
Simon Fels
12386eba78
Merge pull request #900 from palxex/add-q720-override
Update check_features.cpp - Added override for Core i7-720QM
2018-09-11 12:03:37 +02:00
Simon Fels
444cfa3624
Merge branch 'master' into add-q720-override 2018-09-11 11:49:17 +02:00
Simon Fels
003645993f
Merge pull request #907 from ubports/env-disable-hit-test
Add option to disable sdl window hit test with envar value
2018-09-11 11:07:30 +02:00
Simon Fels
41dc35ae1b
Merge branch 'master' into add-q720-override 2018-09-11 10:49:35 +02:00
Simon Fels
656545299e
Merge branch 'master' into env-disable-hit-test 2018-09-11 10:49:24 +02:00
Simon Fels
36c4132b6a
Merge pull request #910 from fatihbalsoy/patch-1
Update check_features.cpp - Added override for Intel Xeon E5520
2018-09-11 10:46:04 +02:00
fatihbalsoy
40f190c5e2
Added back i7 Q720 to prevent merge conflicts. 2018-09-10 20:01:47 -05:00
fatihbalsoy
54bbd82120
Removed i7 from pull request, already exists. 2018-09-10 19:50:10 -05:00
fatihbalsoy
85107c46ad
Update check_features.cpp - Added override for Core i7-720QM and Xeon E5520
I also get the same SSE error on a virtual machine with an Intel Xeon Processor:
The CPU of your computer (Intel(R) Xeon(R) CPU E5520 @ 2.27GHz) does not support all
features Anbox requires.
It is missing support for the following features: SSE 4.1, SSE 4.2, SSSE 3

but checking /proc/cpuinfo reveals that it supports the features:
...
model name	: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
...
flags	: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni ssse3 sse4_1 sse4_2 x2apic hypervisor lahf_lm pti

I hope adding the following code into the array in check_features.cpp could fix the problem:
// Intel Xeon Processor E5520
"E5520"
2018-09-10 19:16:35 -05:00
Marius Gripsgard
25c44527b1 Add option to disable sdl window hit test with envar value 2018-09-09 21:10:23 +02:00
Simon Fels
02a09899f9
Merge branch 'master' into add-q720-override 2018-09-09 17:29:30 +02:00
Simon Fels
7a25b8bd5d
Merge pull request #897 from nvschilleman/master
Update check_features.cpp - Added override for Pentium T4500
2018-09-09 17:28:47 +02:00
Simon Fels
d9177f6226
Merge branch 'master' into master 2018-09-09 15:35:42 +02:00
nvschilleman
2d76da9605
Update check_features.cpp 2018-09-09 12:58:57 +02:00
Simon Fels
76260f460e
Merge branch 'master' into add-q720-override 2018-09-08 15:52:04 +02:00
Simon Fels
8febc1669d
Merge pull request #901 from morphis/enable-probot-stale-integration
Add probot stale configuration
2018-09-08 15:51:03 +02:00
Simon Fels
ab8a8094cc Add probot stale configuration
We want to get issues without activity closed after a while unless they
are marked with specific labels to keep things clean and maintainable.
2018-09-08 15:41:39 +02:00
Simon Fels
5ea30b162b
Merge branch 'master' into add-q720-override 2018-09-08 14:50:52 +02:00
Simon Fels
e6bd4370c3
Merge pull request #888 from raetiacorvus/fix-clang-build
Fix clang build errors
2018-09-08 14:50:05 +02:00
Pal Lockheart
aceed15472
Update check_features.cpp - Added override for Core i7-720QM 2018-09-08 20:35:54 +08:00
nvschilleman
202241a1c4
Update check_features.cpp 2018-09-08 00:38:39 +02:00
Simon Fels
377df406c0
Merge branch 'master' into fix-clang-build 2018-09-07 23:47:03 +02:00
Simon Fels
ec64b1b8ce
Merge pull request #896 from mrsf/master
cmds: add override for Intel Core i5 M 460
2018-09-07 23:46:51 +02:00
Márcio Francisco
ae5004b45d cmds: add override for Intel Core i5 M 460 2018-09-07 18:34:21 +01:00
Gabriel Rauter
4bbc519626 dbus: demote clang c99-extensions error to warning
This commit uses GCC friendly pragmas to demote a clang error on
C99-specific feature usage to a warning.

The C99 feature that is used here is compound literals. It gets used
trough a macro from the dbus C library.
2018-09-04 19:48:00 +02:00
Gabriel Rauter
85fb89c2f4 graphics: remove unused const variable
This removes the constexpr const char * default_glesv1_lib and promote
-Wunused-const-variable back to error level on clang.
2018-09-04 19:45:36 +02:00
Gabriel Rauter
92c2481fb9 cmds: remove unused lambda capture this
Remove a unused lambda capture on [this] in
anbox::cmds::CheckFeatures::CheckFeatures() and promote
-Wunused-lambda-capture back to error level on clang.
2018-09-04 19:45:36 +02:00
Gabriel Rauter
3c1d7e6149 dbus: remove private unused field type_
This commit removes the private unused field type_ from anbox::dbus::Bus
and promotes -Wunused-private-field back to error level on clang.
2018-09-04 19:45:29 +02:00
Simon Fels
44cfc363ac
Merge branch 'master' into fix-clang-build 2018-09-04 08:04:31 +02:00
Simon Fels
82f31f3031
Merge pull request #890 from morphis/add-n2840-override
cmds: add override for Intel Celeron N2840
2018-09-04 08:03:44 +02:00
Simon Fels
c5da3c4e4f cmds: add override for Intel Celeron N2840 2018-09-04 07:52:04 +02:00
Gabriel Rauter
0482cdb7ea dbus: fix clang compile errors
This commit downgrades the following clang compiler errors into warnings:
 * unused-private-field
 * unused-const-variable
 * unused-lambda-capture
2018-09-02 19:50:51 +02:00
Gabriel Rauter
4979b7733e cpu_features: fix clang, set cast-align to warning
Change -Wcast-align from error to warning for clang compiler by adding
the -Wno-error=cast-align compiler flag.

Fixes #881
2018-09-02 17:00:23 +02:00
Simon Fels
568a483435 cmds: allow users to change the container network configuration
In some spare situations it might be useful to change the network
configuration of the bridge and with that also the configuration of
the Android container itself. We don't validate the configuration
and just apply it no matter if it ends up with network connectivity
in the container.
2018-09-02 15:04:44 +02:00
Marius Gripsgard
7cc6fb44d9 Change option var to ENABLE_WAYLAND 2018-08-21 12:07:32 +02:00
Marius Gripsgard
75f5a8f6ab Change option var to ENABLE_TOUCH_INPUT 2018-08-21 12:07:32 +02:00
Marius Gripsgard
2b3c1f1e2d Change option var to ENABLE_MIR 2018-08-20 17:19:17 +02:00
Marius Gripsgard
b0779c0cb6 Add enable mir option (default disabled) 2018-08-20 17:19:17 +02:00
Simon Fels
e7de965e40 cmds: add cpu whitelist for features check
Not all CPUs can be detected with their correct feature set. For example
does cpu_features not work well enough when the support does not support
AVX (see https://github.com/google/cpu_features/issues/4). To mitigate
this we maintain a list of whitelisted CPU models.
2018-08-16 07:47:03 +02:00
Marius Gripsgard
24bd4f69a1 Do application reset on first store_or_update 2018-08-16 07:15:08 +02:00
Simon Fels
385150ab6b
Merge pull request #864 from ubports/desktop-subdir-env
Add ANBOX_NO_DESKTOP_SUBDIR env
2018-08-16 06:59:24 +02:00
Simon Fels
2117b3bd0e
Merge branch 'master' into desktop-subdir-env 2018-08-16 06:33:03 +02:00
Simon Fels
66c5a273b5
Merge pull request #863 from ubports/wayland-disable-option
Add option to enable/disable wayland
2018-08-16 06:32:29 +02:00
Marius Gripsgard
3d3055e2de Just remove desktop/icon files starting with anbox- 2018-08-16 02:51:49 +02:00
Marius Gripsgard
e11afb46de Add ANBOX_NO_DESKTOP_SUBDIR env
This makes anbox place applications in the main application folder

This is mostly a hack for ubuntu touch
2018-08-16 02:48:48 +02:00
Marius Gripsgard
3fff3cad6c Add option to enable/disable wayland 2018-08-16 02:35:07 +02:00
Simon Fels
4c6a7dc116
Merge pull request #857 from morphis/disable-touch-input
sdl: disable touch input support by default
2018-08-10 21:16:32 +02:00
Simon Fels
348ff8a320 sdl: disable touch input support by default
It looks like that the Android system gets confused when both a pointer
and an touch based input device are connected to the system. As touch
support is so far only used Ubports we can keep it disabled for the
snap version but provide a configuration switch to enable it again.
2018-08-10 20:55:01 +02:00
Simon Fels
37818f27f4
Merge pull request #855 from morphis/correct-id-map
container: correctly calculate uid/gid maps
2018-08-10 09:24:34 +02:00