Lines Matching +full:license +full:- +full:path

5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 distributed under the License is distributed on an "AS IS" BASIS,
12 See the License for the specific language governing permissions and
13 limitations under the License.
28 # psoc64_postbuild.py --core CM4 \
29 # --secure-boot-stage single \
30 # --policy policy_single_CM0_CM4 \
31 # --target cyb06xxa \
32 # --toolchain-path ModusToolbox/tools_2.0/gcc-7.2.1 \
33 # --toolchain GCC_ARM \
34 # --build-dir Hello_World/build/CY8CKIT-064B0S2-4343W/Debug \
35 # --app-name mtb-example-psoc6-hello-world \
36 # --cm0-app-path ./libs/psoc6cm0p/COMPONENT_CM0P_SECURE \
37 # --cm0-app-name psoc6_02_cm0p_secure
42 parser.add_argument('-h', '--help',
47 parser.add_argument('--policy-path',
51 help="Path to policy file",
54 parser.add_argument('-p', '--policy',
61 parser.add_argument('-t', '--target',
68 parser.add_argument('--toolchain-path',
72 help="Path to the toolchain tools to use for .hex file generation",
75 parser.add_argument('--toolchain',
82 parser.add_argument('-b', '--build-dir',
86 help="Path of build directory to find application hex files",
89 parser.add_argument('-a', '--app-name',
96 parser.add_argument('-c', '--cm0-app-path',
100 help="Path where CM0 hex file is located",
103 parser.add_argument('--cm0-app-name',
110 parser.add_argument('--core',
117 parser.add_argument('-s', '--secure-boot-stage',
133 print("{}".format(line.decode('utf-8')), end='')
152 # Check if gcc tools path is valid
153 if (os.path.isdir(options.toolchain_path) == False):
154 … print("ERROR: 'ARM Compiler' tools folder not found in path: {}".format(options.toolchain_path))
155 exit(-1)
158 if (os.path.isfile(app_elf_file) == False):
159 print("ERROR: ELF file not found in path: {}\r\n".format(app_elf_file))
160 exit(-1)
163 shell_cmd = [ fromelf_cmd, '--i32', '--output=' + fromelf_result_dir, app_elf_file ]
170 if (os.path.isfile(em_eeprom_hex) == True):
171 …sections_list = [f for f in os.listdir(fromelf_result_dir) if os.path.isfile(os.path.join(fromelf_…
185 # 1) 1 for single-stage,
186 # 2) 16 in case of multi-stage,
210 if (os.path.isfile(em_eeprom_hex) == True):
217 gcc_objcopy_eabi_cmd = options.toolchain_path + '/bin/arm-none-eabi-objcopy'
220 # Check if gcc tools path is valid
221 if(os.path.isdir(options.toolchain_path)==False):
222 print("ERROR: GCC tools folder not found in path: {}".format(options.toolchain_path))
223 exit(-1)
226 if(os.path.isfile(app_elf_file) == False):
227 print("ERROR: ELF file not found in path: {}\r\n".format(app_elf_file))
228 exit(-1)
231 …shell_cmd = [ gcc_objcopy_eabi_cmd, '-R', '.cy_em_eeprom', '-O', 'ihex', app_elf_file, options.bui…
237 …shell_cmd = [ gcc_objcopy_eabi_cmd, '-j', '.cy_em_eeprom', '-O', 'ihex', options.build_dir + "/" +…
247 # 1) 1 for single-stage,
248 # 2) 16 in case of multi-stage,