diff options
| author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:08 +0000 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:31 -0600 |
| commit | 53f4cdf2ce35cbb0aaac0891e5f06e8909caecdd (patch) | |
| tree | 2d7a22adf169476666eda7d988767506f40f3d20 /recipes-bsp/pru | |
| parent | dd558151806beb2ac95356a7a8275498ccddf125 (diff) | |
| download | meta-ti-53f4cdf2ce35cbb0aaac0891e5f06e8909caecdd.tar.gz | |
classes,recipes: remove K1/2 PDK RTOS support, FWs and IPC transports
Remove deprecated support for compiling Keystone1/2 RTOS components and
Linux firmwares using PDK, CSL, etc.
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'recipes-bsp/pru')
4 files changed, 0 insertions, 278 deletions
diff --git a/recipes-bsp/pru/pru-pwm-fw_git.bb b/recipes-bsp/pru/pru-pwm-fw_git.bb deleted file mode 100644 index 14c81390..00000000 --- a/recipes-bsp/pru/pru-pwm-fw_git.bb +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | SUMMARY = "Programmable Real-time Unit PWM Firmware" | ||
| 2 | LICENSE = "BSD-3-Clause" | ||
| 3 | |||
| 4 | LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=32;md5=893d6a0cf1644338ea96642c0db97f59" | ||
| 5 | |||
| 6 | require recipes-ti/includes/ti-paths.inc | ||
| 7 | |||
| 8 | COMPATIBLE_MACHINE = "am65xx" | ||
| 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | inherit ti-pdk-fetch | ||
| 14 | |||
| 15 | TI_PDK_COMP = "ti.drv.pruss.example.apps.icssg_pwm.firmware.src" | ||
| 16 | |||
| 17 | PE = "1" | ||
| 18 | |||
| 19 | DEPENDS = "ti-cgt-pru-native pru-icss common-csl-ip-rtos" | ||
| 20 | |||
| 21 | |||
| 22 | EXTRA_OEMAKE += " \ | ||
| 23 | PRU_CGT="${TI_CGT_PRU_INSTALL_DIR}" \ | ||
| 24 | PRU_SSP="${STAGING_DIR_TARGET}/usr" \ | ||
| 25 | PDK_INSTALL_DIR="${STAGING_DATADIR}/ti/ti-pdk-tree/packages" \ | ||
| 26 | " | ||
| 27 | |||
| 28 | do_compile() { | ||
| 29 | oe_runmake | ||
| 30 | } | ||
| 31 | |||
| 32 | do_install() { | ||
| 33 | install -d ${D}/lib/firmware/ti-pruss | ||
| 34 | install -m 0644 ${S}/gen/pwm.out ${D}/lib/firmware/ti-pruss/am65x-pru0-pwm-fw.elf | ||
| 35 | } | ||
| 36 | |||
| 37 | FILES:${PN} = "/lib/firmware" | ||
| 38 | |||
| 39 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/recipes-bsp/pru/pru-swuart-fw/0001-icss_uart-add-Makefile-for-building-firmware.patch b/recipes-bsp/pru/pru-swuart-fw/0001-icss_uart-add-Makefile-for-building-firmware.patch deleted file mode 100644 index 8414d945..00000000 --- a/recipes-bsp/pru/pru-swuart-fw/0001-icss_uart-add-Makefile-for-building-firmware.patch +++ /dev/null | |||
| @@ -1,145 +0,0 @@ | |||
| 1 | From d37359e7b2bd26da4d04fc97a94967cf457558e9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Denys Dmytriyenko <denys@ti.com> | ||
| 3 | Date: Tue, 6 Aug 2019 19:50:59 -0400 | ||
| 4 | Subject: [PATCH] icss_uart: add Makefile for building firmware | ||
| 5 | |||
| 6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
| 7 | --- | ||
| 8 | firmware/icss_uart/src/Makefile | 125 ++++++++++++++++++++++++++++++++++++++++ | ||
| 9 | 1 file changed, 125 insertions(+) | ||
| 10 | create mode 100644 firmware/icss_uart/src/Makefile | ||
| 11 | |||
| 12 | diff --git a/firmware/icss_uart/src/Makefile b/firmware/icss_uart/src/Makefile | ||
| 13 | new file mode 100644 | ||
| 14 | index 0000000..4764622 | ||
| 15 | --- /dev/null | ||
| 16 | +++ b/firmware/icss_uart/src/Makefile | ||
| 17 | @@ -0,0 +1,125 @@ | ||
| 18 | +# PRU_CGT environment variable must point to the TI PRU code gen tools directory. E.g.: | ||
| 19 | +#(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.x.y | ||
| 20 | +#(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.x.y | ||
| 21 | +#(ARM Linux*) export PRU_CGT=/usr/share/ti/cgt-pru | ||
| 22 | +# | ||
| 23 | +# *ARM Linux also needs to create a symbolic link to the /usr/bin/ directory in | ||
| 24 | +# order to use the same Makefile | ||
| 25 | +#(ARM Linux) ln -s /usr/bin/ /usr/share/ti/cgt-pru/bin | ||
| 26 | + | ||
| 27 | +ifndef PRU_CGT | ||
| 28 | +define ERROR_BODY | ||
| 29 | + | ||
| 30 | +******************************************************************************* | ||
| 31 | +PRU_CGT environment variable is not set. Examples given: | ||
| 32 | +(Desktop Linux) export PRU_CGT=/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2 | ||
| 33 | +(Windows) set PRU_CGT=C:/path/to/pru/code/gen/tools/ti-cgt-pru_2.1.2 | ||
| 34 | +(ARM Linux*) export PRU_CGT=/usr/share/ti/cgt-pru | ||
| 35 | + | ||
| 36 | +*ARM Linux also needs to create a symbolic link to the /usr/bin/ directory in | ||
| 37 | +order to use the same Makefile | ||
| 38 | +(ARM Linux) ln -s /usr/bin/ /usr/share/ti/cgt-pru/bin | ||
| 39 | +******************************************************************************* | ||
| 40 | + | ||
| 41 | +endef | ||
| 42 | +$(error $(ERROR_BODY)) | ||
| 43 | +endif | ||
| 44 | + | ||
| 45 | +# PRU_SSP environment variable must point to the PRU Software Support Package. E.g.: | ||
| 46 | +#(Desktop Linux) export PRU_SSP=/path/to/pru_software_support_package | ||
| 47 | +#(Windows) set PRU_SSP=C:/path/to/pru_software_support_package | ||
| 48 | +#(ARM Linux*) export PRU_SSP=/path/to/pru_software_support_package | ||
| 49 | + | ||
| 50 | +ifndef PRU_SSP | ||
| 51 | +define ERROR_BODY | ||
| 52 | + | ||
| 53 | +******************************************************************************* | ||
| 54 | +PRU_SSP environment variable must point to the PRU Software Support Package. E.g.: | ||
| 55 | +(Desktop Linux) export PRU_SSP=/path/to/pru_software_support_package | ||
| 56 | +(Windows) set PRU_SSP=C:/path/to/pru_software_support_package | ||
| 57 | +(ARM Linux*) export PRU_SSP=/path/to/pru_software_support_package | ||
| 58 | +PRU_CGT environment variable is not set. Examples given: | ||
| 59 | +******************************************************************************* | ||
| 60 | + | ||
| 61 | +endef | ||
| 62 | +$(error $(ERROR_BODY)) | ||
| 63 | +endif | ||
| 64 | + | ||
| 65 | +MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| 66 | +CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
| 67 | +PROJ_NAME=$(CURRENT_DIR) | ||
| 68 | +LINKER_COMMAND_FILE=./AM335x_PRU.cmd | ||
| 69 | +LIBS=--library=$(PRU_SSP)/lib/rpmsg_lib.lib | ||
| 70 | +INCLUDE=--include_path=$(PRU_SSP)/include --include_path=$(PRU_SSP)/include/am335x | ||
| 71 | +STACK_SIZE=0x100 | ||
| 72 | +HEAP_SIZE=0x100 | ||
| 73 | +GEN_DIR=gen | ||
| 74 | + | ||
| 75 | +#Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
| 76 | +CFLAGS=-v3 -o2 --display_error_number --endian=little --hardware_mac=on --asm_directory=$(GEN_DIR) --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa -DICSS_REV2 | ||
| 77 | +#Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
| 78 | +LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
| 79 | + | ||
| 80 | +TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
| 81 | +MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
| 82 | +OBJECTS=$(patsubst %.asm,$(GEN_DIR)/%.object,$(wildcard *.asm)) | ||
| 83 | +OBJECTS+=$(patsubst %.c,$(GEN_DIR)/%.object,$(wildcard *.c)) | ||
| 84 | + | ||
| 85 | + | ||
| 86 | +all: printStart $(TARGET) printEnd | ||
| 87 | + | ||
| 88 | +printStart: | ||
| 89 | + @echo '' | ||
| 90 | + @echo '************************************************************' | ||
| 91 | + @echo 'Building project: $(PROJ_NAME)' | ||
| 92 | + | ||
| 93 | +printEnd: | ||
| 94 | + @echo '' | ||
| 95 | + @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
| 96 | + @echo '' | ||
| 97 | + @echo 'Finished building project: $(PROJ_NAME)' | ||
| 98 | + @echo '************************************************************' | ||
| 99 | + @echo '' | ||
| 100 | + | ||
| 101 | +# Invokes the linker (-z flag) to make the .out file | ||
| 102 | +$(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
| 103 | + @echo '' | ||
| 104 | + @echo 'Building target: $@' | ||
| 105 | + @echo 'Invoking: PRU Linker' | ||
| 106 | + $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
| 107 | + @echo 'Finished building target: $@' | ||
| 108 | + | ||
| 109 | +# Invokes the compiler on all assembly files in the directory to create the object files | ||
| 110 | +$(GEN_DIR)/%.object: %.asm | ||
| 111 | + @mkdir -p $(GEN_DIR) | ||
| 112 | + @echo '' | ||
| 113 | + @echo 'Building file: $<' | ||
| 114 | + @echo 'Invoking: PRU Compiler' | ||
| 115 | + $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
| 116 | + | ||
| 117 | +# Invokes the compiler on all c files in the directory to create the object files | ||
| 118 | +$(GEN_DIR)/%.object: %.c | ||
| 119 | + @mkdir -p $(GEN_DIR) | ||
| 120 | + @echo '' | ||
| 121 | + @echo 'Building file: $<' | ||
| 122 | + @echo 'Invoking: PRU Compiler' | ||
| 123 | + $(PRU_CGT)/bin/clpru -k --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
| 124 | + | ||
| 125 | +.PHONY: all clean | ||
| 126 | + | ||
| 127 | +# Remove the $(GEN_DIR) directory | ||
| 128 | +clean: | ||
| 129 | + @echo '' | ||
| 130 | + @echo '************************************************************' | ||
| 131 | + @echo 'Cleaning project: $(PROJ_NAME)' | ||
| 132 | + @echo '' | ||
| 133 | + @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
| 134 | + @rm -rf $(GEN_DIR) | ||
| 135 | + @echo '' | ||
| 136 | + @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
| 137 | + @echo '************************************************************' | ||
| 138 | + @echo '' | ||
| 139 | + | ||
| 140 | +# Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
| 141 | +-include $(OBJECTS:%.object=%.pp) | ||
| 142 | + | ||
| 143 | -- | ||
| 144 | 2.7.4 | ||
| 145 | |||
diff --git a/recipes-bsp/pru/pru-swuart-fw/0001-icss_uart-remove-dependency-on-PDK-CSL.patch b/recipes-bsp/pru/pru-swuart-fw/0001-icss_uart-remove-dependency-on-PDK-CSL.patch deleted file mode 100644 index b565ba0e..00000000 --- a/recipes-bsp/pru/pru-swuart-fw/0001-icss_uart-remove-dependency-on-PDK-CSL.patch +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | From 1b853cfd6194d3855310f47d43cb8c9f498b6182 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bin Liu <b-liu@ti.com> | ||
| 3 | Date: Wed, 27 Feb 2019 14:38:43 -0600 | ||
| 4 | Subject: [PATCH] icss_uart: remove dependency on PDK/CSL | ||
| 5 | |||
| 6 | Signed-off-by: Bin Liu <b-liu@ti.com> | ||
| 7 | --- | ||
| 8 | firmware/icss_uart/src/icss_ctrl_regs.h | 32 ++++---------------------------- | ||
| 9 | 1 file changed, 4 insertions(+), 28 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/firmware/icss_uart/src/icss_ctrl_regs.h b/firmware/icss_uart/src/icss_ctrl_regs.h | ||
| 12 | index ce640f5..99ec90d 100644 | ||
| 13 | --- a/firmware/icss_uart/src/icss_ctrl_regs.h | ||
| 14 | +++ b/firmware/icss_uart/src/icss_ctrl_regs.h | ||
| 15 | @@ -39,32 +39,8 @@ | ||
| 16 | .if !$isdefed("__icss_ctrl_regs_h") | ||
| 17 | __icss_ctrl_regs_h .set 1 | ||
| 18 | |||
| 19 | - .cdecls C,NOLIST | ||
| 20 | -%{ | ||
| 21 | -#include "cslr_icss.h" | ||
| 22 | -%} | ||
| 23 | - | ||
| 24 | - .if $defined("ICSS_REV1") | ||
| 25 | -ICSS_PRU_CTRL_CONTROL .set (CSL_ICSSM_PRU_CTRL_CONTROL) | ||
| 26 | -ICSS_PRU_CTRL_STATUS .set (CSL_ICSSM_PRU_CTRL_STATUS) | ||
| 27 | -ICSS_PRU_CTRL_WAKEUP_EN .set (CSL_ICSSM_PRU_CTRL_WAKEUP_EN) | ||
| 28 | -ICSS_PRU_CTRL_CYCLE .set (CSL_ICSSM_PRU_CTRL_CYCLE) | ||
| 29 | -ICSS_PRU_CTRL_STALL .set (CSL_ICSSM_PRU_CTRL_STALL) | ||
| 30 | -ICSS_PRU_CTRL_CTBIR0 .set (CSL_ICSSM_PRU_CTRL_CTBIR0) | ||
| 31 | -ICSS_PRU_CTRL_CTBIR1 .set (CSL_ICSSM_PRU_CTRL_CTBIR1) | ||
| 32 | -ICSS_PRU_CTRL_CTPPR0 .set (CSL_ICSSM_PRU_CTRL_CTPPR0) | ||
| 33 | -ICSS_PRU_CTRL_CTPPR1 .set (CSL_ICSSM_PRU_CTRL_CTPPR1) | ||
| 34 | - .endif ;ICSS_REV1 | ||
| 35 | - | ||
| 36 | - .if $defined("ICSS_REV2") | ||
| 37 | -ICSS_PRU_CTRL_CONTROL .set (CSL_ICSSPRUCTRL_CONTROL) | ||
| 38 | -ICSS_PRU_CTRL_STATUS .set (CSL_ICSSPRUCTRL_STATUS) | ||
| 39 | -ICSS_PRU_CTRL_WAKEUP_EN .set (CSL_ICSSPRUCTRL_WAKEUP_EN) | ||
| 40 | -ICSS_PRU_CTRL_CYCLE .set (CSL_ICSSPRUCTRL_CYCLE) | ||
| 41 | -ICSS_PRU_CTRL_STALL .set (CSL_ICSSPRUCTRL_STALL) | ||
| 42 | -ICSS_PRU_CTRL_CTBIR0 .set (CSL_ICSSPRUCTRL_CTBIR0) | ||
| 43 | -ICSS_PRU_CTRL_CTBIR1 .set (CSL_ICSSPRUCTRL_CTBIR1) | ||
| 44 | -ICSS_PRU_CTRL_CTPPR0 .set (CSL_ICSSPRUCTRL_CTPPR0) | ||
| 45 | -ICSS_PRU_CTRL_CTPPR1 .set (CSL_ICSSPRUCTRL_CTPPR1) | ||
| 46 | - .endif ;ICSS_REV2 | ||
| 47 | +ICSS_PRU_CTRL_CONTROL .set (0x0U) | ||
| 48 | +ICSS_PRU_CTRL_STATUS .set (0x4U) | ||
| 49 | +ICSS_PRU_CTRL_WAKEUP_EN .set (0x8U) | ||
| 50 | +ICSS_PRU_CTRL_CYCLE .set (0xcU) | ||
| 51 | .endif | ||
| 52 | -- | ||
| 53 | 2.7.4 | ||
| 54 | |||
diff --git a/recipes-bsp/pru/pru-swuart-fw_git.bb b/recipes-bsp/pru/pru-swuart-fw_git.bb deleted file mode 100644 index f0d9e80d..00000000 --- a/recipes-bsp/pru/pru-swuart-fw_git.bb +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | SUMMARY = "Programmable Real-time Unit Software UART Firmware" | ||
| 2 | LICENSE = "BSD-3-Clause" | ||
| 3 | |||
| 4 | LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=1;endline=31;md5=94b6a199da1caf777f6756cb70aca4a7" | ||
| 5 | |||
| 6 | require recipes-ti/includes/ti-paths.inc | ||
| 7 | |||
| 8 | COMPATIBLE_MACHINE = "ti33x" | ||
| 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 10 | |||
| 11 | |||
| 12 | inherit ti-pdk-fetch | ||
| 13 | |||
| 14 | TI_PDK_COMP = "ti.drv.uart" | ||
| 15 | |||
| 16 | PE = "1" | ||
| 17 | |||
| 18 | SRC_URI:append = " \ | ||
| 19 | file://0001-icss_uart-add-Makefile-for-building-firmware.patch \ | ||
| 20 | file://0001-icss_uart-remove-dependency-on-PDK-CSL.patch \ | ||
| 21 | " | ||
| 22 | |||
| 23 | DEPENDS = "ti-cgt-pru-native pru-icss" | ||
| 24 | |||
| 25 | |||
| 26 | export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}" | ||
| 27 | export PRU_SSP = "${STAGING_DIR_TARGET}/usr" | ||
| 28 | |||
| 29 | do_compile() { | ||
| 30 | oe_runmake -C firmware/icss_uart/src | ||
| 31 | } | ||
| 32 | |||
| 33 | do_install() { | ||
| 34 | install -d ${D}/lib/firmware/ti-pruss | ||
| 35 | install -m 0644 ${S}/firmware/icss_uart/src/gen/src.out ${D}/lib/firmware/ti-pruss/pru_swuart-fw.elf | ||
| 36 | } | ||
| 37 | |||
| 38 | FILES:${PN} = "/lib/firmware" | ||
| 39 | |||
| 40 | INSANE_SKIP:${PN} = "arch" | ||
