- Mar 30, 2017
-
-
Frédéric Dalleau authored
The handler is already present since the info and sysroot subcommand are already having a --path parameter. Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D6412
-
Frédéric Dalleau authored
The sysroot tag parser was not tested and a regression occured To catch future regressions make use for ade info and check that the expected sysroot info can be read during tests. Add support for --path to the ade info subcommand parser work in temporary test directory. Apertis: https://phabricator.apertis.org/T3777 Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D6390
-
Frédéric Dalleau authored
That error was not defined and triggered an Exception in the Exception. It was not raised either. Use SysrootManagerError instead Apertis: https://phabricator.apertis.org/T3777 Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D6402
-
Frédéric Dalleau authored
Recent parsing changes introduced this regression. Apertis: https://phabricator.apertis.org/T3777 Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D6383
-
- Mar 17, 2017
-
-
Sjoerd Simons authored
The current parsing expressions assume release is in the form of YY.QQ e.g. 16.09. While this is true for Apertis, it's not mandatory for derivatives so drop that assumption. While fixing that, move to using match names to make the regexps a bit more foolproof. Also split up the function parsing the string from a version file (/etc/image_version) and from the sysroot version tag as they are fundamentally different, the current regexp handled both in extremely subtle and error-prone ways. Apertis: https://phabricator.apertis.org/T3555 Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Differential Revision: https://phabricator.apertis.org/D6264
-
Sjoerd Simons authored
The SysrootVersion class was trying to define a date and build index from the build identifier. While this is true by convention for the Apertis builds, this may break in the future. Instead treat the build identifier as an opaque string consisting of just digits and dots. While there, also make all SysrootVersion arguments optional to improve readability and rename author to variant (which is its intended meaning). Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Differential Revision: https://phabricator.apertis.org/D6263
-
- Mar 10, 2017
-
-
Frédéric Dalleau authored
sudo is used to run ribchesterctl to install a bundle on the target, but it is not used to run ribchesterctl to install a bundle on the simulator. Let's change that. Change a call to ribchesterctl instead of ribchester on the fly. Apertis: https://phabricator.apertis.org/T3556 Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D6200
-
Frédéric Dalleau authored
We suppose the intent from the user when configuring an existing directory is to rebuild all the binaries for the new configuration. For example, the user could have changed the sysroot. Apertis: https://phabricator.apertis.org/T3557 Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D6141
-
Frédéric Dalleau authored
In order to configure different target and build in a different directory, the build-dir parameter will run configure from a subdirectory of the root. This allows separating build artifacts from source code. It allows to build for different targets at the same time. Also add support for this in export, run, debug, install, and uninstall commands. Do not add it in info command yet. Apertis: https://phabricator.apertis.org/T3557 Signed-off-by:
Frédéric Dalleau <frederic.dalleau@collabora.com> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D6129
-
- Dec 21, 2016
-
-
Justin Kim authored
`subprocess.PIPE` returns a bytes object which has no attribute `read`. Signed-off-by:
Justin Kim <justin.kim@collabora.com> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5358
-
- Dec 16, 2016
-
-
When we only want the GDB server running Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5328
-
We were trying to connect the GDB client even before we got the listening event. The debugger server thread is now looping forever. Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5327
-
If the --app is not given, we check the installed desktop files and use the main one if that makes sense. Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5326
-
Sjoerd Simons authored
There is no reason to not allow e.g. an ssh agent or to prevent ade looking for keys, so drop the restrictions. Also fixes launching the install job from eclipse as that doesn't seems to pass a user and relies on ssh key authentication. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D5344
-
- Dec 15, 2016
-
-
Sjoerd Simons authored
If ade execv's gdb then its process will be replaced, potentially causing the ssh connection to the target device to fail which will kill the remote gdb server. So instead run gdb in a subprocess, keeping ade (and thus the ssh connection) alive during the debugging session. Also instead of using gdb, use gdb-multiarch which is a variant capable of interacting with gdbservers of multiple architectures (and understand/parsing the debug symbols of multiple architectures). This means it can be used to debug both ARM and Intel targets, rather then just native targets. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5305
-
Sjoerd Simons authored
debug-file-directory is the directory where gdb goes to look for detached debug symbols (the non buildid kind). It's interaction with the sysroot bits are bit.. odd.. For each debug-file-directory path it will look in ${path}/${sysroot}/<debuglink> and ${path}/debuglink, both of which are mostly useless for sysroots. Explicitely set the path to ${sysroot}/usr/lib/debug to set gdb straight. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5304
-
Start the gdbserver on device and start gdb client locally in interactive mode. Default port is not configurable as of now (1234) and other targets (e.g. simulator, SDK) are not supported. Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5299
-
If the target is a device, we want to know whether to use a sysroot or the SDK for configuration/debugging/etc. Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5298
-
ARGS options are for the application getting started Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5297
-
The target.run() function expects to receive the arguments unpacked. Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5287
-
If sysroot is None, it means we want to compile natively (e.g. for the simulator or for a target device with the same arch) Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5286
-
- Dec 14, 2016
-
-
Louis-Francis Ratté-Boulianne authored
* Directory for apps is Applications not Application * Don't set --sysconfdir so the AppArmor profile is in the right directory Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5280
-
Sjoerd Simons authored
ribchester-bundle is a python3-gi based application which is capable of doing some low-level operations in ribchester, ribchesterctl is a simpler C application installed as part of the ribchester package which can at the moment only do install and remove (which is exectly what ade is doing). Move ade to use ribchestectl so it doesn't need anything not normally installed on a target device. Also for operation on a target device use sudo (an ssh user is not allowed to install applications). While there, also copy bundles to /tmp rather then hardcode the users home directory (which could change in the future). Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5261
-
Sjoerd Simons authored
ade install failed for me as my target device doesn't have ribchester-bundle, however it did so without giving any indication something was wrong at all. Sort this out by raising an exception if the remote command returns a non-zero exit status. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5260
-
Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Differential Revision: https://phabricator.apertis.org/D5233
-
Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Differential Revision: https://phabricator.apertis.org/D5232
-
Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Differential Revision: https://phabricator.apertis.org/D5231
-
Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Differential Revision: https://phabricator.apertis.org/D5230
-
Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Differential Revision: https://phabricator.apertis.org/D5245
-
- Dec 13, 2016
-
-
Sjoerd Simons authored
Unless a compiler which produces code for the target is setup, the result of the compilation (if successful) will just be native code which isn't helpful. Setup target specific gcc && linker instead Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5257
-
Sjoerd Simons authored
The intention here is to point to the /usr/include in the sysroot, however when joining an absolute paths the result will just be the last absolute paths Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5256
-
Sjoerd Simons authored
We're using four different ways to define the achitecture. There is the machine name as given by e.g. uname -m, the dpkg architectures (armhf, amd64, etc) and finally the gnu arch triplet (e.g. aarch64-linux-gnu). Have TargetTriplet recognize all three and properties for all three variants. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5253
-
Sjoerd Simons authored
Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5252
-
Sjoerd Simons authored
When the keyfile passed to paramiko doesn't exist connecting to the remote device will fail, to fix that simply remove it. Specifying it has very little value given paramiko should search for private keys in .ssh by default. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5251
-
Guillaume Desmottes authored
Signed-off-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5254
-
Sjoerd Simons authored
Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5247
-
Sjoerd Simons authored
Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5246
-
- Dec 12, 2016
-
-
Louis-Francis Ratté-Boulianne authored
Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5045
-
Louis-Francis Ratté-Boulianne authored
* Support for SDK in `info` command has also been added Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5229
-
Louis-Francis Ratté-Boulianne authored
Useful when using the SDK as a device for tests Signed-off-by:
Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by:
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5228
-