forked from wolfSSL/wolfssl
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wolfSSL#7559 from gojimmypi/PR-PlatformIO-FreeRTOS
Update PlatformIO README and Examples
- Loading branch information
Showing
9 changed files
with
457 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,81 +2,25 @@ | |
|
||
Follow the [instructions](https://docs.platformio.org/en/latest/core/installation/methods/index.html) to install PlatformIO. | ||
|
||
Note there are two options: | ||
Note there are two options for using PlatformIO: | ||
|
||
- [Core CLI](https://docs.platformio.org/en/latest/core/index.html) | ||
- [VSCode IDE](https://docs.platformio.org/en/latest/integration/ide/vscode.html#ide-vscode) | ||
|
||
There are two types wolfSSL libraries for PlatformIO: | ||
|
||
## Publishing | ||
|
||
The PlatformIO Core CLI is needed to publish wolfSSL: | ||
|
||
See also the [Arduino](../ARDUINO/README.md) publishing notes. | ||
|
||
|
||
### Publish PlatformIO Arduino Library with Windows | ||
|
||
The wolfSSL publishing is done from the `scripts`. Here are somple examples: | ||
|
||
Setup the PlatformIO CLI: | ||
|
||
```dos | ||
set PATH=%PATH%;C:\Users\%USERNAME%\.platformio\penv\Scripts\ | ||
pio --help | ||
pio account show | ||
``` | ||
|
||
Publish | ||
|
||
```dos | ||
pio pkg publish --owner wolfSSL C:\workspace\Arduino-wolfSSL | ||
``` | ||
|
||
### Publish with Linux | ||
- Regular (release): https://registry.platformio.org/libraries/wolfssl/wolfssl | ||
- Arduino (release): https://registry.platformio.org/libraries/wolfssl/Arduino-wolfSSL | ||
|
||
```bash | ||
set PATH=%PATH%;C:\Users\%USERNAME%\.platformio\penv\Scripts\ | ||
pio --help | ||
pio account show | ||
``` | ||
There are staging / preview libraries for each of the two types wolfSSL libraries for PlatformIO: | ||
|
||
```bash | ||
pio pkg publish --owner wolfSSL ~\workspace\Arduino-wolfSSL | ||
``` | ||
- Regular (staging / preview): https://registry.platformio.org/libraries/wolfssl-staging/wolfSSL | ||
- Arduino (staging / preview): https://registry.platformio.org/libraries/wolfssl-staging/Arduino-wolfSSL | ||
|
||
### Create a staging / preview wolfssl org | ||
# Examples | ||
|
||
See | ||
See the [examples directory](./examples/) | ||
|
||
``` | ||
pio org create wolfssl-staging --email [email protected] --displayname "testing preview wolfssl" | ||
``` | ||
|
||
### Add user to org | ||
|
||
The creator of an org is automatically added as user / owner at org creation time. Others can be added: | ||
|
||
``` | ||
pio org add wolfssl-staging gojimmypi | ||
``` | ||
|
||
### Publish Arduino wolfSSL to staging / preview site: | ||
|
||
``` | ||
pio pkg publish --owner wolfssl-staging C:\workspace\Arduino-wolfSSL | ||
``` | ||
|
||
### Publish Regular wolfSSL to staging / preview site: | ||
|
||
``` | ||
pio pkg publish --owner wolfssl-staging C:\workspace\wolfssl-gojimmypi\IDE\PlatformIO\PlatformIO_wolfSSL | ||
``` | ||
|
||
### Remove published version from staging site: | ||
|
||
`pio pkg unpublish [<organization>/]<pkgname>[@<version>] [OPTIONS]` | ||
## Publishing | ||
|
||
``` | ||
pio pkg unpublish wolfssl-staging/[email protected] | ||
``` | ||
The wolfSSL publishing is performed from the `scripts`. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* PlatformIO wolfssl_benchmark main.c | ||
* | ||
* Copyright (C) 2006-2024 wolfSSL Inc. | ||
* | ||
* This file is part of wolfSSL. | ||
* | ||
* wolfSSL is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* wolfSSL is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA | ||
*/ | ||
#ifndef _MAIN_H_ | ||
#define _MAIN_H_ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.