summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Pawel Szewczyk [Wed, 8 Jul 2015 13:24:13 +0000 (15:24 +0200)]
gadget: Add gadget save at libusbg backend
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Use 0 instead of NULL to check for stat() result.
Change-Id: I7d3c0fc942df05bd642bc6287c3d6a83f0140f6f
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Pawel Szewczyk [Wed, 8 Jul 2015 11:29:39 +0000 (13:29 +0200)]
gadget: Add gadget load command at libubsg backend
Change-Id: I2e79fe2b94baf52e4f1528f8da17fbf09c7c6b9c
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 7 Jul 2015 15:20:56 +0000 (17:20 +0200)]
function: Add --quiet option to list-types command
To provide output useful for scripting --quiet option is introduced - it
does not produce unnecessary messages keeping output as simple as
possible.
Change-Id: I7652c1b5ad307502855d1ee14cf779afb2b206ff
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Mon, 6 Jul 2015 15:48:28 +0000 (17:48 +0200)]
gadget: Add gadget command at libusbg backend
Change-Id: I4e74bb680b19ef87b4f59796496ab19808cffd89
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Mon, 6 Jul 2015 14:53:47 +0000 (16:53 +0200)]
gadget: Add default gadget to disable and enable
When gadget name is not specified, some default gadget can be selected.
If there is only one gadget, it is used, otherwise we look for default
gadget specified in settings file.
Change-Id: I979ea5183e7c6bb00725c1f08e255b0e6bd0327a
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Mon, 6 Jul 2015 14:19:45 +0000 (16:19 +0200)]
settings: Add parsing setting file
Default setting file is installed in \etc\gt
Change-Id: I68b5dac67f899bbcb166cf52cbd1962e3fa8c15c
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Mon, 6 Jul 2015 09:57:10 +0000 (11:57 +0200)]
gadget: Add gadget get at libusbg backend
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Use new format of passing gadget attrs also in not
implemented backend.
Change-Id: I4d8213f7c66dab9cbbf66aa4d0f9d931e919799b
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Pawel Szewczyk [Mon, 6 Jul 2015 09:15:30 +0000 (11:15 +0200)]
gadget: Add disable and enable help
Change-Id: I6dd4cfeef80f2673fb61cd88b8a8c3978ebbf191
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 3 Jul 2015 10:30:31 +0000 (12:30 +0200)]
gadget: Fix getopt returning value
Both getopt and getopt_long return int and this is the type we should
use here.
Change-Id: I16a7003e389c255ab2111e95d7cb84b7ca9065e2
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 3 Jul 2015 09:58:36 +0000 (11:58 +0200)]
gadget: Add gadget disable on libusbg backend
Change-Id: I6a42e3b11e50b365cac1af4b872ba693b0c02017
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 2 Jul 2015 14:47:56 +0000 (16:47 +0200)]
gt: Fix existing help messages to be more consistent
Change-Id: I65a080df6e3a639f62885b314e2c5fc9706033db
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 2 Jul 2015 09:20:11 +0000 (11:20 +0200)]
config: Add --help option to config subcommands
Change-Id: If66f1dc6d316551465827514f9347360ac2eb915
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 1 Jul 2015 15:42:22 +0000 (17:42 +0200)]
config: Separate config command backends
Change-Id: I53adcfc32c121710e1ff8baae41d169e6120ae9e
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 1 Jul 2015 12:29:04 +0000 (14:29 +0200)]
gadget: Add --help option to gadget subcommands
Change-Id: I8b1ea3ecc06976bee0128c5dbeb40f1615d6cdc2
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 26 Jun 2015 10:58:00 +0000 (12:58 +0200)]
gadget: Implement gadget rm on libsubg backend
Change-Id: I49e1f9877597fce7f290786caaa4c678eff7c024
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 26 Jun 2015 10:10:02 +0000 (12:10 +0200)]
gadget: Separate gadget command backends
Add separate file for each backend.
Change-Id: I88d8537820d1ffc16f3fead9b4f61cb28bdf1b7c
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 25 Jun 2015 12:54:27 +0000 (14:54 +0200)]
gadget: Separate parsing from implementation
When passing attributes to 'gadget create' subcommand we need to
translate string list to actual configfs attributes. It should be done
in parsing function.
Change-Id: If7f927a6f8b9000d6b7bd0479ac24acba86ee32c
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 25 Jun 2015 10:36:05 +0000 (12:36 +0200)]
function: Add --help option to func subcomands
Using 'help' subcommand is not always good option, e.g. if you want to
create a gadget named 'help'. Instead --help option can be used,
providing similar syntax for all commands.
Change-Id: I645e545c518dff09b680d8f63794d855f56d1a11
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Mon, 15 Jun 2015 15:00:17 +0000 (17:00 +0200)]
function: Introduce new backends mechanism in function subcommand
Move each backend implementation to separate file and use backend
structure to select functions to be executed. Placeholders for not
implemented functions are provided by additional backend instance.
This commit do it only with function subcommand.
Change-Id: If8a3ac3e5296a22308a6b0ab86d7d7c4719b9f71
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Stanislaw Wadas [Thu, 13 Nov 2014 12:36:50 +0000 (13:36 +0100)]
Fix problems with gadget enable
Change-Id: I513f2ca9e012b0f2e22973aa49af7a4ae8493dab
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Stanislaw Wadas [Tue, 14 Oct 2014 11:16:41 +0000 (13:16 +0200)]
fix: fix serial number set for libusbg backend
Change-Id: I6b89220f1683e37670a696b0aa96cc9e2cbdb0ee
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Krzysztof Opasiak [Mon, 13 Oct 2014 22:01:00 +0000 (00:01 +0200)]
parser: Allow to use only type instance syntax
Using type.instance syntax may be ambiguous when
using gadgetctl so we should not use this convention
Change-Id: I3926907c21a1238f8267562caa190605f872afbb
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Stanislaw Wadas [Tue, 14 Oct 2014 07:33:00 +0000 (09:33 +0200)]
packaging: add missing dependency
Change-Id: I640305a804e6a8d70aeba1f48523b8bc21da8ce1
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Stanislaw Wadas [Sat, 11 Oct 2014 11:36:45 +0000 (13:36 +0200)]
gadget: enable: Add initial implementation
Change-Id: I35da61e09c6569ab87d6692709b7f63ab1d65c70
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Stanislaw Wadas [Sat, 11 Oct 2014 12:46:17 +0000 (14:46 +0200)]
parser: Some small changes due to enable gadget parsing
Change-Id: I36a02e2d3c93b5ff34bba845f8643a6cf35f2697
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Stanislaw Wadas [Fri, 10 Oct 2014 11:49:47 +0000 (13:49 +0200)]
config: attach function: Add initial implementation
Change-Id: I5aaabdf8951b33d6dc453bad0c85f2437296ebc8
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Krzysztof Opasiak [Tue, 14 Oct 2014 19:02:55 +0000 (21:02 +0200)]
config: create: Add initial implementation
Change-Id: I071173db447d4d1712542003362af2a9068b3493
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Stanislaw Wadas [Fri, 10 Oct 2014 09:55:46 +0000 (11:55 +0200)]
parser: fix probelms with parsing config name and funcion name
Change-Id: Ie68ed7237573c08c3e91423a17600cc54233bd3f
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Stanislaw Wadas [Thu, 2 Oct 2014 11:06:57 +0000 (13:06 +0200)]
common: add cleanup macros
Change-Id: I6b910081bcf053ed12f6bb0a56c2eba65cc51875
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Stanislaw Wadas [Thu, 9 Oct 2014 09:09:21 +0000 (11:09 +0200)]
fix: add correct backend in "create gadget" for libusbg
Change-Id: I3bc279294364f17b3063fc2dedba48d9004b2644
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Karol Lewandowski [Mon, 6 Oct 2014 00:00:06 +0000 (02:00 +0200)]
func: Add 'list-types' command
This will allow user to discover valid function types - either
provided by libusbg for gt backend, or detected on run-time by
gadgetd.
Change-Id: Ic01a41f291a77762eca7b1bd81f8366cbb0dbd7a
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Karol Lewandowski [Sat, 4 Oct 2014 19:36:54 +0000 (21:36 +0200)]
func: create: Add initial implementation and help screen
Change-Id: I32bdce3429af0091da57bcf3cc04093116608471
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Karol Lewandowski [Sat, 4 Oct 2014 19:37:13 +0000 (21:37 +0200)]
func: Add global help screen
Change-Id: I7bbf795300f9dc1f1765047377e4a6fb3141e3ff
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Sat, 4 Oct 2014 19:34:35 +0000 (21:34 +0200)]
gadget: create: Add one-line description of 'create' functionality
Change-Id: I966c52cb72d8d52088bc87ef07765fe72c556f60
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Sat, 4 Oct 2014 15:05:26 +0000 (17:05 +0200)]
gadget: create: Add initial implementation
Change-Id: Iefbb8c25804c25b7c00ee9a3d6e2a2c21c705531
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Sun, 28 Sep 2014 23:38:04 +0000 (01:38 +0200)]
backend: Introduce notion of different backends
Backend is currently selected using argv[0] name:
- gt selects libusbg (direct) backend
- gadgetctl selects gadgetd (d-bus) backend
Any other program name will trigger autodetection
(d-bus then direct).
Change-Id: Ie8459416b11110afb6a09d1855c3b26b595e7067
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Mon, 29 Sep 2014 23:37:16 +0000 (01:37 +0200)]
common: Add string helper macros
Change-Id: Id275f1215adca472605d023d843980bc0c593ce5
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Mon, 29 Sep 2014 21:31:53 +0000 (23:31 +0200)]
build: Add glib2 to build requirements
glib2 will be used by d-bus code.
Change-Id: Id6efeb10fbaebd990307e1f3fc9d1233733e6cb4
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Sun, 28 Sep 2014 23:12:37 +0000 (01:12 +0200)]
parser: Add global help screen
Change-Id: I76dc5772bc77a27494b951ae29389970b3b04fcd
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Sun, 28 Sep 2014 23:51:21 +0000 (01:51 +0200)]
parser: Expose program name globally
This should be useful at least for help screens.
Change-Id: Ic0d6c534c02cd523a0662046c79e7db5f580c509
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Sat, 27 Sep 2014 13:06:41 +0000 (15:06 +0200)]
doc: Fix typos and inconsistencies
Change-Id: I65365e7c413dcb160766182e930039c22fe4c654
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Pawel Szewczyk [Mon, 1 Sep 2014 14:23:58 +0000 (16:23 +0200)]
gt: Fix cleaning setting list on its parsing failure
Change-Id: I05e218defefafdca27d5f72cb169ab83a8c7345f
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 2 Sep 2014 13:34:31 +0000 (15:34 +0200)]
gt: tests: Add memory checking with valgrind
Change-Id: Ie085ef1124805015d1889989ce08c92d60c4df33
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 2 Sep 2014 10:18:55 +0000 (12:18 +0200)]
gt: tests: Fix specifying executable comand for testing by user
Change-Id: I22d45d67f32d25e8a89dc5853802b15d233f20a8
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 14:42:02 +0000 (16:42 +0200)]
gt: tests: Add func template command paring tests
Change-Id: I9dbb0cefe05365111c428ed870aa892444e46bdc
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 14:41:20 +0000 (16:41 +0200)]
gt: Add func template command parsing
Change-Id: I183e87906720fd674fc5aacf64da19fd8a423f51
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 12:46:35 +0000 (14:46 +0200)]
gt: tests: Add func load/save commands parsing tests
Change-Id: I947183f86d636e47e9adfbde8921020110fa1998
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 12:46:08 +0000 (14:46 +0200)]
gt: Add func load/save commands parsing
Change-Id: Ic4691b20486732a7ede5366ebcadfdb35f300ea7
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 09:52:58 +0000 (11:52 +0200)]
gt: tests: Add func func command parsing tests
Change-Id: I4c5189d3df6fd08834571e83fa67bf7c3ba84d28
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 09:52:41 +0000 (11:52 +0200)]
gt: Add func func command parsing
Change-Id: Ifcb46ade2b59c50b6ad64068821ad7fdf3e6b4e6
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 08:32:36 +0000 (10:32 +0200)]
gt: tests: Add func get/set commands parsing tests
Change-Id: Id9b4c04cf9d3bb7aba4181f9bfd6c302a653565e
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 29 Aug 2014 08:32:10 +0000 (10:32 +0200)]
gt: Add func get/set commands parsing
Change-Id: Ie8649b1843c855fe7a4f86f5fe6984b8e7bd3265
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 28 Aug 2014 13:25:30 +0000 (15:25 +0200)]
gt: tests: Add func create/rm commands parsing tests
Change-Id: I4f9766d8498f39ef6b7e5e0ed916628ab1e9a652
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 19 Aug 2014 09:24:20 +0000 (11:24 +0200)]
gt: Add function create/remove commands parsing
Change-Id: I909275dba320ab61e0e5ff5b51d81a13ff011dad
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 28 Aug 2014 07:45:05 +0000 (09:45 +0200)]
gt: tests: Add config load/save command parsing tests
Change-Id: Ife35125cf2781a675c1cb86acbbec1aaacb50b96
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 19 Aug 2014 09:35:29 +0000 (11:35 +0200)]
gt: Add config load/save commands parsing
Change-Id: Ia50c6bb3b6cc4cdeb665def03ac5ed5a82cbca82
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 13:32:41 +0000 (15:32 +0200)]
gt: tests: Add config template commands parsing tests
Change-Id: Ie9675871078a0afa4f743d9e021803589a262aac
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 21 Aug 2014 11:38:18 +0000 (13:38 +0200)]
gt: Add config template parse
Change-Id: I10493ff59cb52b061abe12ce9135602dc01731cf
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 13:20:45 +0000 (15:20 +0200)]
gt: tests: Add config add/del commands parsing tests
Change-Id: I333edcec64db943f6a4ae45407bdf5e4aa7f2240
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 21 Aug 2014 11:37:43 +0000 (13:37 +0200)]
gt: Add config add/del commands parse
Change-Id: Iffdfa7fe92325ec5886828ff8f0d343777d0a4f2
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 13:10:51 +0000 (15:10 +0200)]
gt: tests: Add config config command parsing tests
Change-Id: I1c2fbfb9d433e1b7c8f5cf27ce315bc1c20fec2b
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 21 Aug 2014 11:36:46 +0000 (13:36 +0200)]
gt: Add config config command parse
Change-Id: If79e268641f97b876f3a0ab034664216b5e7cd5d
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 13:02:03 +0000 (15:02 +0200)]
gt: tests: Add config get/set commands parsing tests
Change-Id: I4675a9264ccbb401e1b3667548d8b25bb8be10b8
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 21 Aug 2014 11:35:59 +0000 (13:35 +0200)]
gt: Add config get/set commands parse
Change-Id: Ic375a283a4ab09c48869ef64ef8309f0dda4a63d
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 12:51:18 +0000 (14:51 +0200)]
gt: tests: Add config create/rm commands parsing tests
Change-Id: I51bbb1101d3780fa53fbc49794fe91a5216c7e22
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Fri, 8 Aug 2014 13:28:08 +0000 (15:28 +0200)]
gt: Add config create/rm commands parsing
Change-Id: I0c172397c9960a633930b27bec6d3560601b3884
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 12:11:37 +0000 (14:11 +0200)]
gt: tests: Add gadget template comands parsing tests
Change-Id: Icaec7c9e62b446ca5196c7432f74bc407ed3c038
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 20 Aug 2014 11:26:44 +0000 (13:26 +0200)]
gt: Add gadget template command parsing
Change-Id: I61584d7ad774ee64118a92c71bba15ecf5055d29
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 11:39:31 +0000 (13:39 +0200)]
gt: tests: Add gadget load/save commands parsing tests
Change-Id: Iec1bc37bd78caef581400951888af5526e207875
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 6 Aug 2014 14:29:15 +0000 (16:29 +0200)]
gt: Add gadget load and save commands parsing
Change-Id: Iad7cbadb16830d417089656ddf3ee370d95ec7f3
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 11:07:17 +0000 (13:07 +0200)]
gt: tests: Add gadget gadget comand parsing tests
Change-Id: Id0ddc71a67817c48c4fb49473c40aedafcb9bfea
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 5 Aug 2014 14:46:25 +0000 (16:46 +0200)]
gt: Add gadget gadget command parse
Change-Id: Ib1b1d7ae9cae070facfc5c58d2d781e40e48631b
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 10:24:59 +0000 (12:24 +0200)]
gt: tests: Add gadget enable/disable commands parsing tests
Change-Id: I422e42e30fec9aeb019b6cb357a0165d647ac6d7
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 20 Aug 2014 08:24:02 +0000 (10:24 +0200)]
gt: Add gadget enable and disable command parsing
Change-Id: I1764a97cf151fb0747707287c09d20f27b502380
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 28 Aug 2014 06:59:13 +0000 (08:59 +0200)]
gt: tests: Add gadget get/set commands parsing tests
Change-Id: If9a69155ea914167aebdc360f7f1e3d32730cda7
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 5 Aug 2014 11:40:16 +0000 (13:40 +0200)]
gt: Add gadget get and set comands parsing
Change-Id: I206fca8de0f17f64d444381d3a9b38b5848f7ca9
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 27 Aug 2014 15:24:37 +0000 (17:24 +0200)]
gt: tests: Add gadget create and rm commands parsing tests
Change-Id: Id064795de13162d3ba0e9afffc3ce59301e99db6
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Pawel Szewczyk [Tue, 5 Aug 2014 11:19:53 +0000 (13:19 +0200)]
gt: Add gadget create and rm commands parsing
Change-Id: Iaac0802749e29b5f830288e39d587bd710699287
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Krzysztof Opasiak [Wed, 27 Aug 2014 12:41:57 +0000 (14:41 +0200)]
gt: tests: Add colours for OK and FAILED
Change-Id: If2c45fbe2002aeedf58e4fb942cdd5696fb65c3e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Pawel Szewczyk [Wed, 27 Aug 2014 06:55:00 +0000 (08:55 +0200)]
gt: tests: Add settings command test
Change-Id: I67455a8cf892ae020f8c8d2866539db29ddfc42e
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 20 Aug 2014 13:48:41 +0000 (15:48 +0200)]
gt: Add setting command parsing
Change-Id: Ib1e5a484934b0e08977305d7824aa46399d3da01
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Thu, 21 Aug 2014 08:13:07 +0000 (10:13 +0200)]
gt: Add End of commands list macro
Change-Id: I6b92275ef7a73f104320d2d6e02b7c14cf06a635
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 08:33:51 +0000 (10:33 +0200)]
gt: Add parsing of known options flags
Change-Id: Icfa666fbf9ecd36c5566db2344d5375035953663
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 08:40:31 +0000 (10:40 +0200)]
gt: Add parsing of common command attributes
Change-Id: Iba87876d8b839f09e754515fa437bdbcb9873750
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 26 Aug 2014 09:36:48 +0000 (11:36 +0200)]
gt: Add zalloc function
Change-Id: Ifd4de1238edf4ab95a65a5006e6761e7618e8bee
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Wed, 13 Aug 2014 11:46:49 +0000 (13:46 +0200)]
gt: Make defining default function for command_parse possible
It's not error, when standard command parse reach end of arguments list.
We can define some non-help-printing behavior for this situation.
Change-Id: Ib4bed570f385883d8cda5f79b648cfc31cef1e2a
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Pawel Szewczyk [Tue, 12 Aug 2014 07:32:28 +0000 (09:32 +0200)]
gt: Removed const from main arguments type
Argument passed to getopt should not be const char **
Change-Id: I0097802cd90d75a93a1e55efb40b75dac9e898f1
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Krzysztof Opasiak [Thu, 31 Jul 2014 06:44:11 +0000 (08:44 +0200)]
gt: packaging: Add packaging for generating rpm package
Change-Id: I5a2bb400aad2d8c4303a5b2dcf959cd7388efae2
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Wed, 30 Jul 2014 07:35:28 +0000 (09:35 +0200)]
gt: cmake: Rewrite CMake scripts
Change-Id: I32f0f980b2f0fb67a3ea4af889480d87317ca015
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Tue, 29 Jul 2014 11:37:35 +0000 (13:37 +0200)]
gt: Adjust gitignore
Change-Id: I66263b4d6196871b57be362bc25a2aab2d8a2ba4
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Tue, 29 Jul 2014 11:37:06 +0000 (13:37 +0200)]
gt: Addjust coding style to be more kernel-like
Change-Id: I034c485bd4fc58079e40f6e673a92b6bf30b052a
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Fri, 8 Nov 2013 10:12:48 +0000 (11:12 +0100)]
First approach to implement a command line parser.
Add framework for parsing command line options.
Whole commands structure is a tree. We search from
root to leaves and print suitable help message if
an error occurred.
Change-Id: Ic3d3114b3d2380021da10410fafb50dcc8fe613a
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Mon, 25 Nov 2013 14:05:26 +0000 (15:05 +0100)]
Add LICENSE and .gitignore.
Add terms of Apache v2 license and .gitignore file.
Change-Id: I290eb43a88cae1784a5ba68262f0d90342080e43
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Tue, 29 Oct 2013 13:25:18 +0000 (14:25 +0100)]
First approach to design of gadget tool.
Adds a document which describes reasons of this project,
goal to achieve and proposed command line calls.
Change-Id: I65f5e5a59d5b1b0ef7040755f207f32ccd2e021c
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
kopasiak [Wed, 23 Oct 2013 11:21:29 +0000 (04:21 -0700)]
Initial commit