diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-11-13 22:54:08 -0800 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:03:46 -0800 |
commit | 0e911125d168bb424d58afcd24646694fbd438e4 (patch) | |
tree | 0ffbf8b073b599f049297c43b537144b20231619 | |
parent | 911bdde428f4981c2873602873914968d6ea8e32 (diff) | |
download | meta-xilinx-0e911125d168bb424d58afcd24646694fbd438e4.tar.gz |
*-zynqmp.conf: Add variables to provide paths of pmu-firmare deployment
When building pmu firmware using multiconfig setup, the binaries can be
deployed in different build directory. Provide variables to set the
binaries in the required path for QEMU.
Fix SPL dependency on pmu-firmware. Since the pmu-firmware is being built
as a part of multiconfig provide variables to fetch appropriate
pmu-firmware binaries.
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
4 files changed, 11 insertions, 4 deletions
diff --git a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf index 07e8d64d..f04a42ca 100644 --- a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf +++ b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf | |||
@@ -65,12 +65,15 @@ QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" | |||
65 | 65 | ||
66 | # PMU instance args | 66 | # PMU instance args |
67 | PMU_ROM ?= "${DEPLOY_DIR_IMAGE}/pmu-rom.elf" | 67 | PMU_ROM ?= "${DEPLOY_DIR_IMAGE}/pmu-rom.elf" |
68 | PMU_FIRMWARE_DEPLOY_DIR ?= "${TOPDIR}/pmutmp/deploy/images/zynqmp-pmu" | ||
69 | PMU_FIRMWARE_IMAGE_NAME ?= "pmu-firmware-zynqmp-pmu" | ||
70 | |||
68 | QB_PMU_OPT = " \ | 71 | QB_PMU_OPT = " \ |
69 | -M microblaze-fdt \ | 72 | -M microblaze-fdt \ |
70 | -display none \ | 73 | -display none \ |
71 | -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch/zynqmp-pmu.dtb \ | 74 | -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch/zynqmp-pmu.dtb \ |
72 | -kernel ${PMU_ROM} \ | 75 | -kernel ${PMU_ROM} \ |
73 | -device loader,file=${DEPLOY_DIR_IMAGE}/pmu-firmware-${MACHINE}.elf \ | 76 | -device loader,file=${PMU_FIRMWARE_DEPLOY_DIR}/${PMU_FIRMWARE_IMAGE_NAME}.elf \ |
74 | -device loader,addr=0xfd1a0074,data=0x1011003,data-len=4 \ | 77 | -device loader,addr=0xfd1a0074,data=0x1011003,data-len=4 \ |
75 | -device loader,addr=0xfd1a007C,data=0x1010f03,data-len=4 \ | 78 | -device loader,addr=0xfd1a007C,data=0x1010f03,data-len=4 \ |
76 | " | 79 | " |
diff --git a/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf index 76838c19..dda099d8 100644 --- a/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf +++ b/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf | |||
@@ -24,6 +24,9 @@ KERNEL_DEVICETREE = "xilinx/zynqmp-zcu104-revC.dtb" | |||
24 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | 24 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" |
25 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" | 25 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" |
26 | 26 | ||
27 | PMU_FIRMWARE_IMAGE_NAME ?= "pmu-firmware-zynqmp-pmu" | ||
28 | PMU_FIRMWARE_DEPLOY_DIR ?= "${TOPDIR}/pmutmp/deploy/images/zynqmp-pmu" | ||
29 | |||
27 | EXTRA_IMAGEDEPENDS += " \ | 30 | EXTRA_IMAGEDEPENDS += " \ |
28 | u-boot-zynq-uenv \ | 31 | u-boot-zynq-uenv \ |
29 | arm-trusted-firmware \ | 32 | arm-trusted-firmware \ |
diff --git a/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf index eca633e4..edc95c13 100644 --- a/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf +++ b/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf | |||
@@ -22,6 +22,9 @@ KERNEL_DEVICETREE = "xilinx/zynqmp-zcu106-revA.dtb" | |||
22 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | 22 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" |
23 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" | 23 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" |
24 | 24 | ||
25 | PMU_FIRMWARE_IMAGE_NAME ?= "pmu-firmware-zynqmp-pmu" | ||
26 | PMU_FIRMWARE_DEPLOY_DIR ?= "${TOPDIR}/pmutmp/deploy/images/zynqmp-pmu" | ||
27 | |||
25 | EXTRA_IMAGEDEPENDS += " \ | 28 | EXTRA_IMAGEDEPENDS += " \ |
26 | u-boot-zynq-uenv \ | 29 | u-boot-zynq-uenv \ |
27 | arm-trusted-firmware \ | 30 | arm-trusted-firmware \ |
diff --git a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc index 6233bc82..cf8b9b7c 100644 --- a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc +++ b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc | |||
@@ -64,10 +64,8 @@ python () { | |||
64 | d.setVar("SPL_BINARY", "") | 64 | d.setVar("SPL_BINARY", "") |
65 | 65 | ||
66 | if providesbin and d.getVar("SOC_FAMILY") in ["zynqmp"]: | 66 | if providesbin and d.getVar("SOC_FAMILY") in ["zynqmp"]: |
67 | # depend on the pmu-firmware build | ||
68 | #d.appendVar("DEPENDS", " virtual/pmu-firmware") | ||
69 | # determine the path relative to the source tree | 67 | # determine the path relative to the source tree |
70 | relpath = os.path.relpath(d.expand("${DEPLOY_DIR_IMAGE}/pmu-${MACHINE}.bin"), d.getVar("S")) | 68 | relpath = os.path.relpath(d.expand("${PMU_FIRMWARE_DEPLOY_DIR}/${PMU_FIRMWARE_IMAGE_NAME}.bin"), d.getVar("S")) |
71 | # setup PMU Firmware path via MAKEFLAGS | 69 | # setup PMU Firmware path via MAKEFLAGS |
72 | d.appendVar("EXTRA_OEMAKE", " CONFIG_PMUFW_INIT_FILE=\"{0}\"".format(relpath)) | 70 | d.appendVar("EXTRA_OEMAKE", " CONFIG_PMUFW_INIT_FILE=\"{0}\"".format(relpath)) |
73 | } | 71 | } |