From 7d6d0b9be9c878ae9be5af318eda02aa8c039e31 Mon Sep 17 00:00:00 2001 From: Ivan Pang Date: Tue, 8 Dec 2015 18:59:45 -0600 Subject: c66x: added makefiles and update scripts for examples Signed-off-by: Ivan Pang --- .../evmc6657l/bin/helloworld_elf2HBin.bat | 2 +- .../evmc6657l/bin/helloworld_elf2HBin.sh | 2 +- .../pcieboot_helloworld/evmc6657l/build/makefile | 150 +++++++++++++++++++++ .../pcieboot_helloworld/evmc6657l/build/objects.mk | 8 ++ .../pcieboot_helloworld/evmc6657l/build/sources.mk | 108 +++++++++++++++ .../evmc6657l/build/src/pcieboot_helloworld.obj | Bin 0 -> 28200 bytes .../evmc6657l/build/src/pcieboot_helloworld.pp | 8 ++ .../evmc6657l/build/src/subdir_rules.mk | 13 ++ .../evmc6657l/build/src/subdir_vars.mk | 24 ++++ .../evmc6657l/build/subdir_rules.mk | 6 + .../evmc6657l/build/subdir_vars.mk | 9 ++ 11 files changed, 328 insertions(+), 2 deletions(-) mode change 100644 => 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat mode change 100644 => 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/makefile create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/objects.mk create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/sources.mk create mode 100644 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.obj create mode 100644 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.pp create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_rules.mk create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_vars.mk create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_rules.mk create mode 100755 boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_vars.mk (limited to 'boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l') diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat old mode 100644 new mode 100755 index 4c41a69..cdc35fe --- a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat @@ -1,4 +1,4 @@ -set C6000_CG_DIR="C:\ti\ccsv5\tools\compiler\c6000_7.4.4" +set C6000_CG_DIR=%C6X_GEN_INSTALL_PATH% set TOOL_DIR="..\..\..\..\..\..\" set TARGET=6657 set ENDIAN=little diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh old mode 100644 new mode 100755 index 8dab971..ce81bad --- a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh @@ -1,4 +1,4 @@ -export CGT_INSTALL_DIR=~/ti/TI_CGT_C6000_7.4.4 +export CGT_INSTALL_DIR=${C6X_GEN_INSTALL_PATH} export TOOL_DIR="../../../../../../" export TARGET=6657 export ENDIAN=little diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/makefile b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/makefile new file mode 100755 index 0000000..57d6e9c --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/makefile @@ -0,0 +1,150 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + + +CG_TOOL_ROOT = $(C6X_GEN_INSTALL_PATH) + +ORDERED_OBJS += \ +"./src/pcieboot_helloworld.obj" \ +"../pcieboot_helloworld.cmd" \ +$(GEN_CMDS__FLAG) \ +-l"ti.platform.evm6657l.ae66" \ +-l"ti.csl.ae66" \ +-l"libc.a" \ + +-include ../makefile.init + +RM = rm +RMDIR = rm -rf + +# All of the sources participating in the build are defined here +-include sources.mk +-include subdir_vars.mk +-include src/subdir_vars.mk +-include subdir_rules.mk +-include src/subdir_rules.mk +-include objects.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(S_DEPS)),) +-include $(S_DEPS) +endif +ifneq ($(strip $(S_UPPER_DEPS)),) +-include $(S_UPPER_DEPS) +endif +ifneq ($(strip $(S62_DEPS)),) +-include $(S62_DEPS) +endif +ifneq ($(strip $(C64_DEPS)),) +-include $(C64_DEPS) +endif +ifneq ($(strip $(ASM_DEPS)),) +-include $(ASM_DEPS) +endif +ifneq ($(strip $(CC_DEPS)),) +-include $(CC_DEPS) +endif +ifneq ($(strip $(S55_DEPS)),) +-include $(S55_DEPS) +endif +ifneq ($(strip $(C67_DEPS)),) +-include $(C67_DEPS) +endif +ifneq ($(strip $(CLA_DEPS)),) +-include $(CLA_DEPS) +endif +ifneq ($(strip $(C??_DEPS)),) +-include $(C??_DEPS) +endif +ifneq ($(strip $(CPP_DEPS)),) +-include $(CPP_DEPS) +endif +ifneq ($(strip $(S??_DEPS)),) +-include $(S??_DEPS) +endif +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +ifneq ($(strip $(C62_DEPS)),) +-include $(C62_DEPS) +endif +ifneq ($(strip $(CXX_DEPS)),) +-include $(CXX_DEPS) +endif +ifneq ($(strip $(C++_DEPS)),) +-include $(C++_DEPS) +endif +ifneq ($(strip $(ASM_UPPER_DEPS)),) +-include $(ASM_UPPER_DEPS) +endif +ifneq ($(strip $(K_DEPS)),) +-include $(K_DEPS) +endif +ifneq ($(strip $(C43_DEPS)),) +-include $(C43_DEPS) +endif +ifneq ($(strip $(INO_DEPS)),) +-include $(INO_DEPS) +endif +ifneq ($(strip $(S67_DEPS)),) +-include $(S67_DEPS) +endif +ifneq ($(strip $(SA_DEPS)),) +-include $(SA_DEPS) +endif +ifneq ($(strip $(S43_DEPS)),) +-include $(S43_DEPS) +endif +ifneq ($(strip $(OPT_DEPS)),) +-include $(OPT_DEPS) +endif +ifneq ($(strip $(PDE_DEPS)),) +-include $(PDE_DEPS) +endif +ifneq ($(strip $(S64_DEPS)),) +-include $(S64_DEPS) +endif +ifneq ($(strip $(C_UPPER_DEPS)),) +-include $(C_UPPER_DEPS) +endif +ifneq ($(strip $(C55_DEPS)),) +-include $(C55_DEPS) +endif +endif + +-include ../makefile.defs + +# Add inputs and outputs from these tool invocations to the build variables +EXE_OUTPUTS += \ +../bin/pcieboot_helloworld_evm6657l.out \ + +EXE_OUTPUTS__QUOTED += \ +"../bin/pcieboot_helloworld_evm6657l.out" \ + + +# All Target +all: ../bin/pcieboot_helloworld_evm6657l.out + +# Tool invocations +../bin/pcieboot_helloworld_evm6657l.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS) + @echo 'Building target: $@' + @echo 'Invoking: C6000 Linker' + mkdir -p ../bin + "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --define=_EVMC6657L_ --display_error_number --diag_warning=225 -z -m"../bin/pcieboot_helloworld_evm6657l.map" -i"$(CG_TOOL_ROOT)/lib" -i"$(CG_TOOL_ROOT)/include" -i"$(PDK_INSTALL_PATH)/ti/platform/evmc6657l/platform_lib/lib/debug" -i"$(PDK_INSTALL_PATH)/ti/csl/lib/c6657/c66" --reread_libs --warn_sections --xml_link_info="../bin/pcieboot_helloworld_evm6657l_linkInfo.xml" --rom_model -o "../bin/pcieboot_helloworld_evm6657l.out" $(ORDERED_OBJS) + @echo 'Finished building target: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) $(EXE_OUTPUTS__QUOTED) + -$(RM) "src/pcieboot_helloworld.pp" + -$(RM) "src/pcieboot_helloworld.obj" + -@echo 'Finished clean' + -@echo ' ' + +.PHONY: all clean dependents +.SECONDARY: + +-include ../makefile.targets + diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/objects.mk b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/objects.mk new file mode 100755 index 0000000..955a5eb --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/objects.mk @@ -0,0 +1,8 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +USER_OBJS := + +LIBS := -l"ti.platform.evm6657l.ae66" -l"libc.a" + diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/sources.mk b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/sources.mk new file mode 100755 index 0000000..4229f70 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/sources.mk @@ -0,0 +1,108 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +O_SRCS := +CPP_SRCS := +K_SRCS := +LD_SRCS := +S67_SRCS := +LDS_SRCS := +CMD_SRCS := +CXX_SRCS := +CMD_UPPER_SRCS := +C43_SRCS := +S55_SRCS := +LD_UPPER_SRCS := +C62_SRCS := +S_UPPER_SRCS := +A_SRCS := +SA_SRCS := +C55_SRCS := +LDS_UPPER_SRCS := +C_UPPER_SRCS := +INO_SRCS := +OBJ_SRCS := +S62_SRCS := +LIB_SRCS := +PDE_SRCS := +ASM_SRCS := +ASM_UPPER_SRCS := +C++_SRCS := +CLA_SRCS := +S??_SRCS := +C_SRCS := +C67_SRCS := +S_SRCS := +S43_SRCS := +OPT_SRCS := +C64_SRCS := +CC_SRCS := +C??_SRCS := +S64_SRCS := +OBJS := +S_DEPS := +S_UPPER_DEPS := +S62_DEPS := +C64_DEPS := +ASM_DEPS := +CC_DEPS := +S55_DEPS := +C67_DEPS := +CLA_DEPS := +C??_DEPS := +CPP_DEPS := +S??_DEPS := +C_DEPS := +C62_DEPS := +EXE_OUTPUTS := +CXX_DEPS := +C++_DEPS := +ASM_UPPER_DEPS := +K_DEPS := +C43_DEPS := +INO_DEPS := +S67_DEPS := +SA_DEPS := +S43_DEPS := +OPT_DEPS := +PDE_DEPS := +S64_DEPS := +C_UPPER_DEPS := +C55_DEPS := +CPP_DEPS__QUOTED := +C67_DEPS__QUOTED := +INO_DEPS__QUOTED := +C??_DEPS__QUOTED := +S_UPPER_DEPS__QUOTED := +CLA_DEPS__QUOTED := +ASM_UPPER_DEPS__QUOTED := +C62_DEPS__QUOTED := +CXX_DEPS__QUOTED := +EXE_OUTPUTS__QUOTED := +S67_DEPS__QUOTED := +C_DEPS__QUOTED := +C_UPPER_DEPS__QUOTED := +OPT_DEPS__QUOTED := +S_DEPS__QUOTED := +K_DEPS__QUOTED := +S??_DEPS__QUOTED := +C64_DEPS__QUOTED := +C++_DEPS__QUOTED := +OBJS__QUOTED := +CC_DEPS__QUOTED := +S43_DEPS__QUOTED := +S55_DEPS__QUOTED := +SA_DEPS__QUOTED := +C55_DEPS__QUOTED := +PDE_DEPS__QUOTED := +C43_DEPS__QUOTED := +S62_DEPS__QUOTED := +ASM_DEPS__QUOTED := +S64_DEPS__QUOTED := + +# Every subdirectory with source files must be described here +SUBDIRS := \ +. \ +src \ + diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.obj b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.obj new file mode 100644 index 0000000..a2dac2d Binary files /dev/null and b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.obj differ diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.pp b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.pp new file mode 100644 index 0000000..cc7da39 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/pcieboot_helloworld.pp @@ -0,0 +1,8 @@ +src/pcieboot_helloworld.obj: ../../../../../examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c +src/pcieboot_helloworld.obj: /home/ipang/tools/compiler/c6000_7.4.12/include/stdlib.h +src/pcieboot_helloworld.obj: /home/ipang/tools/compiler/c6000_7.4.12/include/linkage.h +src/pcieboot_helloworld.obj: /home/ipang/tools/compiler/c6000_7.4.12/include/stdio.h +src/pcieboot_helloworld.obj: /home/ipang/tools/compiler/c6000_7.4.12/include/stdarg.h +src/pcieboot_helloworld.obj: /home/ipang/tools/compiler/c6000_7.4.12/include/string.h +src/pcieboot_helloworld.obj: /home/ipang/ti/pdk/packages/ti/platform/platform.h +src/pcieboot_helloworld.obj: /home/ipang/tools/compiler/c6000_7.4.12/include/stdint.h diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_rules.mk b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_rules.mk new file mode 100755 index 0000000..73c52a7 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_rules.mk @@ -0,0 +1,13 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Each subdirectory must supply rules for building sources it contributes +src/pcieboot_helloworld.obj: ../../../../../examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c $(GEN_OPTS) $(GEN_HDRS) + @echo 'Building file: $<' + @echo 'Invoking: C6000 Compiler' + "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)" --define=_EVMC6657L_ --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/pcieboot_helloworld.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<" + @echo 'Finished building: $<' + @echo ' ' + + diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_vars.mk b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_vars.mk new file mode 100755 index 0000000..f4f2828 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/src/subdir_vars.mk @@ -0,0 +1,24 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Add inputs and outputs from these tool invocations to the build variables +C_SRCS += \ +../../../../../examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c + +OBJS += \ +./src/pcieboot_helloworld.obj + +C_DEPS += \ +./src/pcieboot_helloworld.pp + +C_DEPS__QUOTED += \ +"src/pcieboot_helloworld.pp" + +OBJS__QUOTED += \ +"src/pcieboot_helloworld.obj" + +C_SRCS__QUOTED += \ +"../../../../../examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c" + + diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_rules.mk b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_rules.mk new file mode 100755 index 0000000..96e2e82 --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_rules.mk @@ -0,0 +1,6 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Each subdirectory must supply rules for building sources it contributes + diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_vars.mk b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_vars.mk new file mode 100755 index 0000000..9a3e4ef --- /dev/null +++ b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6657l/build/subdir_vars.mk @@ -0,0 +1,9 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Add inputs and outputs from these tool invocations to the build variables +CMD_SRCS += \ +../pcieboot_helloworld.cmd + + -- cgit v1.2.3-54-g00ecf