diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-08-27 17:53:31 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-10-02 22:03:34 +1000 |
commit | 9a759f830bd623626f3e623ebf72428293acb93d (patch) | |
tree | 4aeffa2430bb69cdd26ab83d110c315969203949 | |
parent | 5a4a8fbba93a8f9abc1c97bd51aded36cb0a5cb6 (diff) | |
download | meta-xilinx-9a759f830bd623626f3e623ebf72428293acb93d.tar.gz |
pmu-firmware: Make the recipe provide virtual/pmu-firmware
Make the pmu-firmware recipe provide a non-prefixed
virtual/pmu-firmware. Due to the common use of a class extender the
PROVIDES variable will be remapped with the 'zynqmp-pmu-' prefix. In
order to ensure the provider is always without a prefix modify the
PROVIDES after the recipe has been parsed (and any class extender
mapping is already processed).
Additionally set the zcu102-zynqmp machine to use the
virtual/pmu-firmware target and set the zynqmp-pmu-pmu-firmware recipe
as the default provider.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r-- | conf/machine/zcu102-zynqmp.conf | 3 | ||||
-rw-r--r-- | recipes-bsp/pmu-firmware/pmu-firmware_2017.1.bb | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/conf/machine/zcu102-zynqmp.conf b/conf/machine/zcu102-zynqmp.conf index 5e21e0d0..e6d66cd9 100644 --- a/conf/machine/zcu102-zynqmp.conf +++ b/conf/machine/zcu102-zynqmp.conf | |||
@@ -18,11 +18,12 @@ KERNEL_DEVICETREE = "xilinx/zynqmp-zcu102-revB.dtb xilinx/zynqmp-zcu102.dtb" | |||
18 | 18 | ||
19 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | 19 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" |
20 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" | 20 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" |
21 | PREFERRED_PROVIDER_virtual/pmu-firmware ?= "zynqmp-pmu-pmu-firmware" | ||
21 | 22 | ||
22 | EXTRA_IMAGEDEPENDS += " \ | 23 | EXTRA_IMAGEDEPENDS += " \ |
23 | arm-trusted-firmware \ | 24 | arm-trusted-firmware \ |
24 | qemu-devicetrees \ | 25 | qemu-devicetrees \ |
25 | zynqmp-pmu-pmu-firmware \ | 26 | virtual/pmu-firmware \ |
26 | " | 27 | " |
27 | 28 | ||
28 | # This machine has a QEMU model, runqemu setup: | 29 | # This machine has a QEMU model, runqemu setup: |
diff --git a/recipes-bsp/pmu-firmware/pmu-firmware_2017.1.bb b/recipes-bsp/pmu-firmware/pmu-firmware_2017.1.bb index 4ae5c4e7..ee68617f 100644 --- a/recipes-bsp/pmu-firmware/pmu-firmware_2017.1.bb +++ b/recipes-bsp/pmu-firmware/pmu-firmware_2017.1.bb | |||
@@ -5,6 +5,15 @@ SECTION = "bsp" | |||
5 | INHIBIT_DEFAULT_DEPS = "1" | 5 | INHIBIT_DEFAULT_DEPS = "1" |
6 | DEPENDS = "virtual/${TARGET_PREFIX}gcc newlib libgloss libgcc" | 6 | DEPENDS = "virtual/${TARGET_PREFIX}gcc newlib libgloss libgcc" |
7 | 7 | ||
8 | # force this recipe to provide a target virtual/pmu-firmware. this is applied | ||
9 | # after any class extender mapping and results in this recipe always providing | ||
10 | # 'virtual/pmu-firmware'. | ||
11 | python append_target_provides () { | ||
12 | d.appendVar("PROVIDES", " virtual/pmu-firmware") | ||
13 | } | ||
14 | addhandler append_target_provides | ||
15 | append_target_provides[eventmask] = "bb.event.RecipeParsed" | ||
16 | |||
8 | # This source links in a number of components with differing licenses, and some | 17 | # This source links in a number of components with differing licenses, and some |
9 | # licenses are not Open Source compatible. Additionally the pmu-firmware source | 18 | # licenses are not Open Source compatible. Additionally the pmu-firmware source |
10 | # itself is licensed under a modified MIT license which restricts use to Xilinx | 19 | # itself is licensed under a modified MIT license which restricts use to Xilinx |