32
32
33
33
class Target :
34
34
"""Represents a build target:
35
-
36
35
Has a name identifier plus parameters on how to build it (what
37
36
builder class to use and what arguments are required to produce
38
37
the specified build)
@@ -56,7 +55,6 @@ def Clone(self):
56
55
57
56
def Extend (self , suffix , ** kargs ):
58
57
"""Creates a clone of the current object extending its build parameters.
59
-
60
58
Arguments:
61
59
suffix: appended with a "-" as separator to the clone name
62
60
**kargs: arguments needed to produce the new build variant
@@ -320,6 +318,13 @@ def InfineonTargets():
320
318
yield target .Extend ('p6-light' , board = InfineonBoard .P6BOARD , app = InfineonApp .LIGHT )
321
319
322
320
321
+ def AmebaTargets ():
322
+ ameba_target = Target ('ameba' , AmebaBuilder )
323
+
324
+ yield ameba_target .Extend ('amebad-all-clusters' , board = AmebaBoard .AMEBAD , app = AmebaApp .ALL_CLUSTERS )
325
+ yield ameba_target .Extend ('amebad-light' , board = AmebaBoard .AMEBAD , app = AmebaApp .LIGHT )
326
+
327
+
323
328
ALL = []
324
329
325
330
target_generators = [
@@ -329,8 +334,8 @@ def InfineonTargets():
329
334
NrfTargets (),
330
335
AndroidTargets (),
331
336
MbedTargets (),
332
- InfineonTargets ()
333
-
337
+ InfineonTargets (),
338
+ AmebaTargets ()
334
339
]
335
340
336
341
for generator in target_generators :
@@ -343,8 +348,6 @@ def InfineonTargets():
343
348
board = TelinkBoard .TLSR9518ADK80D , app = TelinkApp .LIGHT ))
344
349
ALL .append (Target ('tizen-arm-light' , TizenBuilder ,
345
350
board = TizenBoard .ARM , app = TizenApp .LIGHT ))
346
- ALL .append (Target ('ameba-amebad-all-clusters' , AmebaBuilder ,
347
- board = AmebaBoard .AMEBAD , app = AmebaApp .ALL_CLUSTERS ))
348
351
349
352
# have a consistent order overall
350
353
ALL .sort (key = lambda t : t .name )
0 commit comments