compressed_data.parts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ############################################################################
  2. # Copyright 2016 Intel Corporation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ############################################################################
  16. Import('*')
  17. # Normal stuff that all Parts should have
  18. env.PartName("sample_compressed_data")
  19. #files
  20. data_files = Pattern(src_dir='.',
  21. includes=[
  22. 'grprl_empty.bin',
  23. 'README.md',
  24. 'groupa/privrl.bin',
  25. 'groupa/pubkey.bin',
  26. 'groupa/sigrl.bin',
  27. 'groupa/privrl_empty.bin',
  28. 'groupa/sigrl_empty.bin',
  29. 'groupa/member0/mprivkey.dat',
  30. 'groupa/member1/mprivkey.dat',
  31. 'groupa/privrevokedmember0/mprivkey.dat',
  32. 'groupa/privrevokedmember1/mprivkey.dat',
  33. 'groupa/privrevokedmember2/mprivkey.dat',
  34. 'groupa/sigrevokedmember0/mprivkey.dat',
  35. 'groupa/sigrevokedmember1/mprivkey.dat',
  36. 'groupa/sigrevokedmember2/mprivkey.dat',
  37. 'groupb/privrl.bin',
  38. 'groupb/pubkey.bin',
  39. 'groupb/sigrl.bin',
  40. 'groupb/privrl_empty.bin',
  41. 'groupb/sigrl_empty.bin',
  42. 'groupb/member0/mprivkey.dat',
  43. 'groupb/privrevokedmember0/mprivkey.dat',
  44. 'groupb/sigrevokedmember0/mprivkey.dat',
  45. ],
  46. recursive=True)
  47. sample_default_files = Pattern(src_dir='.',
  48. includes=[
  49. 'mprivkey.dat',
  50. 'pubkey.bin',
  51. 'cacert.bin',
  52. 'grprl.bin',
  53. 'privrl.bin',
  54. 'sigrl.bin',
  55. ],
  56. recursive=True)
  57. part_file = ['compressed_data.parts']
  58. if 'install_package' in env['MODE']:
  59. env.InstallTopLevel(data_files, sub_dir='example/compressed_data')
  60. env.InstallTopLevel(part_file, sub_dir='example/compressed_data')
  61. env.InstallTopLevel(sample_default_files, sub_dir='example/compressed_data')
  62. else:
  63. env.InstallData(data_files,
  64. sub_dir='compressed_data',
  65. no_pkg=False)
  66. env.InstallTopLevel(sample_default_files, sub_dir='compressed_example')