-
Notifications
You must be signed in to change notification settings - Fork 1k
embOS port #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
embOS port #407
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d184f8b
wolfSSL embOS port Initialize
kaleb-himes 8176c74
Merge branch 'embOS-port' of https://github.com/wolfssl/wolfssl into …
kaleb-himes 6e26cac
Reworking directories and simplify README
kaleb-himes 41d19b4
Remove WOLFSSL_TRACK_MEMORY
kaleb-himes ca2f0af
Make suggested changes from first review
kaleb-himes 4df12e1
Add note for users about embOS directory
kaleb-himes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,6 @@ | ||
| *.bat | ||
| *.xcl | ||
| *.crun | ||
| *.dbgdt | ||
| *.dni | ||
|
|
This file contains hidden or 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,28 @@ | ||
| #-----------------------------------------------------------------------------# | ||
| wolfSSL + embOS + IAR Workbench | ||
| #-----------------------------------------------------------------------------# | ||
|
|
||
| #-----------------------------------------------------------------------------# | ||
| For building the existing examples on a SAMV71_Explained_Ultra with Cortex M7 | ||
| #-----------------------------------------------------------------------------# | ||
|
|
||
| See SAMV71_XULT\<example>\README_<example> | ||
|
|
||
| I.E. SAMV71_XULT\embOS_wolfcrypt_lib_SAMV71_XULT\README_wolfcrypt_lib | ||
|
|
||
| #-----------------------------------------------------------------------------# | ||
| For building wolfssl on a new CPU that is supported by embOS in IAR Workbench | ||
| #-----------------------------------------------------------------------------# | ||
|
|
||
| See custom_port\README_custom_port | ||
|
|
||
| #-----------------------------------------------------------------------------# | ||
| #-----------------------------------------------------------------------------# | ||
|
|
||
| Thank you for choosing wolfSSL if you ever have any questions please contact us! | ||
|
|
||
| support@wolfssl.com | ||
| info@wolfssl.com | ||
|
|
||
| Copyright © 2016 wolfSSL Inc. All rights reserved. | ||
|
|
This file contains hidden or 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,14 @@ | ||
| Each example project here has it's own README please follow them in detail. | ||
|
|
||
| embOS_wolfcrypt_benchmark_SAMV71_XULT\README_wolfcrypt_benchmark | ||
| embOS_wolfcrypt_lib_SAMV71_XULT\README_wolfcrypt_lib | ||
| embOS_wolfcrypt_test_SAMV71_XULT\README_wolfcrypt_test | ||
|
|
||
|
|
||
| Thank you for using this guide and we hope this is helpful to you. If you have | ||
| any suggestions / feedback for us please contact us: | ||
| support@wolfssl.com | ||
| info@wolfssl.com | ||
|
|
||
| Copyright © 2016 wolfSSL Inc. All rights reserved. | ||
|
|
33 changes: 33 additions & 0 deletions
33
IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_SAMV71_XULT_Linker_Script/samv71q21_wolfssl.icf
This file contains hidden or 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,33 @@ | ||
| /* | ||
| * A simple example for evaluation purposes written from scratch by wolfSSL Inc | ||
| */ | ||
|
|
||
| /*###ICF### ****/ | ||
| /*-Editor annotation file-*/ | ||
| /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ | ||
| /*-Specials-*/ | ||
| define symbol __ICFEDIT_intvec_start__ = 0x00400000; | ||
| /*-Memory Regions-*/ | ||
| define symbol __ICFEDIT_region_RAM_start__ = 0x20400000; | ||
| define symbol __ICFEDIT_region_RAM_end__ = 0x20459999; | ||
| define symbol __ICFEDIT_region_ROM_start__ = 0x00400000; | ||
| define symbol __ICFEDIT_region_ROM_end__ = 0x00599999; | ||
| /*-Sizes-*/ | ||
| define symbol __ICFEDIT_size_cstack__ = 0x400; | ||
| define symbol __ICFEDIT_size_heap__ = 0x13000; | ||
| /**** ###ICF###*/ | ||
|
|
||
| define memory mem with size = 4G; | ||
| define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; | ||
| define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; | ||
|
|
||
| define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; | ||
| define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; | ||
|
|
||
| initialize by copy { readwrite }; | ||
| do not initialize { section .noinit }; | ||
|
|
||
| place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; | ||
| place in ROM_region { readonly }; | ||
| place in RAM_region { readwrite, block CSTACK, block HEAP }; | ||
|
|
||
67 changes: 67 additions & 0 deletions
67
IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_SAMV71_XULT_user_settings/user_settings.h
This file contains hidden or 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,67 @@ | ||
| #ifndef _EMBOS_USER_SETTINGS_H_ | ||
| #define _EMBOS_USER_SETTINGS_H_ | ||
|
|
||
| #undef WOLFSSL_EMBOS | ||
| #define WOLFSSL_EMBOS | ||
|
|
||
| #undef WOLFCRYPT_ONLY | ||
| #define WOLFCRYPT_ONLY | ||
|
|
||
| #undef NO_64BIT | ||
| #define NO_64BIT | ||
|
|
||
| #undef SIZEOF_LONG | ||
| #define SIZEOF_LONG 4 | ||
|
|
||
| #undef SIZEOF_LONG_LONG | ||
| #define SIZEOF_LONG_LONG 8 | ||
|
|
||
| #undef USE_FAST_MATH | ||
| #define USE_FAST_MATH | ||
|
|
||
| #undef HAVE_CHACHA | ||
| #define HAVE_CHACHA | ||
|
|
||
| #undef HAVE_POLY1305 | ||
| #define HAVE_POLY1305 | ||
|
|
||
| #undef ECC_SHAMIR | ||
| #define ECC_SHAMIR | ||
|
|
||
| #undef HAVE_ECC | ||
| #define HAVE_ECC | ||
|
|
||
| #undef ECC_USER_CURVES | ||
| #define ECC_USER_CURVES | ||
|
|
||
| #undef ECC_ALT_SIZE | ||
| #define ECC_ALT_SIZE | ||
|
|
||
| #undef FP_MAX_BITS_ECC | ||
| #define FP_MAX_BITS_ECC 528 | ||
|
|
||
| #undef TFM_TIMING_RESISTANT | ||
| #define TFM_TIMING_RESISTANT | ||
|
|
||
| #undef WOLFSSL_SHA512 | ||
| #define WOLFSSL_SHA512 | ||
|
|
||
| #undef WOLFSSL_SHA384 | ||
| #define WOLFSSL_SHA384 | ||
|
|
||
| #undef HAVE_AESGCM | ||
| #define HAVE_AESGCM | ||
|
|
||
| #undef NO_INLINE | ||
| #define NO_INLINE | ||
|
|
||
| #undef BENCH_EMBEDDED | ||
| #define BENCH_EMBEDDED | ||
|
|
||
| #undef WOLFSSL_SMALL_STACK | ||
| #define WOLFSSL_SMALL_STACK | ||
|
|
||
| #undef USE_WOLFSSL_MEMORY | ||
| #define USE_WOLFSSL_MEMORY | ||
|
|
||
| #endif /* _EMBOS_USER_SETTINGS_H_ */ |
43 changes: 43 additions & 0 deletions
43
...AR-EWARM/embOS/SAMV71_XULT/embOS_SAMV71_XULT_user_settings/user_settings_simple_example.h
This file contains hidden or 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,43 @@ | ||
| #ifndef _EMBOS_USER_SETTINGS_H_ | ||
| #define _EMBOS_USER_SETTINGS_H_ | ||
|
|
||
| #undef WOLFCRYPT_ONLY | ||
| #define WOLFCRYPT_ONLY | ||
|
|
||
| #undef NO_64BIT | ||
| #define NO_64BIT | ||
|
|
||
| #undef SIZEOF_LONG | ||
| #define SIZEOF_LONG 4 | ||
|
|
||
| #undef SIZEOF_LONG_LONG | ||
| #define SIZEOF_LONG_LONG 8 | ||
|
|
||
| #undef HAVE_CHACHA | ||
| #define HAVE_CHACHA | ||
|
|
||
| #undef HAVE_POLY1305 | ||
| #define HAVE_POLY1305 | ||
|
|
||
| #undef ECC_SHAMIR | ||
| #define ECC_SHAMIR | ||
|
|
||
| #undef HAVE_ECC | ||
| #define HAVE_ECC | ||
|
|
||
| #undef WOLFSSL_SHA512 | ||
| #define WOLFSSL_SHA512 | ||
|
|
||
| #undef WOLFSSL_SHA384 | ||
| #define WOLFSSL_SHA384 | ||
|
|
||
| #undef HAVE_AESGCM | ||
| #define HAVE_AESGCM | ||
|
|
||
| #undef NO_INLINE | ||
| #define NO_INLINE | ||
|
|
||
| #undef BENCH_EMBEDDED | ||
| #define BENCH_EMBEDDED | ||
|
|
||
| #endif /* _EMBOS_USER_SETTINGS_H_ */ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you could write an ICF file from scratch so we own it and then don't need an Atmel license note.