Skip to content

Commit 9e41fec

Browse files
committed
Merge pull request #1541 from sg-/venv
Venv
2 parents 333bfa2 + 1c53fe8 commit 9e41fec

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ private_settings.py
1111

1212
# Default Build Directory
1313
build/
14+
venv/
1415

1516
# Eclipse Project Files
1617
.cproject

README.md

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,17 @@ Renesas:
9090
* [RZ-A1H](http://developer.mbed.org/platforms/Renesas-GR-PEACH/) (Cortex-A9)
9191

9292
Silicon Labs:
93-
* [EFM32 Zero Gecko] (https://developer.mbed.org/platforms/EFM32-Zero-Gecko/) (Cortex-M0+)
94-
* [EFM32 Happy Gecko] (https://developer.mbed.org/platforms/EFM32-Happy-Gecko/) (Cortex-M0+)
95-
* [EFM32 Leopard Gecko] (https://developer.mbed.org/platforms/EFM32-Leopard-Gecko/) (Cortex-M3)
96-
* [EFM32 Giant Gecko] (https://developer.mbed.org/platforms/EFM32-Giant-Gecko/) (Cortex-M3)
97-
* [EFM32 Wonder Gecko] (https://developer.mbed.org/platforms/EFM32-Wonder-Gecko/) (Cortex-M4)
93+
* [EFM32 Zero Gecko](https://developer.mbed.org/platforms/EFM32-Zero-Gecko/) (Cortex-M0+)
94+
* [EFM32 Happy Gecko](https://developer.mbed.org/platforms/EFM32-Happy-Gecko/) (Cortex-M0+)
95+
* [EFM32 Leopard Gecko](https://developer.mbed.org/platforms/EFM32-Leopard-Gecko/) (Cortex-M3)
96+
* [EFM32 Giant Gecko](https://developer.mbed.org/platforms/EFM32-Giant-Gecko/) (Cortex-M3)
97+
* [EFM32 Wonder Gecko](https://developer.mbed.org/platforms/EFM32-Wonder-Gecko/) (Cortex-M4)
9898

9999
Atmel:
100-
* [SAM R21 XPRO] (https://developer.mbed.org/platforms/SAMR21-XPRO/) (Cortex-M0+)
101-
* [SAM L21 XPRO B] (https://developer.mbed.org/platforms/SAML21-XPRO/) (Cortex-M0+)
102-
* [SAM D21 XPRO] (https://developer.mbed.org/platforms/SAMD21-XPRO/) (Cortex-M0+)
103-
* [SAM W25 XPRO] (https://developer.mbed.org/platforms/SAMW25-XPRO/) (Cortex-M0+)
100+
* [SAM R21 XPRO](https://developer.mbed.org/platforms/SAMR21-XPRO/) (Cortex-M0+)
101+
* [SAM L21 XPRO](https://developer.mbed.org/platforms/SAML21-XPRO/) (Cortex-M0+)
102+
* [SAM D21 XPRO](https://developer.mbed.org/platforms/SAMD21-XPRO/) (Cortex-M0+)
103+
* [SAM W25 XPRO](https://developer.mbed.org/platforms/SAMW25-XPRO/) (Cortex-M0+)
104104

105105
Supported Toolchains and IDEs
106106
-----------------------------
@@ -134,3 +134,30 @@ For discussing the development of the mbed SDK itself (Addition/support of micro
134134
For every topic regarding the use of the mbed SDK, rather than its development, please post on the [mbed.org forum](http://mbed.org/forum/), or the [mbed.org Q&A](http://mbed.org/questions/).
135135

136136
For reporting issues in the mbed libraries please open a ticket on the issue tracker of the relevant [mbed official library](http://mbed.org/users/mbed_official/code/).
137+
138+
Setup
139+
-----
140+
Skip any step where a compatible tool already exists
141+
142+
1. Install [Python 2.7.9 or above](https://www.python.org/downloads/) and make sure it's added to path
143+
2. Install [Git](https://git-scm.com/downloads) and make sure it's added to path
144+
3. Install virtualenv in python
145+
146+
```
147+
> git clone https://github.com/mbedmicro/mbed
148+
> pip install virtualenv
149+
> virtualenv venv
150+
>
151+
```
152+
153+
Develop
154+
-------
155+
1. Update dependencies and start virtual environment. This should be done everytime you pull new changes
156+
157+
```
158+
> "venv/Scripts/activate"
159+
> pip install -r requirements.txt
160+
> cd workspace_tools
161+
> ... do things ...
162+
> "venv/Scripts/deactivate"
163+
```

0 commit comments

Comments
 (0)