-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathplatform.py
More file actions
15 lines (13 loc) · 604 Bytes
/
platform.py
File metadata and controls
15 lines (13 loc) · 604 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# WizIO 2019 Georgi Angelov
# http://www.wizio.eu/
# https://github.com/Wiz-IO/platform-quectel
from platform import system
from platformio.managers.platform import PlatformBase
class QuectelPlatform(PlatformBase):
def configure_default_packages(self, variables, targets):
framework = variables.get("pioframework", [])
if variables["board"].startswith('ec2'):
del self.packages["toolchain-gccarmnoneeabi"]
else:
del self.packages["toolchain-gcc-ec2x"]
return PlatformBase.configure_default_packages(self, variables, targets)