Generate all HWID list when components have several bit fields

Support HWID file with the following format
  - image_ids: [1,2]
    encoding_scheme: base8192
    fields:
    - camera_field: 2
    - cellular_field: 1
    - camera_field: 1

also support NULL description of a component such as
cellular_field:
  0: { cellular: NULL }

Use BOM object to generate encoded string

BUG=none
TEST=manually

Change-Id: I7063294651214d2729a6928b96710b53236d90f2
Reviewed-on: https://chromium-review.googlesource.com/168033
Reviewed-by: Ricky Liang <jcliang@chromium.org>
Tested-by: Heng-ruey Hsu <henryhsu@chromium.org>
Commit-Queue: Heng-ruey Hsu <henryhsu@chromium.org>
1 file changed