From ab5c12fd17eec26225583c6039d0d70d07a4b638 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 9 Sep 2019 09:01:18 -0700 Subject: [PATCH] Added parenthesis around types.h pointer size macro. --- IDE/RISCV/README.md | 12 +++++++++++- wolfssl/wolfcrypt/types.h | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/IDE/RISCV/README.md b/IDE/RISCV/README.md index 86cdc2e1b..c7b892f65 100644 --- a/IDE/RISCV/README.md +++ b/IDE/RISCV/README.md @@ -9,6 +9,8 @@ SiFive Freedom U540 SoC at 1.5GHz Getting started guide: https://sifive.cdn.prismic.io/sifive%2Ffa3a584a-a02f-4fda-b758-a2def05f49f9_hifive-unleashed-getting-started-guide-v1p1.pdf +Make sure your ethernet is attached and power up board. You can connecct the micro-usb to get a UART console that will display the DHCP IP address. Default login password is "sifive". + ## Building Freedom-U-SDK ```sh @@ -44,6 +46,14 @@ Note: Make sure S1 Switch 5 (MSEL2) is OFF, rest ON (MSEL=1011) to boot from SD ## Building wolfSSL +This example assumes the `wolfssl` root directory is along side the `freedom-u-sdk` directory. If not then adjust paths. + +``` +~\ + wolfssl + freedom-u-sdk +``` + ```sh ./configure --host=riscv64 \ CC="`pwd`/../freedom-u-sdk/work/buildroot_initramfs/host/bin/riscv64-sifive-linux-gnu-gcc" \ @@ -54,7 +64,7 @@ Note: Make sure S1 Switch 5 (MSEL2) is OFF, rest ON (MSEL=1011) to boot from SD make ``` -Copy files to device: +Copy files to device (replace IP address): ```sh scp ./wolfcrypt/test/testwolfcrypt root@192.168.0.144:~ diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index d909cb9ec..df8e9f6f5 100755 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -101,7 +101,7 @@ #if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \ defined(__mips64) || defined(__x86_64__) || defined(_M_X64)) || \ defined(__aarch64__) || defined(__sparc64__) || \ - (defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ == 8) + (defined(__SIZEOF_POINTER__) && (__SIZEOF_POINTER__ == 8)) typedef word64 wolfssl_word; #define WC_64BIT_CPU #elif (defined(sun) || defined(__sun)) && \