Commit Graph

20 Commits

Author SHA1 Message Date
Paul Eggleton
d7d1a2b345 scripts: use argparse for command line parsing
[RP: Minor tweaks made to adpat to buildbot and option naming

Fixed shared-repo-unpack for publishing when no cache-dir supplied]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 14:36:07 +01:00
Richard Purdie
b7cf6d8209 utils: Allow customisation using ABHELPER_JSON from the environment
Usage is documented in README and an example, local-example.json is
included.

Also clean up the parameter to loadconfig() as its actually not needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 23:16:10 +01:00
Richard Purdie
d6253df2bc scripts: Convert to use data expansion pretty much everywhere
We want to be able to use data expansion/variable substitution
in most variables so convert to use the utils API for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-20 16:21:16 +01:00
Richard Purdie
a71ea84970 Add support for publishing the layer tarballs
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 17:40:49 +00:00
Richard Purdie
a28efd463b shared-repo-unpack: Drop now unneeded directory deletion
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-30 13:40:16 +00:00
Richard Purdie
f91610defd shared-repo-unpack: Allow shared to be unspecified
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-29 17:52:27 +00:00
Richard Purdie
aad15671f7 shared-repos-unpack/layer-config: Use topdir and repos subdirs for checkouts/builds
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-25 10:15:58 +00:00
Joshua Lock
28cf55e5ab shared-repo-unpack: fix mv calls
As the mv commands use a filename wildcard we need to tell check_call to
execute through the shell so that the wildcard is expanded, rather than
treat as a file name.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2018-01-24 22:20:12 +00:00
Joshua Lock
8a18530eca shared-repo-unpack: make moving old repos more resilient
Only move the directory contents if they exist, try to move dot
files after moving non dot files.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2018-01-24 16:22:41 +00:00
Joshua Lock
d3ef90083b shared-repo-unpack: move existing dir's contents, not dir itself
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2018-01-24 14:29:51 +00:00
Richard Purdie
c6a0df6db6 shared-repo-pack: Add missing imports
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-24 14:11:05 +00:00
Richard Purdie
f92af9cb9a shared-repo-pack: Move out any existing build directory to the trash delection handler
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-24 14:05:20 +00:00
Richard Purdie
98f101ee93 shared-repo-unpack: Call layer-config
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-23 16:57:45 +00:00
Richard Purdie
838339775d shared-repo-unpack: Correct the rsync command
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-23 16:11:36 +00:00
Richard Purdie
f79fab19a1 utils/shared-repo-unpack: Create common mkdir function and fix shared-repo-unpack to create directory to rsync to
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-23 13:09:53 +00:00
Richard Purdie
806957b392 scripts: Fix help text and program name
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-23 13:09:53 +00:00
Richard Purdie
0ffecfbb25 Add repo filtering functionality per target
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-22 16:25:13 +00:00
Richard Purdie
89fbb72693 shared-repo-unpack: Fix missing variable
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-22 16:13:55 +00:00
Richard Purdie
7f70683c57 prepare-shared-repos/shared-repo-unpack: Allow future option to filter repos and implement more functionality
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-22 16:12:34 +00:00
Richard Purdie
6bf85dbbdc Add initial repo handling scripts
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-22 15:20:37 +00:00