From fb89d7f3a66f89cb144eaba91eac7ceaea6ab770 Mon Sep 17 00:00:00 2001 From: Manoj Koppolu Date: Fri, 22 Dec 2023 11:46:27 +0530 Subject: [PATCH] am243x/am64x: pru_io: remove redundant code in makefile_pru - resolve reviewer comments Fixes: PINDSW-7115 Signed-off-by: Manoj Koppolu --- .project/templates/makefile_pru.xdt | 53 ++++++------------- .../icssg0-pru0_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-rtupru0_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-txpru0_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru0_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-rtupru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-txpru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-rtupru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-txpru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-rtupru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-txpru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- .../icssg0-pru1_fw/ti-pru-cgt/makefile | 49 ++++++----------- 38 files changed, 571 insertions(+), 1295 deletions(-) diff --git a/.project/templates/makefile_pru.xdt b/.project/templates/makefile_pru.xdt index df6e3ad..6514b19 100644 --- a/.project/templates/makefile_pru.xdt +++ b/.project/templates/makefile_pru.xdt @@ -4,19 +4,13 @@ ################################################################################ # Automatically-generated file. Do not edit! ################################################################################ +# Required input arguments : +# CCS_PROJECT_DEBUG=${CWD} Use this input argument to include files from external paths -SHELL = cmd.exe export `args.sdkPath`?=$(abspath `args.relPath`) -CCS_PATH?=$(CCS_INSTALL_DIR)/ccs_base/pru/include -CG_TOOL_ROOT := C:/ti/ti-cgt-pru_2.3.3 +include $(`args.sdkPath`)/imports.mak SYSCFG_DIR := $(CCS_PROJECT_DEBUG)/syscfg - -GEN_OPTS__FLAG := -GEN_CMDS__FLAG := - -% // review these include files --include ../makefile.init - +CG_TOOL_ROOT := $(CGT_TI_PRU_PATH) RM := DEL /F RMDIR := RMDIR /S/Q @@ -68,7 +62,6 @@ vpath %.cmd $(FILES_PATH) % } % } % let cmdSubStr = commandString; -% commandString += `--include_path="$(CCS_PATH)" `; % if ("postBuildSteps" in obj || obj["defaultPruPostBuildSteps"]) { % commandString += `--include_path="$(SYSCFG_DIR)" `; % } @@ -80,16 +73,6 @@ vpath %.cmd $(FILES_PATH) % } % } % } -# Each subdirectory must supply rules for building sources it contributes -$(OBJDIR)/$(OBJS): $(ASM_SRCS) - @echo 'Building file: "$<"' - @echo 'Invoking: PRU Compiler' - "$(CG_TOOL_ROOT)/bin/clpru" `commandString` --define=_DEBUG_=1 -g --diag_warning=225 --diag_wrap=off --display_error_number --endian=little --preproc_with_compile --preproc_dependency="$(basename $(