diff --git a/tirtos_ccs_examples/README.md b/tirtos_ccs_examples/README.md index 54592957..14c557e0 100644 --- a/tirtos_ccs_examples/README.md +++ b/tirtos_ccs_examples/README.md @@ -29,30 +29,68 @@ Part 4: Build the libraries -- At this point we are ready to build wolfssl libraries with TIRTOS

-WINDOWS:
- In the file browser navigate to: `C:\ti\ccsv6\tools\compiler` and see which
- compiler you have installed `ti-cgt-arm_x.x.x` and make a note of it.
-
- Now in the file browser navigate to `C:\ti\tirtos_tivac_xxxxxxx` open `tirtos.mak` in your
- preferred text editor
-
- Locate the line specifying the compiler. You should find this on or around line 11 and it will look
- something like this:
- `ti.targets.arm.elf.M4F ?= $(DEFAULT_INSTALLATION_DIR)/ccsv6/tools/compiler/ti-cgt-arm_5.2.5`
-
- Make sure you are using the `ti-cgt-agrm_x.x.x` that you noted previously
-
- Next locate the wolfSSL section should be on or around line 45 and looks like this:
- `WolfSSL settings`
- `WOLFSSL_INSTALLATION_DIR ?= C:\wolfssl`
- `WOLFSSL_TIRTOS_DIR = $(WOLFSSL_INSTALLATION_DIR)/tirtos`
-
- Modify WOLFSSL_INSTALLATION_DIR to be the location of your wolfssl directory. Should be C:\wolfssl.
-
- Open a command promp and navigate to `C:\ti\tirtos_tivac_xxxxxxx`
-
- Use the following command to build TIRTOS and wolfssl
- `..\xdctools_3_31_01_33_core\gmake.exe -f tirtos.mak wolfssl`
+This process will be easiest if you set your environment up in the following
+way.
+ +`C:\ti`
+`C:\ti\wolfssl`
+`C:\ti\ccsv6`
+`C:\ti\xdctools..`
. +`C:\ti\tirtos_tivac...`
+ +File: `C:\ti\wolfssl\tirtos\products.mak`
+Instructions:
+Copy and paste the following contents into the `C:\ti\wolfssl\tirtos\products.mak`
+file then browse to C:/ti/ and update all lines with `"X_XX_XX_XX"` to the correct
+version on your system. Also update the "X.X.X" and "X.X.X.XXx"
+ +NOTE: DO NOT forget the `"_core"` on the end of `XDC_INSTALL_DIR` if it is present
+in your environment, must be exact.
+
+################################################################################
+Contents of products.mak BEGIN
+################################################################################
+ +``` +# +# ======== products.mak ======== +# +# +# Read the http://processors.wiki.ti.com/index.php/Using_wolfSSL_with_TI-RTOS +# for instructions to download the software required. + +export XDCTOOLS_JAVA_HOME = c:/ti/ccsv6/eclipse/jre + +# XDC_INSTALL_DIR is the path to XDCtools directory. +XDC_INSTALL_DIR = c:/ti/xdctools_X_XX_XX_XX_core + +# BIOS_INSTALL_DIR is the path to TI-RTOS Kernel (SYS/BIOS) directory. If you +# have installed TI-RTOS, it is located in the products/bios_* path. +BIOS_INSTALL_DIR = c:/ti/tirtos_tivac_X_XX_XX_XX/products/bios_X_XX_XX_XX + +# NDK_INSTALL_DIR is the path to TI-RTOS NDK directory. If you have +# installed TI-RTOS, it is located in the products/ndk_* path. +NDK_INSTALL_DIR = c:/ti/tirtos_tivac_X_XX_XX_XX/products/ndk_X_XX_XX_XX + +# TIVAWARE_INSTALL_DIR is the path to Tivaware driverlib directory. If you have +# installed TI-RTOS, it is located in the products/TivaWare_* path. +TIVAWARE_INSTALL_DIR = c:/ti/tirtos_tivac_X_XX_XX_XX/products/TivaWare_C_Series-X.X.X.XXx + +# Define the code generation tools path for TI, IAR and GCC ARM compilers. +# If you have installed Code Composer Studio, the TI and GCC compiler are +# located in the ccsv*/tools/compiler/* path. +# +# Leave assignment empty to disable any toolchain. +ti.targets.arm.elf.M4F = c:/ti/ccsv6/tools/compiler/ti-cgt-arm_X.X.X +``` + +################################################################################
+Contents of products.mak END
+################################################################################
+ +Finally from the wolfssl/tirtos directory run this command:
+`..\..\xdctools_X_XX_XX_XX_core\gmake.exe -f wolfssl.mak`
+
The libraries should build without issues.