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 17Import('*') 18 19# Normal stuff that all Parts should have 20env.PartName("sample_compressed_data") 21 22#files 23data_files = Pattern(src_dir='.', 24 includes=[ 25 'grprl_empty.bin', 26 'README.md', 27 'groupa/privrl.bin', 28 'groupa/pubkey.bin', 29 'groupa/sigrl.bin', 30 'groupa/privrl_empty.bin', 31 'groupa/sigrl_empty.bin', 32 'groupa/member0/mprivkey.dat', 33 'groupa/member1/mprivkey.dat', 34 'groupa/privrevokedmember0/mprivkey.dat', 35 'groupa/privrevokedmember1/mprivkey.dat', 36 'groupa/privrevokedmember2/mprivkey.dat', 37 'groupa/sigrevokedmember0/mprivkey.dat', 38 'groupa/sigrevokedmember1/mprivkey.dat', 39 'groupa/sigrevokedmember2/mprivkey.dat', 40 'groupb/privrl.bin', 41 'groupb/pubkey.bin', 42 'groupb/sigrl.bin', 43 'groupb/privrl_empty.bin', 44 'groupb/sigrl_empty.bin', 45 'groupb/member0/mprivkey.dat', 46 'groupb/privrevokedmember0/mprivkey.dat', 47 'groupb/sigrevokedmember0/mprivkey.dat', 48 ], 49 recursive=True) 50 51sample_default_files = Pattern(src_dir='.', 52 includes=[ 53 'mprivkey.dat', 54 'pubkey.bin', 55 'cacert.bin', 56 'grprl.bin', 57 'privrl.bin', 58 'sigrl.bin', 59 ], 60 recursive=True) 61 62part_file = ['compressed_data.parts'] 63 64if 'install_package' in env['MODE']: 65 env.InstallTopLevel(data_files, sub_dir='example/compressed_data') 66 env.InstallTopLevel(part_file, sub_dir='example/compressed_data') 67 env.InstallTopLevel(sample_default_files, sub_dir='example/compressed_data') 68else: 69 env.InstallData(data_files, 70 sub_dir='compressed_data', 71 no_pkg=False) 72 env.InstallTopLevel(sample_default_files, sub_dir='compressed_example') 73