diff options
author | Jason Reeder | 2016-07-11 11:20:11 -0500 |
---|---|---|
committer | Jason Reeder | 2016-09-06 18:23:55 -0500 |
commit | 61e951533cbe86f1e3f7bbb132454220d927803c (patch) | |
tree | ad933c6a082a865bf8276d95ce986f7fb062b433 /pru_cape | |
parent | 4a93f7ea2dd66cb82e0d861f1aa2fa142adac174 (diff) | |
download | pru-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/Makefile | 17 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_HDQ_TempSensor0/Makefile | 17 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_HDQ_TempSensor1/Makefile | 19 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_Hardware_UART/Makefile | 17 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_LED0/Makefile | 19 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_LED1/Makefile | 19 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_RPMsg_LED0/Makefile | 17 | ||||
-rw-r--r-- | pru_cape/pru_fw/PRU_Switch/Makefile | 19 |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR) | |||
20 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd | 22 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd |
21 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd | 23 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd |
22 | LIBS=--library=../../../lib/rpmsg_lib.lib | 24 | LIBS=--library=../../../lib/rpmsg_lib.lib |
23 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x | 25 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x |
24 | STACK_SIZE=0x100 | 26 | STACK_SIZE=0x100 |
25 | HEAP_SIZE=0x100 | 27 | HEAP_SIZE=0x100 |
26 | GEN_DIR=gen | 28 | GEN_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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR) | |||
20 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd | 22 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd |
21 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd | 23 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd |
22 | LIBS=--library=../../../lib/rpmsg_lib.lib | 24 | LIBS=--library=../../../lib/rpmsg_lib.lib |
23 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x | 25 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x |
24 | STACK_SIZE=0x100 | 26 | STACK_SIZE=0x100 |
25 | HEAP_SIZE=0x100 | 27 | HEAP_SIZE=0x100 |
26 | GEN_DIR=gen | 28 | GEN_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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR) | |||
20 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd | 22 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd |
21 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd | 23 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd |
22 | LIBS=--library=../../../lib/rpmsg_lib.lib | 24 | LIBS=--library=../../../lib/rpmsg_lib.lib |
23 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x | 25 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x |
24 | STACK_SIZE=0x100 | 26 | STACK_SIZE=0x100 |
25 | HEAP_SIZE=0x100 | 27 | HEAP_SIZE=0x100 |
26 | GEN_DIR=gen | 28 | GEN_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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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 | ||
4 | ifndef PRU_CGT | 5 | ifndef PRU_CGT |
5 | define ERROR_BODY | 6 | define ERROR_BODY |
6 | 7 | ||
7 | ************************************************************ | 8 | ************************************************************ |
8 | PRU_CGT environment variable is not set. Examples given: | 9 | PRU_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 | ||
13 | endef | 15 | endef |
@@ -20,7 +22,7 @@ PROJ_NAME=$(CURRENT_DIR) | |||
20 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd | 22 | LINKER_COMMAND_FILE=./AM335x_PRU.cmd |
21 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd | 23 | HEX_COMMAND_FILE=./PRU_HexUtil.cmd |
22 | LIBS=--library=../../../lib/rpmsg_lib.lib | 24 | LIBS=--library=../../../lib/rpmsg_lib.lib |
23 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x | 25 | INCLUDE=--include_path=../../../include --include_path=../../../include/am335x |
24 | STACK_SIZE=0x100 | 26 | STACK_SIZE=0x100 |
25 | HEAP_SIZE=0x100 | 27 | HEAP_SIZE=0x100 |
26 | GEN_DIR=gen | 28 | GEN_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) |
31 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | 33 | LFLAGS=--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 | ||
34 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object | 35 | HEX_FILE=$(GEN_DIR)/$(PROJ_NAME)_image.object |
35 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | 36 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out |
36 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | 37 | MAP=$(GEN_DIR)/$(PROJ_NAME).map |
@@ -47,6 +48,8 @@ printStart: | |||
47 | 48 | ||
48 | printEnd: | 49 | printEnd: |
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) |