diff options
author | Nick Saulnier <nsaulnier@ti.com> | 2018-08-14 21:50:21 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-08-17 01:04:12 +0000 |
commit | b723a7ac86970f7196e8f96186ae63ee4b525c48 (patch) | |
tree | 1035750d80a473078240db3ca196876dd793bd80 | |
parent | 3480ede2da6db0d8cac109b5fdbe43456d30041b (diff) | |
download | meta-ti-b723a7ac86970f7196e8f96186ae63ee4b525c48.tar.gz |
pru-icss_git.bb: Add am65x PRU_Halt
Updated SRCREV to point to an updated version of the PRU Software Support
Package which includes PRU_Halt and RTU_Halt examples for am65x. PV will
get updated in the next patch.
Added PRU_Halt and RTU_Halt to do_install_append_am65xx-evm(). Decided to leave
the installation of PRU_Halt examples in each processor's do_install_append
function for now since PRU_Halt and RTU_Halt for am65x have different output
file names than the previous ICSS processors. Those different output names can
be seen in the lines ALTERNATIVE_TARGET_pru-icss-halt[am65x....].
The previous commit made several changes to account for the fact that am65x Halt
examples had not yet been added to the PRU Software Support Package. Those
changes were removed in this commit.
Signed-off-by: Nick Saulnier <nsaulnier@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r-- | recipes-bsp/pru/pru-icss_git.bb | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/recipes-bsp/pru/pru-icss_git.bb b/recipes-bsp/pru/pru-icss_git.bb index 3c871b70..e150076e 100644 --- a/recipes-bsp/pru/pru-icss_git.bb +++ b/recipes-bsp/pru/pru-icss_git.bb | |||
@@ -8,10 +8,10 @@ inherit update-alternatives | |||
8 | 8 | ||
9 | BRANCH = "master" | 9 | BRANCH = "master" |
10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" | 10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" |
11 | SRCREV = "81b568741b8b98e6f590271a9aea5956d2b2d9ce" | 11 | SRCREV = "1d9249c012005a669a6ffb2f76255d72ed5c0e4c" |
12 | 12 | ||
13 | PV = "5.2.1" | 13 | PV = "5.2.1" |
14 | PR = "r1" | 14 | PR = "r2" |
15 | 15 | ||
16 | require recipes-ti/includes/ti-paths.inc | 16 | require recipes-ti/includes/ti-paths.inc |
17 | 17 | ||
@@ -103,6 +103,13 @@ do_install_append_k2g() { | |||
103 | } | 103 | } |
104 | 104 | ||
105 | do_install_append_am65xx-evm() { | 105 | do_install_append_am65xx-evm() { |
106 | for i in 0 1 | ||
107 | do | ||
108 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
109 | ${D}/lib/firmware/pru | ||
110 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
111 | ${D}/lib/firmware/pru | ||
112 | done | ||
106 | for i in 0 1 2 | 113 | for i in 0 1 2 |
107 | do | 114 | do |
108 | for j in 0 1 | 115 | for j in 0 1 |
@@ -116,7 +123,7 @@ do_install_append_am65xx-evm() { | |||
116 | done | 123 | done |
117 | } | 124 | } |
118 | 125 | ||
119 | FILES_${PN}-halt = "/lib/firmware/pru/PRU_Halt.out" | 126 | FILES_${PN}-halt = "/lib/firmware/pru/PRU_Halt* /lib/firmware/pru/RTU_Halt*" |
120 | FILES_${PN}-rpmsg-echo = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt* /lib/firmware/pru/RTU_RPMsg_Echo_Interrupt*" | 127 | FILES_${PN}-rpmsg-echo = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt* /lib/firmware/pru/RTU_RPMsg_Echo_Interrupt*" |
121 | 128 | ||
122 | # Set up names for the firmwares | 129 | # Set up names for the firmwares |
@@ -161,9 +168,6 @@ ALTERNATIVE_LINK_NAME[am65x-rtu2_1-fw] = "/lib/firmware/am65x-rtu2_1-fw" | |||
161 | # Create the pru-icss-halt firmware alternatives | 168 | # Create the pru-icss-halt firmware alternatives |
162 | ALTERNATIVE_pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" | 169 | ALTERNATIVE_pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" |
163 | 170 | ||
164 | # am65xx doesn't have halt FW for now | ||
165 | ALTERNATIVE_pru-icss-halt_am65xx-evm = "" | ||
166 | |||
167 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "/lib/firmware/pru/PRU_Halt.out" | 171 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "/lib/firmware/pru/PRU_Halt.out" |
168 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "/lib/firmware/pru/PRU_Halt.out" | 172 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "/lib/firmware/pru/PRU_Halt.out" |
169 | 173 | ||
@@ -182,6 +186,19 @@ ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru0_1-fw] = "/lib/firmware/pru/PRU_Halt.ou | |||
182 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_0-fw] = "/lib/firmware/pru/PRU_Halt.out" | 186 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_0-fw] = "/lib/firmware/pru/PRU_Halt.out" |
183 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt.out" | 187 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt.out" |
184 | 188 | ||
189 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "/lib/firmware/pru/PRU_Halt_0.out" | ||
190 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "/lib/firmware/pru/PRU_Halt_1.out" | ||
191 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "/lib/firmware/pru/PRU_Halt_0.out" | ||
192 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt_1.out" | ||
193 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_0-fw] = "/lib/firmware/pru/PRU_Halt_0.out" | ||
194 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_1-fw] = "/lib/firmware/pru/PRU_Halt_1.out" | ||
195 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_0-fw] = "/lib/firmware/pru/RTU_Halt_0.out" | ||
196 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_1-fw] = "/lib/firmware/pru/RTU_Halt_1.out" | ||
197 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_0-fw] = "/lib/firmware/pru/RTU_Halt_0.out" | ||
198 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_1-fw] = "/lib/firmware/pru/RTU_Halt_1.out" | ||
199 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_0-fw] = "/lib/firmware/pru/RTU_Halt_0.out" | ||
200 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_1-fw] = "/lib/firmware/pru/RTU_Halt_1.out" | ||
201 | |||
185 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" | 202 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" |
186 | 203 | ||
187 | # Create the pru-icss-rpmsg-echo firmware alternatives | 204 | # Create the pru-icss-rpmsg-echo firmware alternatives |
@@ -220,9 +237,6 @@ ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_1-fw] = "/lib/firmware/pru/RTU | |||
220 | 237 | ||
221 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" | 238 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" |
222 | 239 | ||
223 | # am65xx doesn't have halt FW for now | ||
224 | ALLOW_EMPTY_${PN}-halt = "1" | ||
225 | |||
226 | ALLOW_EMPTY_${PN} = "1" | 240 | ALLOW_EMPTY_${PN} = "1" |
227 | 241 | ||
228 | # This installs PRU firmware, so skip "arch" QA check | 242 | # This installs PRU firmware, so skip "arch" QA check |