aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Reeder2016-07-11 11:20:11 -0500
committerJason Reeder2016-09-06 18:23:55 -0500
commit61e951533cbe86f1e3f7bbb132454220d927803c (patch)
treead933c6a082a865bf8276d95ce986f7fb062b433 /pru_cape
parent4a93f7ea2dd66cb82e0d861f1aa2fa142adac174 (diff)
downloadpru-software-support-package-61e951533cbe86f1e3f7bbb132454220d927803c.tar.gz
pru-software-support-package-61e951533cbe86f1e3f7bbb132454220d927803c.tar.xz
pru-software-support-package-61e951533cbe86f1e3f7bbb132454220d927803c.zip
[WIP] Updating makefiles using script
Signed-off-by: Jason Reeder <jreeder@ti.com>
Diffstat (limited to 'pru_cape')
-rw-r--r--pru_cape/pru_fw/PRU_Audio/Makefile17
-rw-r--r--pru_cape/pru_fw/PRU_HDQ_TempSensor0/Makefile17
-rw-r--r--pru_cape/pru_fw/PRU_HDQ_TempSensor1/Makefile19
-rw-r--r--pru_cape/pru_fw/PRU_Hardware_UART/Makefile17
-rw-r--r--pru_cape/pru_fw/PRU_LED0/Makefile19
-rw-r--r--pru_cape/pru_fw/PRU_LED1/Makefile19
-rw-r--r--pru_cape/pru_fw/PRU_RPMsg_LED0/Makefile17
-rw-r--r--pru_cape/pru_fw/PRU_Switch/Makefile19
8 files changed, 76 insertions, 68 deletions
diff --git a/pru_cape/pru_fw/PRU_Audio/Makefile b/pru_cape/pru_fw/PRU_Audio/Makefile
index d830f21..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_Audio/Makefile
+++ b/pru_cape/pru_fw/PRU_Audio/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_HDQ_TempSensor0/Makefile b/pru_cape/pru_fw/PRU_HDQ_TempSensor0/Makefile
index d830f21..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_HDQ_TempSensor0/Makefile
+++ b/pru_cape/pru_fw/PRU_HDQ_TempSensor0/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_HDQ_TempSensor1/Makefile b/pru_cape/pru_fw/PRU_HDQ_TempSensor1/Makefile
index eeaa1f1..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_HDQ_TempSensor1/Makefile
+++ b/pru_cape/pru_fw/PRU_HDQ_TempSensor1/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR)
20LINKER_COMMAND_FILE=./AM335x_PRU.cmd 22LINKER_COMMAND_FILE=./AM335x_PRU.cmd
21HEX_COMMAND_FILE=./PRU_HexUtil.cmd 23HEX_COMMAND_FILE=./PRU_HexUtil.cmd
22LIBS=--library=../../../lib/rpmsg_lib.lib 24LIBS=--library=../../../lib/rpmsg_lib.lib
23INCLUDE=--include_path=../../../include --include_path=../../../include/am335x 25INCLUDE=--include_path=../../../include --include_path=../../../include/am335x
24STACK_SIZE=0x100 26STACK_SIZE=0x100
25HEAP_SIZE=0x100 27HEAP_SIZE=0x100
26GEN_DIR=gen 28GEN_DIR=gen
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_Hardware_UART/Makefile b/pru_cape/pru_fw/PRU_Hardware_UART/Makefile
index d830f21..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_Hardware_UART/Makefile
+++ b/pru_cape/pru_fw/PRU_Hardware_UART/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_LED0/Makefile b/pru_cape/pru_fw/PRU_LED0/Makefile
index eeaa1f1..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_LED0/Makefile
+++ b/pru_cape/pru_fw/PRU_LED0/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR)
20LINKER_COMMAND_FILE=./AM335x_PRU.cmd 22LINKER_COMMAND_FILE=./AM335x_PRU.cmd
21HEX_COMMAND_FILE=./PRU_HexUtil.cmd 23HEX_COMMAND_FILE=./PRU_HexUtil.cmd
22LIBS=--library=../../../lib/rpmsg_lib.lib 24LIBS=--library=../../../lib/rpmsg_lib.lib
23INCLUDE=--include_path=../../../include --include_path=../../../include/am335x 25INCLUDE=--include_path=../../../include --include_path=../../../include/am335x
24STACK_SIZE=0x100 26STACK_SIZE=0x100
25HEAP_SIZE=0x100 27HEAP_SIZE=0x100
26GEN_DIR=gen 28GEN_DIR=gen
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_LED1/Makefile b/pru_cape/pru_fw/PRU_LED1/Makefile
index eeaa1f1..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_LED1/Makefile
+++ b/pru_cape/pru_fw/PRU_LED1/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR)
20LINKER_COMMAND_FILE=./AM335x_PRU.cmd 22LINKER_COMMAND_FILE=./AM335x_PRU.cmd
21HEX_COMMAND_FILE=./PRU_HexUtil.cmd 23HEX_COMMAND_FILE=./PRU_HexUtil.cmd
22LIBS=--library=../../../lib/rpmsg_lib.lib 24LIBS=--library=../../../lib/rpmsg_lib.lib
23INCLUDE=--include_path=../../../include --include_path=../../../include/am335x 25INCLUDE=--include_path=../../../include --include_path=../../../include/am335x
24STACK_SIZE=0x100 26STACK_SIZE=0x100
25HEAP_SIZE=0x100 27HEAP_SIZE=0x100
26GEN_DIR=gen 28GEN_DIR=gen
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_RPMsg_LED0/Makefile b/pru_cape/pru_fw/PRU_RPMsg_LED0/Makefile
index d830f21..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_RPMsg_LED0/Makefile
+++ b/pru_cape/pru_fw/PRU_RPMsg_LED0/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)
diff --git a/pru_cape/pru_fw/PRU_Switch/Makefile b/pru_cape/pru_fw/PRU_Switch/Makefile
index eeaa1f1..52d3c61 100644
--- a/pru_cape/pru_fw/PRU_Switch/Makefile
+++ b/pru_cape/pru_fw/PRU_Switch/Makefile
@@ -1,13 +1,15 @@
1# PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: 1# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.:
2#(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 2#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
3#(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 3#(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
4#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
4ifndef PRU_CGT 5ifndef PRU_CGT
5define ERROR_BODY 6define ERROR_BODY
6 7
7************************************************************ 8************************************************************
8PRU_CGT environment variable is not set. Examples given: 9PRU_CGT environment variable is not set. Examples given:
9(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 10(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
10(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 11(ARM Linux) export PRU_CGT=/usr/share/ti/cgt-pru
12(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2
11************************************************************ 13************************************************************
12 14
13endef 15endef
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR)
20LINKER_COMMAND_FILE=./AM335x_PRU.cmd 22LINKER_COMMAND_FILE=./AM335x_PRU.cmd
21HEX_COMMAND_FILE=./PRU_HexUtil.cmd 23HEX_COMMAND_FILE=./PRU_HexUtil.cmd
22LIBS=--library=../../../lib/rpmsg_lib.lib 24LIBS=--library=../../../lib/rpmsg_lib.lib
23INCLUDE=--include_path=../../../include --include_path=../../../include/am335x 25INCLUDE=--include_path=../../../include --include_path=../../../include/am335x
24STACK_SIZE=0x100 26STACK_SIZE=0x100
25HEAP_SIZE=0x100 27HEAP_SIZE=0x100
26GEN_DIR=gen 28GEN_DIR=gen
@@ -30,7 +32,6 @@ CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_di
30#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) 32#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide)
31LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) 33LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE)
32 34
33#Using .object instead of .obj in order to not conflict with the CCS build process
34HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object 35HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object
35TARGET=$(GEN_DIR)/$(PROJ_NAME).out 36TARGET=$(GEN_DIR)/$(PROJ_NAME).out
36MAP=$(GEN_DIR)/$(PROJ_NAME).map 37MAP=$(GEN_DIR)/$(PROJ_NAME).map
@@ -47,6 +48,8 @@ printStart:
47 48
48printEnd: 49printEnd:
49 @echo '' 50 @echo ''
51 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
52 @echo ''
50 @echo 'Finished building project: $(PROJ_NAME)' 53 @echo 'Finished building project: $(PROJ_NAME)'
51 @echo '************************************************************' 54 @echo '************************************************************'
52 @echo '' 55 @echo ''
@@ -57,8 +60,6 @@ $(HEX_FILE): $(TARGET)
57 @echo 'Invoking PRU Hex Utility' 60 @echo 'Invoking PRU Hex Utility'
58 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE) 61 $(PRU_CGT)/bin/hexpru -o $@ $< $(HEX_COMMAND_FILE)
59 @echo 'Finished building: $@' 62 @echo 'Finished building: $@'
60 @echo ''
61 @echo 'Output files can be found in the "$(GEN_DIR)" directory'
62 63
63# Invokes the linker (-z flag) to make the .out file 64# Invokes the linker (-z flag) to make the .out file
64$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) 65$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE)