Commit graph

10 commits

Author SHA1 Message Date
Vladimir Oltean
bff959a5ab extract_utils: template: introduce kang mode
Change-Id: Idc196359a7cb6fd8de53ebdc23700322486a2a7d
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
d5d0fea744 extract_utils: template: make --section argument non-positional
Change-Id: I3b991bd125c0f92900d625158cd826b4b9f53a3b
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
4931a0604a extract_utils: template: use quotation marks and variable curly braces consistently
* This makes sure that multi-word arguments are passed correctly from
  extract-files.sh towards the common extract_utils helper. An example
  would be extract-files --section "Hello World".
* IMPORTANT: device repositories that use a device/common split
  typically do something like this to invoke the common script from the
  device one:

  ${MY_DIR}/../common/extract-files.sh $@

  This is incorrect because the quotation marks are missing, and will
  lead to incorrect parameter parsing. The correct way is:

  ${MY_DIR}/../common/extract-files.sh "$@"

* The curly braces are only for cosmetic consistency.

Change-Id: Idf0885546379f47e675ec5e9dfb304706e512129
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Paul Keith
d402d120d4 extract-files: Bring back old behavior for SRC
* Previously, you could just specify a SRC directly
  after './extract-files', and it would work, but
  now, the arg '-p/--path' is required for the same
  behavior to be applied for the extraction
* Add a catch-all case that just sets SRC if the arg
  doesn't match any of the args that we care about
* Make the ordering of the cases alphabetical

Change-Id: Ia2ad42d444904ead6b3bd6d910af363eb7f015cc
2017-11-24 15:38:07 +00:00
Luca Stefani
5c60e4fd24
lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state

Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
2017-08-23 17:33:22 +03:00
Dan Pasanen
91f7620c4d
vendor: change vendor to lineage
Change-Id: I2df13091f5d62b552ef434aef1a389f4fe1249e0
2017-08-23 03:26:28 +03:00
Bruno Martins
0753ae0d68 templates: Default to sanitize vendor folder during extraction
* This was always the default behaviour and doesn't require
   any additional argument in order to make use of pinning feature
   (pinned blobs are only considered when vendor folder is removed)

Change-Id: I34ff7678bd6800a2c593e9fe128cc151c59967da
2017-08-16 23:00:21 +01:00
Rashed Abdel-Tawab
58ce825b6e
templates: Update to show usage for new extract_files features
* Allows extracting only a specific section from proprietary-files.txt
* Defaults to not cleaning vendor folder before extraction
* Adds script options rather than depending on apredefined order

Change-Id: I74cd3bf4a1f652232c97c78d6164f0730599c1a7
2017-07-30 14:09:29 -04:00
Michael Bestas
32378953b7 templates: Remove empty cat << EOF
Change-Id: I68388202f42b7522f3fd3965d4ce518c142e7ce3
2017-07-28 16:24:40 +00:00
Christopher R. Palmer
070fcfc612 vendor: Add templates for proprietary extraction scripts
Change-Id: I1be5d0f4cd103cf159de4f6323e2994f0df28b37
2017-03-11 11:11:15 +00:00