diskimage-builder/lib
Ian Wienand 37a53354ec Add IMAGE_ELEMENT_YAML and get_image_element_array
These new variables are a list of elements chosen for the build along
with their full paths.  For Python elements, IMAGE_ELEMENT_YAML is a
YAML formatted list that can be easily parsed.  For bash elements,
"get_image_element_array" will produce an associative-array of the
same (working around lack of array export in Bash).

This list is intended for consumption of elements who need to copy
files from other elements, such as pkg-map and svc-map.  As discussed
in I2a29861c67de2d25c595cb35d850e92807d26ac6, this list has already
been pruned and had overrides processed, so it is safe to simply walk
over this list with no further processing.

Since we're presenting the element list in a couple of different ways,
we combine it all into the element-info script.  It will output an
eval-able string that declares the appropriate variables.

I've added some inline documentation so they still appear in grep.
The documentation is updated with examples, and moved to a more
appropriate location as a sub-section of the element sytle guide.

To test this out, use the associative-array in generate_hooks, where
we can now find the element's directory without searching.

Change-Id: Ibbd07d082ec827441def2d3f6240df3efdc6eae3
2016-09-08 11:08:07 +10:00
..
common-defaults Add #!/bin/bash to library functions 2015-09-16 13:54:07 +10:00
common-functions Add IMAGE_ELEMENT_YAML and get_image_element_array 2016-09-08 11:08:07 +10:00
die Export die() function 2016-05-27 09:25:22 +10:00
img-defaults Export FS_TYPE and remove hardcoded ext4 values 2016-05-19 17:33:36 +10:00
img-functions Correct order of parameters in call to qemu-img convert 2016-07-21 10:57:40 +02:00
ramdisk-defaults Add #!/bin/bash to library functions 2015-09-16 13:54:07 +10:00
ramdisk-functions Merge "Prevent overwriting of user modified blacklist.conf" 2015-10-05 18:57:01 +00:00