-
Notifications
You must be signed in to change notification settings - Fork 966
[Microchip TA-100] Fix port + update to cryptoauthlib v3.6.0 #9702
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
base: master
Are you sure you want to change the base?
Changes from all commits
e3ee55f
492d388
e400fec
5887c9e
fdcf505
bde0142
9d8f643
927b732
90017ba
7d84796
9cb5b7a
81c33bb
5074613
6b9d658
6eb4a30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3108,48 +3108,158 @@ AC_ARG_WITH([maxq10xx], | |||||||||||
| ] | ||||||||||||
| ) | ||||||||||||
|
|
||||||||||||
| AC_ARG_ENABLE([microchip], | ||||||||||||
| [AS_HELP_STRING([--enable-microchip],[Enable wolfSSL support for microchip/atmel 508/608/100 (default: disabled)])], | ||||||||||||
| [ ENABLED_ATMEL=$enableval ], | ||||||||||||
| [ ENABLED_ATMEL=no ] | ||||||||||||
| ) | ||||||||||||
|
|
||||||||||||
| if test "$ENABLED_ATMEL" != "no" | ||||||||||||
| then | ||||||||||||
| AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MICROCHIP" | ||||||||||||
|
|
||||||||||||
| for v in `echo $ENABLED_ATMEL | tr "," " "` | ||||||||||||
| do | ||||||||||||
| case $v in | ||||||||||||
| 508) | ||||||||||||
| AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ATECC508A" | ||||||||||||
| ;; | ||||||||||||
|
|
||||||||||||
| 608) | ||||||||||||
| AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ATECC608A" | ||||||||||||
| ;; | ||||||||||||
|
|
||||||||||||
| 100) | ||||||||||||
| AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MICROCHIP_TA100 -DMICROCHIP_DEV_TYPE=TA100" | ||||||||||||
| ;; | ||||||||||||
| esac | ||||||||||||
| done | ||||||||||||
| fi | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
| # Microchip/Atmel CryptoAuthLib | ||||||||||||
| ENABLED_CRYPTOAUTHLIB="no" | ||||||||||||
| trylibatcadir="" | ||||||||||||
| AC_ARG_WITH([cryptoauthlib], | ||||||||||||
| [AS_HELP_STRING([--with-cryptoauthlib=PATH],[PATH to CryptoAuthLib install (default /usr/)])], | ||||||||||||
| [ | ||||||||||||
| AC_MSG_CHECKING([for cryptoauthlib]) | ||||||||||||
| CPPFLAGS="$CPPFLAGS -DWOLFSSL_ATECC508A" | ||||||||||||
| LIBS="$LIBS -lcryptoauth" | ||||||||||||
| [AS_HELP_STRING([--with-cryptoauthlib=PATH], | ||||||||||||
| [PATH to CryptoAuthLib install (default: system paths)])], | ||||||||||||
| [with_cryptoauthlib=$withval], | ||||||||||||
| [with_cryptoauthlib=no]) | ||||||||||||
|
|
||||||||||||
| AS_IF([test "x$with_cryptoauthlib" != "xno"], [ | ||||||||||||
|
||||||||||||
| AS_IF([test "x$with_cryptoauthlib" != "xno"], [ | |
| AS_IF([test "x$with_cryptoauthlib" != "xno"], [ | |
| AS_IF([test "x$ENABLED_ATMEL" = "xno"], [ | |
| AC_MSG_ERROR([--with-cryptoauthlib requires --enable-microchip=<devices>. Please re-run configure with --enable-microchip=508,608,100 or appropriate devices.]) | |
| ]) |
Copilot
AI
Mar 23, 2026
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.
In the pkg-config path, CRYPTOAUTHLIB_LIBS is appended to both LDFLAGS and LIBS. Since *_LIBS commonly contains -l... entries, putting it into LDFLAGS is non-standard and can cause duplicated/incorrect linker flags downstream. Prefer appending CRYPTOAUTHLIB_LIBS only to LIBS and leaving LDFLAGS for -L.../linker flags.
| LDFLAGS="$CRYPTOAUTHLIB_LIBS $LDFLAGS" |
Uh oh!
There was an error while loading. Please reload this page.