-
Notifications
You must be signed in to change notification settings - Fork 832
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 #7990 from buchstabenwurst/master
Add support for (DevkitPro)libnds
- Loading branch information
Showing
10 changed files
with
88 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# wolfSSL for libnds | ||
|
||
## Requirements | ||
|
||
[Devkitpro](https://devkitpro.org/wiki/Getting_Started) with libnds. | ||
|
||
|
||
## Building | ||
|
||
``` | ||
$ ./configure \ | ||
--host=arm-none-eabi \ | ||
CC=$DEVKITARM/bin/arm-none-eabi-g++ \ | ||
AR=$DEVKITARM/bin/arm-none-eabi-ar \ | ||
STRIP=$DEVKITARM/bin/arm-none-eabi-strip \ | ||
RANLIB=$DEVKITARM/bin/arm-none-eabi-ranlib \ | ||
LIBS="-lfat -lnds9" \ | ||
LDFLAGS="-L/opt/devkitpro/libnds/lib" \ | ||
--prefix=$DEVKITPRO/portlibs/nds \ | ||
CFLAGS="-march=armv5te -mtune=arm946e-s \ | ||
--specs=ds_arm9.specs -DARM9 -DNDS \ | ||
-DWOLFSSL_USER_IO \ | ||
-I$DEVKITPRO/libnds/include" \ | ||
--enable-fastmath --disable-benchmark \ | ||
--disable-shared --disable-examples --disable-ecc | ||
$ make | ||
$ sudo make install | ||
``` | ||
|
||
## Run the Tests | ||
|
||
To run the Crypttests type the following. | ||
1. Run `$ ndstool -9 ./wolfcrypt/test/testwolfcrypt -c ./wolfcrypt/test/testwolfcrypt.nds` | ||
2. copy `./certs` to `your_nds_sd_card/_nds/certs` | ||
|
||
3. Run the Rom (located in ./wolfcrypt/test/testwolfcrypt.nds) in an Emulator or real Hardware. |
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
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
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
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