commit | 79d7cb1b33b5f6df1fa3de886deee22a8682c196 | [log] [tgz] |
---|---|---|
author | Vadim Bendebury <[email protected]> | Tue Oct 06 14:52:53 2015 -0700 |
committer | chrome-bot <[email protected]> | Wed Oct 14 01:16:04 2015 +0000 |
tree | d1c656a7efcf84fd3fb5eccadd5aebe4f4764c42 | |
parent | 0343d5bfce6fbea1cad2d626e14382f6ebe28667 [diff] |
generator: define unions with conditions Many TPM objects - unions include fields for different algorithms. These fields need to be included only if the algorithm support is compiled in, otherwise there is a mismatch between the expected and actual maximum size of the union. BUG=chrome-os-partner:44608 TEST=verified that generated code uses compilation guards where appropriate. Change-Id: I8ff51b23c951b369c19fa81f0952219edfbb39e6 Signed-off-by: Vadim Bendebury <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/305494 Reviewed-by: Utkarsh Sanghi <[email protected]>