diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-01-15 09:33:00 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-16 07:26:08 -0800 |
| commit | 094f062caeab1c3d502a2075433de8525c0e192c (patch) | |
| tree | 3eda906540155d3f3f08622c32ca8016ea62f822 /meta-xilinx-standalone-experimental | |
| parent | 753ef3ac21624ad350c1ce520a1b69f8690909ce (diff) | |
| download | meta-xilinx-094f062caeab1c3d502a2075433de8525c0e192c.tar.gz | |
dt-processor.sh: Define mc_name and cleanup various usage
mc_name (multiconfig name) is now defined for each section, this single
variable is used to create files and directories as requires. This should
prevent subtle errors from mismatched naming.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
| -rwxr-xr-x | meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh | 206 |
1 files changed, 97 insertions, 109 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 26dd8eea..17c16cab 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 | |||
| @@ -136,12 +136,13 @@ cortex_a53_linux() { | |||
| 136 | dtb_file="cortexa53-${machine}-linux.dtb" | 136 | dtb_file="cortexa53-${machine}-linux.dtb" |
| 137 | dts_file="cortexa53-${machine}-linux.dts" | 137 | dts_file="cortexa53-${machine}-linux.dts" |
| 138 | system_conf=${dtb_file} | 138 | system_conf=${dtb_file} |
| 139 | conf_file=cortexa53-${machine}-linux.conf | 139 | conf_file="" |
| 140 | else | 140 | else |
| 141 | dtb_file="cortexa53-${machine}-$1-linux.dtb" | 141 | mc_name=cortexa53-${machine}-$1-linux |
| 142 | dts_file="cortexa53-${machine}-$1-linux.dts" | 142 | dtb_file="${mc_name}.dtb" |
| 143 | multiconf="${multiconf} cortexa53-${machine}-linux" | 143 | dts_file="${mc_name}.dts" |
| 144 | conf_file=multiconfig/cortexa53-${machine}-$1-linux.conf | 144 | multiconf="${multiconf} ${mc_name}" |
| 145 | conf_file=multiconfig/${mc_name}.conf | ||
| 145 | fi | 146 | fi |
| 146 | 147 | ||
| 147 | # Check if it is overlay dts otherwise just create linux dtb | 148 | # Check if it is overlay dts otherwise just create linux dtb |
| @@ -184,7 +185,7 @@ cortex_a53_linux() { | |||
| 184 | rm -f pl.dtsi lop-a53-imux.dts.dtb lop-domain-linux-a53.dts.dtb | 185 | rm -f pl.dtsi lop-a53-imux.dts.dtb lop-domain-linux-a53.dts.dtb |
| 185 | ) | 186 | ) |
| 186 | 187 | ||
| 187 | if [ "$1" = "None" ]; then | 188 | if [ -z "${conf_file}" ]; then |
| 188 | return $? | 189 | return $? |
| 189 | fi | 190 | fi |
| 190 | 191 | ||
| @@ -192,7 +193,7 @@ cortex_a53_linux() { | |||
| 192 | cat <<EOF >"${conf_file}" | 193 | cat <<EOF >"${conf_file}" |
| 193 | CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | 194 | CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" |
| 194 | 195 | ||
| 195 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 196 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 196 | EOF | 197 | EOF |
| 197 | } | 198 | } |
| 198 | 199 | ||
| @@ -210,16 +211,17 @@ cortex_a53_baremetal() { | |||
| 210 | suffix="-$1"; lto="" | 211 | suffix="-$1"; lto="" |
| 211 | fi | 212 | fi |
| 212 | 213 | ||
| 213 | dtb_file="cortexa53-$2-${machine}${suffix}-baremetal.dtb" | 214 | mc_name="cortexa53-$2-${machine}${suffix}-baremetal" |
| 214 | multiconf="${multiconf} cortexa53-$2-${machine}${suffix}-baremetal" | 215 | dtb_file="${mc_name}.dtb" |
| 215 | conf_file="multiconfig/cortexa53-$2-${machine}${suffix}-baremetal.conf" | 216 | multiconf="${multiconf} ${mc_name}" |
| 216 | libxil="machine/include/${mach_conf}/cortexa53-${machine}${suffix}-libxil.conf" | 217 | conf_file="multiconfig/${mc_name}.conf" |
| 217 | distro="machine/include/${mach_conf}/cortexa53-${machine}${suffix}-features.conf" | 218 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 219 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 218 | yocto_distro="xilinx-standalone${lto}" | 220 | yocto_distro="xilinx-standalone${lto}" |
| 219 | if [ "$1" = "fsbl" ]; then | 221 | if [ "$1" = "fsbl" ]; then |
| 220 | fsbl_mcdepends="mc::${dtb_file%%.dtb}:fsbl-firmware:do_deploy" | 222 | fsbl_mcdepends="mc::${mc_name}:fsbl-firmware:do_deploy" |
| 221 | fsbl_deploy_dir="\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}/deploy/images/\${MACHINE}" | 223 | fsbl_deploy_dir="\${BASE_TMPDIR}/tmp-${mc_name}/deploy/images/\${MACHINE}" |
| 222 | multiconf_min="${multiconf_min} cortexa53-$2-${machine}${suffix}-baremetal" | 224 | multiconf_min="${multiconf_min} ${mc_name}" |
| 223 | a53_fsbl_done=1 | 225 | a53_fsbl_done=1 |
| 224 | fi | 226 | fi |
| 225 | 227 | ||
| @@ -271,12 +273,9 @@ CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | |||
| 271 | ESW_MACHINE = "$3" | 273 | ESW_MACHINE = "$3" |
| 272 | DEFAULTTUNE = "cortexa53" | 274 | DEFAULTTUNE = "cortexa53" |
| 273 | 275 | ||
| 274 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 276 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 275 | 277 | ||
| 276 | DISTRO = "${yocto_distro}" | 278 | DISTRO = "${yocto_distro}" |
| 277 | |||
| 278 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 279 | require conf/${distro} | ||
| 280 | EOF | 279 | EOF |
| 281 | } | 280 | } |
| 282 | 281 | ||
| @@ -286,11 +285,12 @@ cortex_a53_freertos() { | |||
| 286 | suffix="" | 285 | suffix="" |
| 287 | [ "$1" != "None" ] && suffix="-$1" | 286 | [ "$1" != "None" ] && suffix="-$1" |
| 288 | 287 | ||
| 289 | dtb_file="cortexa53-$2-${machine}${suffix}-freertos.dtb" | 288 | mc_name="cortexa53-$2-${machine}${suffix}-freertos" |
| 290 | multiconf="${multiconf} cortexa53-$2-${machine}${suffix}-freertos" | 289 | dtb_file="${mc_name}.dtb" |
| 291 | conf_file="multiconfig/cortexa53-$2-${machine}${suffix}-freertos.conf" | 290 | multiconf="${multiconf} ${mc_name}" |
| 292 | libxil="machine/include/${mach_conf}/cortexa53-${machine}${suffix}-libxil.conf" | 291 | conf_file="multiconfig/${mc_name}.conf" |
| 293 | distro="machine/include/${mach_conf}/cortexa53-${machine}${suffix}-features.conf" | 292 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 293 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 294 | 294 | ||
| 295 | # Build device tree | 295 | # Build device tree |
| 296 | ( | 296 | ( |
| @@ -325,12 +325,9 @@ CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | |||
| 325 | ESW_MACHINE = "$3" | 325 | ESW_MACHINE = "$3" |
| 326 | DEFAULTTUNE = "cortexa53" | 326 | DEFAULTTUNE = "cortexa53" |
| 327 | 327 | ||
| 328 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 328 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 329 | 329 | ||
| 330 | DISTRO = "xilinx-freertos" | 330 | DISTRO = "xilinx-freertos" |
| 331 | |||
| 332 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 333 | require conf/${distro} | ||
| 334 | EOF | 331 | EOF |
| 335 | } | 332 | } |
| 336 | 333 | ||
| @@ -350,12 +347,13 @@ cortex_a72_linux() { | |||
| 350 | dtb_file="cortexa72-${machine}-linux.dtb" | 347 | dtb_file="cortexa72-${machine}-linux.dtb" |
| 351 | dts_file="cortexa72-${machine}-linux.dts" | 348 | dts_file="cortexa72-${machine}-linux.dts" |
| 352 | system_conf=${dtb_file} | 349 | system_conf=${dtb_file} |
| 353 | conf_file=cortexa72-${machine}-linux.conf | 350 | conf_file="" |
| 354 | else | 351 | else |
| 355 | dtb_file="cortexa72-${machine}-$1-linux.dtb" | 352 | mc_name="cortexa72-${machine}-$1-linux" |
| 356 | dts_file="cortexa72-${machine}-$1-linux.dts" | 353 | dtb_file="${mc_name}.dtb" |
| 357 | multiconf="${multiconf} cortexa72-${machine}-linux" | 354 | dts_file="${mc_name}.dts" |
| 358 | conf_file=multiconfig/cortexa72-${machine}-$1-linux.conf | 355 | multiconf="${multiconf} ${mc_name}" |
| 356 | conf_file=multiconfig/${mc_name}.conf | ||
| 359 | fi | 357 | fi |
| 360 | 358 | ||
| 361 | ( | 359 | ( |
| @@ -399,7 +397,7 @@ cortex_a72_linux() { | |||
| 399 | rm -f pl.dtsi lop-a72-imux.dts.dtb lop-domain-a72.dts.dtb | 397 | rm -f pl.dtsi lop-a72-imux.dts.dtb lop-domain-a72.dts.dtb |
| 400 | ) | 398 | ) |
| 401 | 399 | ||
| 402 | if [ "$1" = "None" ]; then | 400 | if [ -z "${conf_file}" ]; then |
| 403 | return $? | 401 | return $? |
| 404 | fi | 402 | fi |
| 405 | 403 | ||
| @@ -407,7 +405,7 @@ cortex_a72_linux() { | |||
| 407 | cat <<EOF >"${conf_file}" | 405 | cat <<EOF >"${conf_file}" |
| 408 | CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | 406 | CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" |
| 409 | 407 | ||
| 410 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 408 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 411 | EOF | 409 | EOF |
| 412 | } | 410 | } |
| 413 | 411 | ||
| @@ -417,11 +415,12 @@ cortex_a72_baremetal() { | |||
| 417 | suffix="" | 415 | suffix="" |
| 418 | [ "$1" != "None" ] && suffix="-$1" | 416 | [ "$1" != "None" ] && suffix="-$1" |
| 419 | 417 | ||
| 420 | dtb_file="cortexa72-$2-${machine}${suffix}-baremetal.dtb" | 418 | mc_name="cortexa72-$2-${machine}${suffix}-baremetal" |
| 421 | multiconf="${multiconf} cortexa72-$2-${machine}${suffix}-baremetal" | 419 | dtb_file="${mc_name}.dtb" |
| 422 | conf_file="multiconfig/cortexa72-$2-${machine}${suffix}-baremetal.conf" | 420 | multiconf="${multiconf} ${mc_name}" |
| 423 | libxil="machine/include/${mach_conf}/cortexa72-${machine}${suffix}-libxil.conf" | 421 | conf_file="multiconfig/${mc_name}.conf" |
| 424 | distro="machine/include/${mach_conf}/cortexa72-${machine}${suffix}-features.conf" | 422 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 423 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 425 | 424 | ||
| 426 | # Build device tree | 425 | # Build device tree |
| 427 | ( | 426 | ( |
| @@ -456,12 +455,9 @@ CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | |||
| 456 | ESW_MACHINE = "$3" | 455 | ESW_MACHINE = "$3" |
| 457 | DEFAULTTUNE = "cortexa72" | 456 | DEFAULTTUNE = "cortexa72" |
| 458 | 457 | ||
| 459 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 458 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 460 | 459 | ||
| 461 | DISTRO = "xilinx-standalone-nolto" | 460 | DISTRO = "xilinx-standalone-nolto" |
| 462 | |||
| 463 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 464 | require conf/${distro} | ||
| 465 | EOF | 461 | EOF |
| 466 | } | 462 | } |
| 467 | 463 | ||
| @@ -471,11 +467,12 @@ cortex_a72_freertos() { | |||
| 471 | suffix="" | 467 | suffix="" |
| 472 | [ "$1" != "None" ] && suffix="-$1" | 468 | [ "$1" != "None" ] && suffix="-$1" |
| 473 | 469 | ||
| 474 | dtb_file="cortexa72-$2-${machine}${suffix}-freertos.dtb" | 470 | mc_name="cortexa72-$2-${machine}${suffix}-freertos" |
| 475 | multiconf="${multiconf} cortexa72-$2-${machine}${suffix}-freertos" | 471 | dtb_file="${mc_name}.dtb" |
| 476 | conf_file="multiconfig/cortexa72-$2-${machine}${suffix}-freertos.conf" | 472 | multiconf="${multiconf} ${mc_name}" |
| 477 | libxil="machine/include/${mach_conf}/cortexa72-${machine}${suffix}-libxil.conf" | 473 | conf_file="multiconfig/${mc_name}.conf" |
| 478 | distro="machine/include/${mach_conf}/cortexa72-${machine}${suffix}-features.conf" | 474 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 475 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 479 | 476 | ||
| 480 | # Build device tree | 477 | # Build device tree |
| 481 | ( | 478 | ( |
| @@ -510,12 +507,9 @@ CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | |||
| 510 | ESW_MACHINE = "$3" | 507 | ESW_MACHINE = "$3" |
| 511 | DEFAULTTUNE = "cortexa72" | 508 | DEFAULTTUNE = "cortexa72" |
| 512 | 509 | ||
| 513 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 510 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 514 | 511 | ||
| 515 | DISTRO = "xilinx-freertos" | 512 | DISTRO = "xilinx-freertos" |
| 516 | |||
| 517 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 518 | require conf/${distro} | ||
| 519 | EOF | 513 | EOF |
| 520 | } | 514 | } |
| 521 | 515 | ||
| @@ -533,16 +527,17 @@ cortex_r5_baremetal() { | |||
| 533 | suffix="-$1"; lto="" | 527 | suffix="-$1"; lto="" |
| 534 | fi | 528 | fi |
| 535 | 529 | ||
| 536 | dtb_file="cortexr5-$2-${machine}${suffix}-baremetal.dtb" | 530 | mc_name="cortexr5-$2-${machine}${suffix}-baremetal" |
| 537 | multiconf="${multiconf} cortexr5-$2-${machine}${suffix}-baremetal" | 531 | dtb_file="${mc_name}.dtb" |
| 538 | conf_file="multiconfig/cortexr5-$2-${machine}${suffix}-baremetal.conf" | 532 | multiconf="${multiconf} ${mc_name}" |
| 539 | libxil="machine/include/${mach_conf}/cortexr5-${machine}${suffix}-libxil.conf" | 533 | conf_file="multiconfig/${mc_name}.conf" |
| 540 | distro="machine/include/${mach_conf}/cortexr5-${machine}${suffix}-features.conf" | 534 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 535 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 541 | yocto_distro="xilinx-standalone${lto}" | 536 | yocto_distro="xilinx-standalone${lto}" |
| 542 | 537 | ||
| 543 | if [ "$1" = "fsbl" ]; then | 538 | if [ "$1" = "fsbl" ]; then |
| 544 | r5fsbl_mcdepends="mc::${dtb_file%%.dtb}:fsbl-firmware:do_deploy" | 539 | r5fsbl_mcdepends="mc::${mc_name}:fsbl-firmware:do_deploy" |
| 545 | r5fsbl_deploy_dir="\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}/deploy/images/\${MACHINE}" | 540 | r5fsbl_deploy_dir="\${BASE_TMPDIR}/tmp-${mc_name}/deploy/images/\${MACHINE}" |
| 546 | r5_fsbl_done=1 | 541 | r5_fsbl_done=1 |
| 547 | fi | 542 | fi |
| 548 | 543 | ||
| @@ -593,12 +588,9 @@ CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | |||
| 593 | ESW_MACHINE = "$3" | 588 | ESW_MACHINE = "$3" |
| 594 | DEFAULTTUNE = "cortexr5" | 589 | DEFAULTTUNE = "cortexr5" |
| 595 | 590 | ||
| 596 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 591 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 597 | 592 | ||
| 598 | DISTRO = "$yocto_distro" | 593 | DISTRO = "$yocto_distro" |
| 599 | |||
| 600 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 601 | require conf/${distro} | ||
| 602 | EOF | 594 | EOF |
| 603 | } | 595 | } |
| 604 | 596 | ||
| @@ -608,11 +600,12 @@ cortex_r5_freertos() { | |||
| 608 | suffix="" | 600 | suffix="" |
| 609 | [ "$1" != "None" ] && suffix="-$1" | 601 | [ "$1" != "None" ] && suffix="-$1" |
| 610 | 602 | ||
| 611 | dtb_file="cortexr5-$2-${machine}${suffix}-freertos.dtb" | 603 | mc_name="cortexr5-$2-${machine}${suffix}-freertos" |
| 612 | multiconf="${multiconf} cortexr5-$2-${machine}${suffix}-freertos" | 604 | dtb_file="${mc_name}.dtb" |
| 613 | conf_file="multiconfig/cortexr5-$2-${machine}${suffix}-freertos.conf" | 605 | multiconf="${multiconf} ${mc_name}" |
| 614 | libxil="machine/include/${mach_conf}/cortexr5-${machine}${suffix}-libxil.conf" | 606 | conf_file="multiconfig/${mc_name}.conf" |
| 615 | distro="machine/include/${mach_conf}/cortexr5-${machine}${suffix}-features.conf" | 607 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 608 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 616 | 609 | ||
| 617 | # Build device tree | 610 | # Build device tree |
| 618 | ( | 611 | ( |
| @@ -647,12 +640,9 @@ CONFIG_DTFILE = "\${TOPDIR}/conf/dtb/${dtb_file}" | |||
| 647 | ESW_MACHINE = "$3" | 640 | ESW_MACHINE = "$3" |
| 648 | DEFAULTTUNE = "cortexr5" | 641 | DEFAULTTUNE = "cortexr5" |
| 649 | 642 | ||
| 650 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 643 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 651 | 644 | ||
| 652 | DISTRO = "xilinx-freertos" | 645 | DISTRO = "xilinx-freertos" |
| 653 | |||
| 654 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 655 | require conf/${distro} | ||
| 656 | EOF | 646 | EOF |
| 657 | } | 647 | } |
| 658 | 648 | ||
| @@ -682,15 +672,16 @@ pmu-microblaze() { | |||
| 682 | 672 | ||
| 683 | process_microblaze | 673 | process_microblaze |
| 684 | 674 | ||
| 685 | dtb_file="microblaze-0-pmu.dtb" | 675 | mc_name="microblaze-0-pmu" |
| 686 | multiconf="${multiconf} microblaze-0-pmu" | 676 | dtb_file="${mc_name}.dtb" |
| 687 | multiconf_min="${multiconf_min} microblaze-0-pmu" | 677 | multiconf="${multiconf} ${mc_name}" |
| 688 | conf_file="multiconfig/microblaze-0-pmu.conf" | 678 | multiconf_min="${multiconf_min} ${mc_name}" |
| 689 | libxil="machine/include/${mach_conf}/microblaze-pmu-libxil.conf" | 679 | conf_file="multiconfig/${mc_name}.conf" |
| 690 | distro="machine/include/${mach_conf}/microblaze-pmu-features.conf" | 680 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 681 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 691 | 682 | ||
| 692 | pmu_mcdepends="mc::${dtb_file%%.dtb}:pmu-firmware:do_deploy" | 683 | pmu_mcdepends="mc::${mc_name}:pmu-firmware:do_deploy" |
| 693 | pmu_firmware_deploy_dir="\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}/deploy/images/\${MACHINE}" | 684 | pmu_firmware_deploy_dir="\${BASE_TMPDIR}/tmp-${mc_name}/deploy/images/\${MACHINE}" |
| 694 | 685 | ||
| 695 | # Build device tree | 686 | # Build device tree |
| 696 | ( | 687 | ( |
| @@ -720,12 +711,9 @@ DEFAULTTUNE = "microblaze-pmu" | |||
| 720 | 711 | ||
| 721 | TARGET_CFLAGS += "-DPSU_PMU=1U" | 712 | TARGET_CFLAGS += "-DPSU_PMU=1U" |
| 722 | 713 | ||
| 723 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 714 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 724 | 715 | ||
| 725 | DISTRO = "xilinx-standalone" | 716 | DISTRO = "xilinx-standalone" |
| 726 | |||
| 727 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 728 | require conf/${distro} | ||
| 729 | EOF | 717 | EOF |
| 730 | } | 718 | } |
| 731 | 719 | ||
| @@ -735,15 +723,16 @@ pmc-microblaze() { | |||
| 735 | 723 | ||
| 736 | process_microblaze | 724 | process_microblaze |
| 737 | 725 | ||
| 738 | dtb_file="microblaze-0-pmc.dtb" | 726 | mc_name="microblaze-0-pmc" |
| 739 | multiconf="${multiconf} microblaze-0-pmc" | 727 | dtb_file="${mc_name}.dtb" |
| 740 | multiconf_min="${multiconf_min} microblaze-0-pmc" | 728 | multiconf="${multiconf} ${mc_name}" |
| 741 | conf_file="multiconfig/microblaze-0-pmc.conf" | 729 | multiconf_min="${multiconf_min} ${mc_name}" |
| 742 | libxil="machine/include/${mach_conf}/microblaze-pmc-libxil.conf" | 730 | conf_file="multiconfig/${mc_name}.conf" |
| 743 | distro="machine/include/${mach_conf}/microblaze-pmc-features.conf" | 731 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 732 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 744 | 733 | ||
| 745 | plm_mcdepends="mc::${dtb_file%%.dtb}:plm-firmware:do_deploy" | 734 | plm_mcdepends="mc::${mc_name}:plm-firmware:do_deploy" |
| 746 | plm_deploy_dir="\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}/deploy/images/\${MACHINE}" | 735 | plm_deploy_dir="\${BASE_TMPDIR}/tmp-${mc_name}/deploy/images/\${MACHINE}" |
| 747 | 736 | ||
| 748 | # Build device tree | 737 | # Build device tree |
| 749 | ( | 738 | ( |
| @@ -773,12 +762,9 @@ DEFAULTTUNE = "microblaze-pmc" | |||
| 773 | 762 | ||
| 774 | TARGET_CFLAGS += "-DVERSAL_PLM=1" | 763 | TARGET_CFLAGS += "-DVERSAL_PLM=1" |
| 775 | 764 | ||
| 776 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 765 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 777 | 766 | ||
| 778 | DISTRO = "xilinx-standalone" | 767 | DISTRO = "xilinx-standalone" |
| 779 | |||
| 780 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 781 | require conf/${distro} | ||
| 782 | EOF | 768 | EOF |
| 783 | } | 769 | } |
| 784 | 770 | ||
| @@ -788,15 +774,16 @@ psm-microblaze() { | |||
| 788 | 774 | ||
| 789 | process_microblaze | 775 | process_microblaze |
| 790 | 776 | ||
| 791 | dtb_file="microblaze-0-psm.dtb" | 777 | mc_name="microblaze-0-psm" |
| 792 | multiconf="${multiconf} microblaze-0-psm" | 778 | dtb_file="${mc_name}.dtb" |
| 793 | multiconf_min="${multiconf_min} microblaze-0-psm" | 779 | multiconf="${multiconf} ${mc_name}" |
| 794 | conf_file="multiconfig/microblaze-0-psm.conf" | 780 | multiconf_min="${multiconf_min} ${mc_name}" |
| 795 | libxil="machine/include/${mach_conf}/microblaze-psm-libxil.conf" | 781 | conf_file="multiconfig/${mc_name}.conf" |
| 796 | distro="machine/include/${mach_conf}/microblaze-psm-features.conf" | 782 | libxil="machine/include/${mach_conf}/${mc_name}-libxil.conf" |
| 783 | distro="machine/include/${mach_conf}/${mc_name}-features.conf" | ||
| 797 | 784 | ||
| 798 | psm_mcdepends="mc::${dtb_file%%.dtb}:psm-firmware:do_deploy" | 785 | psm_mcdepends="mc::${mc_name}:psm-firmware:do_deploy" |
| 799 | psm_firmware_deploy_dir="\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}/deploy/images/\${MACHINE}" | 786 | psm_firmware_deploy_dir="\${BASE_TMPDIR}/tmp-${mc_name}/deploy/images/\${MACHINE}" |
| 800 | 787 | ||
| 801 | # Build device tree | 788 | # Build device tree |
| 802 | ( | 789 | ( |
| @@ -826,12 +813,9 @@ DEFAULTTUNE = "microblaze-psm" | |||
| 826 | 813 | ||
| 827 | TARGET_CFLAGS += "-DVERSAL_psm=1" | 814 | TARGET_CFLAGS += "-DVERSAL_psm=1" |
| 828 | 815 | ||
| 829 | TMPDIR = "\${BASE_TMPDIR}/tmp-${dtb_file%%.dtb}" | 816 | TMPDIR = "\${BASE_TMPDIR}/tmp-${mc_name}" |
| 830 | 817 | ||
| 831 | DISTRO = "xilinx-standalone" | 818 | DISTRO = "xilinx-standalone" |
| 832 | |||
| 833 | LIBXIL_CONFIG = "conf/${libxil}" | ||
| 834 | require conf/${distro} | ||
| 835 | EOF | 819 | EOF |
| 836 | } | 820 | } |
| 837 | 821 | ||
| @@ -880,6 +864,10 @@ SYSTEM_DTFILE_DIR = "${sysdt_path}" | |||
| 880 | SYSTEM_DTFILE = "\${SYSTEM_DTFILE_DIR}/${sysdt_base}" | 864 | SYSTEM_DTFILE = "\${SYSTEM_DTFILE_DIR}/${sysdt_base}" |
| 881 | SYSTEM_DTFILE[vardepsexclude] += "SYSTEM_DTFILE_DIR" | 865 | SYSTEM_DTFILE[vardepsexclude] += "SYSTEM_DTFILE_DIR" |
| 882 | 866 | ||
| 867 | # Load the dynamic machine features | ||
| 868 | include conf/machine/include/${mach_conf}/\${BB_CURRENT_MC}-features.conf | ||
| 869 | LIBXIL_CONFIG = "conf/machine/include/${mach_conf}/\${BB_CURRENT_MC}-libxil.conf" | ||
| 870 | |||
| 883 | EOF | 871 | EOF |
| 884 | 872 | ||
| 885 | if [ -n "${fsbl_mcdepends}" ]; then | 873 | if [ -n "${fsbl_mcdepends}" ]; then |
