Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: platforms/stm/disco_dartino/disco_dartino.gyp

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE.md file. 3 # BSD-style license that can be found in the LICENSE.md file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'include_dirs': [ 7 'include_dirs': [
8 '<(stm32_cube_f7)/Drivers/CMSIS/Include/', 8 '<(stm32_cube_f7)/Drivers/CMSIS/Include/',
9 '<(stm32_cube_f7)/Drivers/CMSIS/Device/ST/STM32F7xx/Include/', 9 '<(stm32_cube_f7)/Drivers/CMSIS/Device/ST/STM32F7xx/Include/',
10 '<(stm32_cube_f7)/Drivers/BSP/STM32746G-Discovery/', 10 '<(stm32_cube_f7)/Drivers/BSP/STM32746G-Discovery/',
11 '<(stm32_cube_f7)/Drivers/BSP/Components/Common/', 11 '<(stm32_cube_f7)/Drivers/BSP/Components/Common/',
12 '<(stm32_cube_f7)/Middlewares/ST/STemWin/Config/', 12 '<(stm32_cube_f7)/Middlewares/ST/STemWin/Config/',
13 '<(stm32_cube_f7)/Middlewares/ST/STemWin/inc/', 13 '<(stm32_cube_f7)/Middlewares/ST/STemWin/inc/',
14 '<(stm32_cube_f7)/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/', 14 '<(stm32_cube_f7)/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/',
15 '<(stm32_cube_f7)/Middlewares/ST/STM32_USB_Host_Library/Core/Inc/', 15 '<(stm32_cube_f7)/Middlewares/ST/STM32_USB_Host_Library/Core/Inc/',
16 '<(stm32_cube_f7)/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/', 16 '<(stm32_cube_f7)/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/',
17 '<(stm32_cube_f7)/Middlewares/Third_Party/FatFs/src/', 17 '<(stm32_cube_f7)/Middlewares/Third_Party/FatFs/src/',
18 '<(stm32_cube_f7)/Middlewares/Third_Party/FatFs/src/drivers/', 18 '<(stm32_cube_f7)/Middlewares/Third_Party/FatFs/src/drivers/',
19 '<(stm32_cube_f7)/Utilities/Log', 19 '<(stm32_cube_f7)/Utilities/Log',
20 '<(stm32_cube_f7)/Utilities/Fonts', 20 '<(stm32_cube_f7)/Utilities/Fonts',
21 '<(stm32_cube_f7)/Utilities/CPU', 21 '<(stm32_cube_f7)/Utilities/CPU',
22 ], 22 ],
23 }, 23 },
24 'targets': [ 24 'targets': [
25 { 25 {
26 'type': 'none', 26 'type': 'none',
27 'target_name': 'disco_fletch_dart_snapshot', 27 'target_name': 'disco_dartino_dart_snapshot',
28 'variables': { 28 'variables': {
29 'source_path': 'src', 29 'source_path': 'src',
30 }, 30 },
31 'actions': [ 31 'actions': [
32 { 32 {
33 'action_name': 'snapshot', 33 'action_name': 'snapshot',
34 'inputs': [ 34 'inputs': [
35 'src/test.dart', 35 'src/test.dart',
36 ], 36 ],
37 'outputs': [ 37 'outputs': [
38 # This must be in CWD for the objcopy below to generate the 38 # This must be in CWD for the objcopy below to generate the
39 # correct symbol names. 39 # correct symbol names.
40 '<(PRODUCT_DIR)/snapshot', 40 '<(PRODUCT_DIR)/snapshot',
41 ], 41 ],
42 'action': [ 42 'action': [
43 '<(PRODUCT_DIR)/../ReleaseX64/fletch', 43 '<(PRODUCT_DIR)/../ReleaseX64/dartino',
44 'export', 44 'export',
45 '<(source_path)/test.dart', 45 '<(source_path)/test.dart',
46 'to', 46 'to',
47 'file', 47 'file',
48 '<(PRODUCT_DIR)/snapshot', 48 '<(PRODUCT_DIR)/snapshot',
49 ], 49 ],
50 }, 50 },
51 ], 51 ],
52 }, 52 },
53 { 53 {
54 'type': 'none', 54 'type': 'none',
55 'target_name': 'disco_fletch_dart_snapshot.o', 55 'target_name': 'disco_dartino_dart_snapshot.o',
56 'dependencies' : [ 56 'dependencies' : [
57 'disco_fletch_dart_snapshot', 57 'disco_dartino_dart_snapshot',
58 ], 58 ],
59 'actions': [ 59 'actions': [
60 { 60 {
61 'action_name': 'snapshot', 61 'action_name': 'snapshot',
62 'inputs': [ 62 'inputs': [
63 '<(PRODUCT_DIR)/snapshot', 63 '<(PRODUCT_DIR)/snapshot',
64 ], 64 ],
65 'outputs': [ 65 'outputs': [
66 '<(PRODUCT_DIR)/snapshot.o', 66 '<(PRODUCT_DIR)/snapshot.o',
67 ], 67 ],
(...skipping 12 matching lines...) Expand all
80 'elf32-littlearm', 80 'elf32-littlearm',
81 '-B', 81 '-B',
82 'arm', 82 'arm',
83 'snapshot', 83 'snapshot',
84 'snapshot.o', 84 'snapshot.o',
85 ], 85 ],
86 }, 86 },
87 ], 87 ],
88 }, 88 },
89 { 89 {
90 'target_name': 'libdisco_fletch', 90 'target_name': 'libdisco_dartino',
91 'variables': { 91 'variables': {
92 'source_path': 'src', 92 'source_path': 'src',
93 'generated_path': 'generated', 93 'generated_path': 'generated',
94 'template_path': 'template', 94 'template_path': 'template',
95 'common_cflags': [ 95 'common_cflags': [
96 # Our target will link in the stm files which do have a few warnings. 96 # Our target will link in the stm files which do have a few warnings.
97 '-Wno-write-strings', 97 '-Wno-write-strings',
98 '-Wno-sign-compare', 98 '-Wno-sign-compare',
99 '-Wno-missing-field-initializers', 99 '-Wno-missing-field-initializers',
100 ], 100 ],
(...skipping 15 matching lines...) Expand all
116 '<(source_path)', 116 '<(source_path)',
117 ], 117 ],
118 'sources': [ 118 'sources': [
119 # Application. 119 # Application.
120 '<(source_path)/circular_buffer.cc', 120 '<(source_path)/circular_buffer.cc',
121 '<(source_path)/circular_buffer.h', 121 '<(source_path)/circular_buffer.h',
122 '<(source_path)/cmpctmalloc.c', 122 '<(source_path)/cmpctmalloc.c',
123 '<(source_path)/cmpctmalloc.h', 123 '<(source_path)/cmpctmalloc.h',
124 '<(source_path)/freertos.cc', 124 '<(source_path)/freertos.cc',
125 '<(source_path)/FreeRTOSConfig.h', 125 '<(source_path)/FreeRTOSConfig.h',
126 '<(source_path)/fletch_entry.cc', 126 '<(source_path)/dartino_entry.cc',
127 '<(source_path)/main.cc', 127 '<(source_path)/main.cc',
128 '<(source_path)/page_allocator.cc', 128 '<(source_path)/page_allocator.cc',
129 '<(source_path)/page_allocator.h', 129 '<(source_path)/page_allocator.h',
130 '<(source_path)/uart.cc', 130 '<(source_path)/uart.cc',
131 '<(source_path)/uart.h', 131 '<(source_path)/uart.h',
132 132
133 '<(source_path)/syscalls.c', 133 '<(source_path)/syscalls.c',
134 134
135 # Generated files. 135 # Generated files.
136 '<(generated_path)/Inc/mxconstants.h', 136 '<(generated_path)/Inc/mxconstants.h',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 'cflags': [ 168 'cflags': [
169 '<@(common_cflags)', 169 '<@(common_cflags)',
170 ], 170 ],
171 'cflags_cc': [ 171 'cflags_cc': [
172 '<@(common_cflags_cc)', 172 '<@(common_cflags_cc)',
173 ], 173 ],
174 }], 174 }],
175 ], 175 ],
176 }, 176 },
177 { 177 {
178 'target_name': 'disco_fletch.elf', 178 'target_name': 'disco_dartino.elf',
179 'dependencies': [ 179 'dependencies': [
180 'libdisco_fletch', 180 'libdisco_dartino',
181 'disco_fletch_dart_snapshot.o', 181 'disco_dartino_dart_snapshot.o',
182 '../../../src/vm/vm.gyp:libfletch', 182 '../../../src/vm/vm.gyp:libdartino',
183 ], 183 ],
184 'variables': { 184 'variables': {
185 'common_ldflags': [ 185 'common_ldflags': [
186 '-specs=nano.specs', 186 '-specs=nano.specs',
187 # TODO(340): Why does this not work??? 187 # TODO(340): Why does this not work???
188 #'-T<(generated_path)/SW4STM32/configuration/STM32F746NGHx_FLASH.ld', 188 #'-T<(generated_path)/SW4STM32/configuration/STM32F746NGHx_FLASH.ld',
189 # TODO(340): Why is this needed??? 189 # TODO(340): Why is this needed???
190 '-T../../platforms/stm/disco_fletch/generated/SW4STM32/' 190 '-T../../platforms/stm/disco_dartino/generated/SW4STM32/'
191 'configuration/STM32F746NGHx_FLASH.ld', 191 'configuration/STM32F746NGHx_FLASH.ld',
192 '-Wl,--wrap=__libc_init_array', 192 '-Wl,--wrap=__libc_init_array',
193 '-Wl,--wrap=_malloc_r', 193 '-Wl,--wrap=_malloc_r',
194 '-Wl,--wrap=_malloc_r', 194 '-Wl,--wrap=_malloc_r',
195 '-Wl,--wrap=_realloc_r', 195 '-Wl,--wrap=_realloc_r',
196 '-Wl,--wrap=_calloc_r', 196 '-Wl,--wrap=_calloc_r',
197 '-Wl,--wrap=_free_r', 197 '-Wl,--wrap=_free_r',
198 ], 198 ],
199 }, 199 },
200 'type': 'executable', 200 'type': 'executable',
(...skipping 13 matching lines...) Expand all
214 '<@(common_ldflags)', 214 '<@(common_ldflags)',
215 ], 215 ],
216 }], 216 }],
217 ], 217 ],
218 'libraries': [ 218 'libraries': [
219 '-lstdc++', 219 '-lstdc++',
220 ], 220 ],
221 }, 221 },
222 { 222 {
223 'variables': { 223 'variables': {
224 'project_name': 'disco_fletch', 224 'project_name': 'disco_dartino',
225 }, 225 },
226 'type': 'none', 226 'type': 'none',
227 'target_name': 'disco_fletch', 227 'target_name': 'disco_dartino',
228 'dependencies' : [ 228 'dependencies' : [
229 'disco_fletch.elf' 229 'disco_dartino.elf'
230 ], 230 ],
231 'actions': [ 231 'actions': [
232 { 232 {
233 'action_name': 'generate_bin', 233 'action_name': 'generate_bin',
234 'inputs': [ 234 'inputs': [
235 '<(PRODUCT_DIR)/<(project_name).elf', 235 '<(PRODUCT_DIR)/<(project_name).elf',
236 ], 236 ],
237 'outputs': [ 237 'outputs': [
238 '<(PRODUCT_DIR)/<(project_name).bin', 238 '<(PRODUCT_DIR)/<(project_name).bin',
239 ], 239 ],
240 'action': [ 240 'action': [
241 '<(objcopy)', 241 '<(objcopy)',
242 '-O', 242 '-O',
243 'binary', 243 'binary',
244 '<(PRODUCT_DIR)/<(project_name).elf', 244 '<(PRODUCT_DIR)/<(project_name).elf',
245 '<(PRODUCT_DIR)/<(project_name).bin', 245 '<(PRODUCT_DIR)/<(project_name).bin',
246 ], 246 ],
247 }, 247 },
248 ], 248 ],
249 }, 249 },
250 { 250 {
251 'type': 'none', 251 'type': 'none',
252 'target_name': 'disco_fletch_flash', 252 'target_name': 'disco_dartino_flash',
253 'dependencies' : [ 253 'dependencies' : [
254 'disco_fletch' 254 'disco_dartino'
255 ], 255 ],
256 'actions': [ 256 'actions': [
257 { 257 {
258 'action_name': 'flash', 258 'action_name': 'flash',
259 'inputs': [ 259 'inputs': [
260 '<(PRODUCT_DIR)/disco_fletch.bin', 260 '<(PRODUCT_DIR)/disco_dartino.bin',
261 ], 261 ],
262 'outputs': [ 262 'outputs': [
263 'dummy', 263 'dummy',
264 ], 264 ],
265 'action': [ 265 'action': [
266 '<(DEPTH)/tools/lk/flash-image.sh', 266 '<(DEPTH)/tools/lk/flash-image.sh',
267 '--disco', 267 '--disco',
268 '<(PRODUCT_DIR)/disco_fletch.bin', 268 '<(PRODUCT_DIR)/disco_dartino.bin',
269 ], 269 ],
270 }, 270 },
271 ], 271 ],
272 }, 272 },
273 ], 273 ],
274 } 274 }
OLDNEW
« no previous file with comments | « platforms/stm/disco_dartino/cmpctmalloc_test.sh ('k') | platforms/stm/disco_dartino/disco_dartino.ioc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698