diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2022-03-04 16:30:06 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-03-08 07:27:00 -0800 |
commit | c0f9be6db8689ef10fd363be0c29bfeb674e8588 (patch) | |
tree | 991fe0734d6944c31787e84ef78d161bb9e64316 /meta-xilinx-standalone-experimental/recipes-core | |
parent | 1527b4c74ef8b070024c8bdbe240037d92bac482 (diff) | |
download | meta-xilinx-c0f9be6db8689ef10fd363be0c29bfeb674e8588.tar.gz |
meta-xilinx-standalone-experimental: Change from lopper.py to lopper
Upgrade of lopper changed the executable name to lopper. Switch all of
the users.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
(cherry picked from commit 5d28e5640859bc6f275b804e1344c6dd17e5a492)
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-core')
-rwxr-xr-x | meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh b/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh index a8da5b4a..d0b719cb 100755 --- a/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh +++ b/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh | |||
@@ -107,21 +107,21 @@ cortex_a53_linux() { | |||
107 | if [ "${overlay_dtb}" = "true" ]; then | 107 | if [ "${overlay_dtb}" = "true" ]; then |
108 | if [ "${external_fpga}" = "true" ]; then | 108 | if [ "${external_fpga}" = "true" ]; then |
109 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" -- xlnx_overlay_dt ${machine} full \ | 109 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" -- xlnx_overlay_dt ${machine} full \ |
110 | || error "lopper.py failed" | 110 | || error "lopper failed" |
111 | else | 111 | else |
112 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} "${system_dtb}" -- xlnx_overlay_dt ${machine} partial \ | 112 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} "${system_dtb}" -- xlnx_overlay_dt ${machine} partial \ |
113 | || error "lopper.py failed" | 113 | || error "lopper failed" |
114 | fi | 114 | fi |
115 | dtc -q -O dtb -o pl.dtbo -b 0 -@ pl.dtsi || error "dtc failed" | 115 | dtc -q -O dtb -o pl.dtbo -b 0 -@ pl.dtsi || error "dtc failed" |
116 | elif [ -n "${domain_file}" ]; then | 116 | elif [ -n "${domain_file}" ]; then |
117 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 117 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
118 | -i "${domain_file}" -i "${lops_dir}/lop-a53-imux.dts" \ | 118 | -i "${domain_file}" -i "${lops_dir}/lop-a53-imux.dts" \ |
119 | -i "${lops_dir}/lop-domain-linux-a53.dts" "${system_dtb}" "${dtb_file}" \ | 119 | -i "${lops_dir}/lop-domain-linux-a53.dts" "${system_dtb}" "${dtb_file}" \ |
120 | || error "lopper.py failed" | 120 | || error "lopper failed" |
121 | else | 121 | else |
122 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a53-imux.dts" \ | 122 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a53-imux.dts" \ |
123 | -i "${lops_dir}/lop-domain-linux-a53.dts" "${system_dtb}" "${dtb_file}" \ | 123 | -i "${lops_dir}/lop-domain-linux-a53.dts" "${system_dtb}" "${dtb_file}" \ |
124 | || error "lopper.py failed" | 124 | || error "lopper failed" |
125 | fi | 125 | fi |
126 | rm -f pl.dtsi lop-a53-imux.dts.dtb lop-domain-linux-a53.dts.dtb | 126 | rm -f pl.dtsi lop-a53-imux.dts.dtb lop-domain-linux-a53.dts.dtb |
127 | ) | 127 | ) |
@@ -174,10 +174,10 @@ cortex_a53_baremetal() { | |||
174 | if [ -n "${domain_file}" ]; then | 174 | if [ -n "${domain_file}" ]; then |
175 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 175 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
176 | -i "${domain_file}" -i "${lops_dir}/lop-a53-imux.dts" "${system_dtb}" "${dtb_file}" \ | 176 | -i "${domain_file}" -i "${lops_dir}/lop-a53-imux.dts" "${system_dtb}" "${dtb_file}" \ |
177 | || error "lopper.py failed" | 177 | || error "lopper failed" |
178 | else | 178 | else |
179 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a53-imux.dts" \ | 179 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a53-imux.dts" \ |
180 | "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 180 | "${system_dtb}" "${dtb_file}" || error "lopper failed" |
181 | fi | 181 | fi |
182 | rm -f lop-a53-imux.dts.dtb | 182 | rm -f lop-a53-imux.dts.dtb |
183 | ) | 183 | ) |
@@ -186,10 +186,10 @@ cortex_a53_baremetal() { | |||
186 | if [ -n "${domain_file}" ]; then | 186 | if [ -n "${domain_file}" ]; then |
187 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 187 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
188 | -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" \ | 188 | -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" \ |
189 | || error "lopper.py failed" | 189 | || error "lopper failed" |
190 | else | 190 | else |
191 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" \ | 191 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" \ |
192 | || error "lopper.py failed" | 192 | || error "lopper failed" |
193 | fi | 193 | fi |
194 | 194 | ||
195 | mv libxil.conf "${libxil}" | 195 | mv libxil.conf "${libxil}" |
@@ -227,10 +227,10 @@ cortex_a53_freertos() { | |||
227 | if [ -n "${domain_file}" ]; then | 227 | if [ -n "${domain_file}" ]; then |
228 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 228 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
229 | -i "${domain_file}" -i "${lops_dir}/lop-a53-imux.dts" "${system_dtb}" "${dtb_file}" \ | 229 | -i "${domain_file}" -i "${lops_dir}/lop-a53-imux.dts" "${system_dtb}" "${dtb_file}" \ |
230 | || error "lopper.py failed" | 230 | || error "lopper failed" |
231 | else | 231 | else |
232 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a53-imux.dts" \ | 232 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a53-imux.dts" \ |
233 | "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 233 | "${system_dtb}" "${dtb_file}" || error "lopper failed" |
234 | fi | 234 | fi |
235 | rm -f lop-a53-imux.dts.dtb | 235 | rm -f lop-a53-imux.dts.dtb |
236 | ) | 236 | ) |
@@ -238,10 +238,10 @@ cortex_a53_freertos() { | |||
238 | # Build baremetal multiconfig | 238 | # Build baremetal multiconfig |
239 | if [ -n "${domain_file}" ]; then | 239 | if [ -n "${domain_file}" ]; then |
240 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 240 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
241 | -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" || error "lopper.py failed" | 241 | -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" || error "lopper failed" |
242 | else | 242 | else |
243 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" \ | 243 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa53-${machine} "${embeddedsw}" \ |
244 | || error "lopper.py failed" | 244 | || error "lopper failed" |
245 | fi | 245 | fi |
246 | 246 | ||
247 | mv libxil.conf "${libxil}" | 247 | mv libxil.conf "${libxil}" |
@@ -282,21 +282,21 @@ cortex_a72_linux() { | |||
282 | # a flag "external_fpga" which says apply overlay without loading the bit file. | 282 | # a flag "external_fpga" which says apply overlay without loading the bit file. |
283 | if [ "${external_fpga}" = "true" ]; then | 283 | if [ "${external_fpga}" = "true" ]; then |
284 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" -- xlnx_overlay_dt \ | 284 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" -- xlnx_overlay_dt \ |
285 | ${machine} full external_fpga || error "lopper.py failed" | 285 | ${machine} full external_fpga || error "lopper failed" |
286 | else | 286 | else |
287 | # If there is no external_fpga flag, then the default is full | 287 | # If there is no external_fpga flag, then the default is full |
288 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} "${system_dtb}" -- xlnx_overlay_dt \ | 288 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} "${system_dtb}" -- xlnx_overlay_dt \ |
289 | ${machine} full || error "lopper.py failed" | 289 | ${machine} full || error "lopper failed" |
290 | fi | 290 | fi |
291 | dtc -q -O dtb -o pl.dtbo -b 0 -@ pl.dtsi || error "dtc failed" | 291 | dtc -q -O dtb -o pl.dtbo -b 0 -@ pl.dtsi || error "dtc failed" |
292 | elif [ -n "${domain_file}" ]; then | 292 | elif [ -n "${domain_file}" ]; then |
293 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 293 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
294 | -i "${domain_file}" -i "${lops_dir}/lop-a72-imux.dts" \ | 294 | -i "${domain_file}" -i "${lops_dir}/lop-a72-imux.dts" \ |
295 | -i "${lops_dir}/lop-domain-a72.dts" "${system_dtb}" "${dtb_file}" \ | 295 | -i "${lops_dir}/lop-domain-a72.dts" "${system_dtb}" "${dtb_file}" \ |
296 | || error "lopper.py failed" | 296 | || error "lopper failed" |
297 | else | 297 | else |
298 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a72-imux.dts" \ | 298 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a72-imux.dts" \ |
299 | -i "${lops_dir}/lop-domain-a72.dts" "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 299 | -i "${lops_dir}/lop-domain-a72.dts" "${system_dtb}" "${dtb_file}" || error "lopper failed" |
300 | fi | 300 | fi |
301 | rm -f pl.dtsi lop-a72-imux.dts.dtb lop-domain-a72.dts.dtb | 301 | rm -f pl.dtsi lop-a72-imux.dts.dtb lop-domain-a72.dts.dtb |
302 | ) | 302 | ) |
@@ -335,10 +335,10 @@ cortex_a72_baremetal() { | |||
335 | if [ -n "${domain_file}" ]; then | 335 | if [ -n "${domain_file}" ]; then |
336 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 336 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
337 | -i "${domain_file}" -i "${lops_dir}/lop-a72-imux.dts" "${system_dtb}" "${dtb_file}" \ | 337 | -i "${domain_file}" -i "${lops_dir}/lop-a72-imux.dts" "${system_dtb}" "${dtb_file}" \ |
338 | || error "lopper.py failed" | 338 | || error "lopper failed" |
339 | else | 339 | else |
340 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a72-imux.dts" \ | 340 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a72-imux.dts" \ |
341 | "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 341 | "${system_dtb}" "${dtb_file}" || error "lopper failed" |
342 | fi | 342 | fi |
343 | rm -f lop-a72-imux.dts.dtb | 343 | rm -f lop-a72-imux.dts.dtb |
344 | ) | 344 | ) |
@@ -346,10 +346,10 @@ cortex_a72_baremetal() { | |||
346 | # Build baremetal multiconfig | 346 | # Build baremetal multiconfig |
347 | if [ -n "${domain_file}" ]; then | 347 | if [ -n "${domain_file}" ]; then |
348 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 348 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
349 | -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" || error "lopper.py failed" | 349 | -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" || error "lopper failed" |
350 | else | 350 | else |
351 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" \ | 351 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" \ |
352 | || error "lopper.py failed" | 352 | || error "lopper failed" |
353 | fi | 353 | fi |
354 | 354 | ||
355 | mv libxil.conf "${libxil}" | 355 | mv libxil.conf "${libxil}" |
@@ -385,12 +385,12 @@ cortex_a72_freertos() { | |||
385 | ( | 385 | ( |
386 | cd dtb || error "Unable to cd to dtb dir" | 386 | cd dtb || error "Unable to cd to dtb dir" |
387 | if [ -n "${domain_file}" ]; then | 387 | if [ -n "${domain_file}" ]; then |
388 | LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f --permissive --enhanced -x '*.yaml' \ | 388 | LOPPER_DTC_FLAGS="-b 0 -@" lopper -f --permissive --enhanced -x '*.yaml' \ |
389 | -i "${domain_file}" -i "${lops_dir}/lop-a72-imux.dts" "${system_dtb}" "${dtb_file}" \ | 389 | -i "${domain_file}" -i "${lops_dir}/lop-a72-imux.dts" "${system_dtb}" "${dtb_file}" \ |
390 | || error "lopper.py failed" | 390 | || error "lopper failed" |
391 | else | 391 | else |
392 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a72-imux.dts" \ | 392 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-a72-imux.dts" \ |
393 | "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 393 | "${system_dtb}" "${dtb_file}" || error "lopper failed" |
394 | fi | 394 | fi |
395 | rm -f lop-a72-imux.dts.dtb | 395 | rm -f lop-a72-imux.dts.dtb |
396 | ) | 396 | ) |
@@ -398,10 +398,10 @@ cortex_a72_freertos() { | |||
398 | # Build baremetal multiconfig | 398 | # Build baremetal multiconfig |
399 | if [ -n "${domain_file}" ]; then | 399 | if [ -n "${domain_file}" ]; then |
400 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 400 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
401 | -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" || error "lopper.py failed" | 401 | -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" || error "lopper failed" |
402 | else | 402 | else |
403 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" \ | 403 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexa72-${machine} "${embeddedsw}" \ |
404 | || error "lopper.py failed" | 404 | || error "lopper failed" |
405 | fi | 405 | fi |
406 | 406 | ||
407 | mv libxil.conf "${libxil}" | 407 | mv libxil.conf "${libxil}" |
@@ -454,10 +454,10 @@ cortex_r5_baremetal() { | |||
454 | if [ -n "$domain_file" ]; then | 454 | if [ -n "$domain_file" ]; then |
455 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 455 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
456 | -i "${domain_file}" -i "${lops_dir}/lop-r5-imux.dts" "${system_dtb}" "${dtb_file}" \ | 456 | -i "${domain_file}" -i "${lops_dir}/lop-r5-imux.dts" "${system_dtb}" "${dtb_file}" \ |
457 | || error "lopper.py failed" | 457 | || error "lopper failed" |
458 | else | 458 | else |
459 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-r5-imux.dts" \ | 459 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-r5-imux.dts" \ |
460 | "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 460 | "${system_dtb}" "${dtb_file}" || error "lopper failed" |
461 | fi | 461 | fi |
462 | rm -f lop-r5-imux.dts.dtb | 462 | rm -f lop-r5-imux.dts.dtb |
463 | ) | 463 | ) |
@@ -465,10 +465,10 @@ cortex_r5_baremetal() { | |||
465 | # Build baremetal multiconfig | 465 | # Build baremetal multiconfig |
466 | if [ -n "${domain_file}" ]; then | 466 | if [ -n "${domain_file}" ]; then |
467 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 467 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
468 | -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" || error "lopper.py failed" | 468 | -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" || error "lopper failed" |
469 | else | 469 | else |
470 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" \ | 470 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" \ |
471 | || error "lopper.py failed" | 471 | || error "lopper failed" |
472 | fi | 472 | fi |
473 | 473 | ||
474 | mv libxil.conf "${libxil}" | 474 | mv libxil.conf "${libxil}" |
@@ -506,10 +506,10 @@ cortex_r5_freertos() { | |||
506 | if [ -n "$domain_file" ]; then | 506 | if [ -n "$domain_file" ]; then |
507 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ | 507 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --permissive --enhanced -x '*.yaml' \ |
508 | -i "${domain_file}" -i "${lops_dir}/lop-r5-imux.dts" "${system_dtb}" "${dtb_file}" \ | 508 | -i "${domain_file}" -i "${lops_dir}/lop-r5-imux.dts" "${system_dtb}" "${dtb_file}" \ |
509 | || error "lopper.py failed" | 509 | || error "lopper failed" |
510 | else | 510 | else |
511 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-r5-imux.dts" \ | 511 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f --enhanced -i "${lops_dir}/lop-r5-imux.dts" \ |
512 | "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 512 | "${system_dtb}" "${dtb_file}" || error "lopper failed" |
513 | fi | 513 | fi |
514 | rm -f lop-r5-imux.dts.dtb | 514 | rm -f lop-r5-imux.dts.dtb |
515 | ) | 515 | ) |
@@ -517,10 +517,10 @@ cortex_r5_freertos() { | |||
517 | # Build baremetal multiconfig | 517 | # Build baremetal multiconfig |
518 | if [ -n "${domain_file}" ]; then | 518 | if [ -n "${domain_file}" ]; then |
519 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 519 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
520 | -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" || error "lopper.py failed" | 520 | -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" || error "lopper failed" |
521 | else | 521 | else |
522 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" \ | 522 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx cortexr5-${machine} "${embeddedsw}" \ |
523 | || error "lopper.py failed" | 523 | || error "lopper failed" |
524 | fi | 524 | fi |
525 | 525 | ||
526 | mv libxil.conf "${libxil}" | 526 | mv libxil.conf "${libxil}" |
@@ -550,7 +550,7 @@ process_microblaze() { | |||
550 | ( | 550 | ( |
551 | cd dtb || error "Unable to cd to dtb dir" | 551 | cd dtb || error "Unable to cd to dtb dir" |
552 | ${lopper} -f --enhanced -i "${lops_dir}/lop-microblaze-yocto.dts" "${system_dtb}" \ | 552 | ${lopper} -f --enhanced -i "${lops_dir}/lop-microblaze-yocto.dts" "${system_dtb}" \ |
553 | || error "lopper.py failed" | 553 | || error "lopper failed" |
554 | rm -f lop-microblaze-yocto.dts.dtb | 554 | rm -f lop-microblaze-yocto.dts.dtb |
555 | ) >microblaze.conf | 555 | ) >microblaze.conf |
556 | 556 | ||
@@ -575,16 +575,16 @@ pmu-microblaze() { | |||
575 | # Build device tree | 575 | # Build device tree |
576 | ( | 576 | ( |
577 | cd dtb || error "Unable to cd to dtb dir" | 577 | cd dtb || error "Unable to cd to dtb dir" |
578 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 578 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" "${dtb_file}" || error "lopper failed" |
579 | ) | 579 | ) |
580 | 580 | ||
581 | # Build baremetal multiconfig | 581 | # Build baremetal multiconfig |
582 | if [ -n "${domain_file}" ]; then | 582 | if [ -n "${domain_file}" ]; then |
583 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 583 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
584 | -- baremetaldrvlist_xlnx microblaze-pmu "${embeddedsw}" || error "lopper.py failed" | 584 | -- baremetaldrvlist_xlnx microblaze-pmu "${embeddedsw}" || error "lopper failed" |
585 | else | 585 | else |
586 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx microblaze-pmu "${embeddedsw}" \ | 586 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx microblaze-pmu "${embeddedsw}" \ |
587 | || error "lopper.py failed" | 587 | || error "lopper failed" |
588 | fi | 588 | fi |
589 | 589 | ||
590 | mv libxil.conf "${libxil}" | 590 | mv libxil.conf "${libxil}" |
@@ -627,16 +627,16 @@ pmc-microblaze() { | |||
627 | # Build device tree | 627 | # Build device tree |
628 | ( | 628 | ( |
629 | cd dtb || error "Unable to cd to dtb dir" | 629 | cd dtb || error "Unable to cd to dtb dir" |
630 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 630 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" "${dtb_file}" || error "lopper failed" |
631 | ) | 631 | ) |
632 | 632 | ||
633 | # Build baremetal multiconfig | 633 | # Build baremetal multiconfig |
634 | if [ -n "${domain_file}" ]; then | 634 | if [ -n "${domain_file}" ]; then |
635 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 635 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
636 | -- baremetaldrvlist_xlnx microblaze-plm "${embeddedsw}" || error "lopper.py failed" | 636 | -- baremetaldrvlist_xlnx microblaze-plm "${embeddedsw}" || error "lopper failed" |
637 | else | 637 | else |
638 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx microblaze-plm "${embeddedsw}" \ | 638 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx microblaze-plm "${embeddedsw}" \ |
639 | || error "lopper.py failed" | 639 | || error "lopper failed" |
640 | fi | 640 | fi |
641 | 641 | ||
642 | mv libxil.conf "${libxil}" | 642 | mv libxil.conf "${libxil}" |
@@ -679,16 +679,16 @@ psm-microblaze() { | |||
679 | # Build device tree | 679 | # Build device tree |
680 | ( | 680 | ( |
681 | cd dtb || error "Unable to cd to dtb dir" | 681 | cd dtb || error "Unable to cd to dtb dir" |
682 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" "${dtb_file}" || error "lopper.py failed" | 682 | LOPPER_DTC_FLAGS="-b 0 -@" ${lopper} -f "${system_dtb}" "${dtb_file}" || error "lopper failed" |
683 | ) | 683 | ) |
684 | 684 | ||
685 | # Build baremetal multiconfig | 685 | # Build baremetal multiconfig |
686 | if [ -n "${domain_file}" ]; then | 686 | if [ -n "${domain_file}" ]; then |
687 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ | 687 | ${lopper} -f --permissive --enhanced -x '*.yaml' -i "${domain_file}" "${system_dtb}" \ |
688 | -- baremetaldrvlist_xlnx microblaze-psm "${embeddedsw}" || error "lopper.py failed" | 688 | -- baremetaldrvlist_xlnx microblaze-psm "${embeddedsw}" || error "lopper failed" |
689 | else | 689 | else |
690 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx microblaze-psm "${embeddedsw}" \ | 690 | ${lopper} -f "${system_dtb}" -- baremetaldrvlist_xlnx microblaze-psm "${embeddedsw}" \ |
691 | || error "lopper.py failed" | 691 | || error "lopper failed" |
692 | fi | 692 | fi |
693 | 693 | ||
694 | mv libxil.conf "${libxil}" | 694 | mv libxil.conf "${libxil}" |
@@ -854,14 +854,14 @@ gen_local_conf() { | |||
854 | 854 | ||
855 | parse_args "$@" | 855 | parse_args "$@" |
856 | 856 | ||
857 | lopper=$(command -v lopper.py) | 857 | lopper=$(command -v lopper) |
858 | lopper_dir=$(dirname "${lopper}") | 858 | lopper_dir=$(dirname "${lopper}") |
859 | lops_dir=$(dirname "${lopper_dir}")/share/lopper/lops | 859 | lops_dir=$(ls -d $(dirname "${lopper_dir}")/lib/python*/site-packages/lopper/lops | head -n 1) |
860 | embeddedsw=$(dirname "${lopper_dir}")/share/embeddedsw | 860 | embeddedsw=$(dirname "${lopper_dir}")/share/embeddedsw |
861 | system_conf="" | 861 | system_conf="" |
862 | multiconf="" | 862 | multiconf="" |
863 | 863 | ||
864 | [ -z "${lopper}" ] && error "Unable to find lopper.py, please source the prestep environment" | 864 | [ -z "${lopper}" ] && error "Unable to find lopper, please source the prestep environment" |
865 | 865 | ||
866 | # Generate CPU list | 866 | # Generate CPU list |
867 | cd "${config_dir}" || exit | 867 | cd "${config_dir}" || exit |
@@ -869,7 +869,7 @@ mkdir -p dtb multiconfig/includes | |||
869 | ( | 869 | ( |
870 | cd dtb || error "Unable to cd to dtb dir" | 870 | cd dtb || error "Unable to cd to dtb dir" |
871 | ${lopper} -f --enhanced -i "${lops_dir}/lop-xilinx-id-cpus.dts" "${system_dtb}" \ | 871 | ${lopper} -f --enhanced -i "${lops_dir}/lop-xilinx-id-cpus.dts" "${system_dtb}" \ |
872 | /dev/null >"../cpu-list.tmp" || error "lopper.py failed" | 872 | /dev/null >"../cpu-list.tmp" || error "lopper failed" |
873 | rm -f "lop-xilinx-id-cpus.dts.dtb" | 873 | rm -f "lop-xilinx-id-cpus.dts.dtb" |
874 | ) | 874 | ) |
875 | 875 | ||