Request the machine dependent include file.
Signed-off-by: Pawel Zalewski pzalewski@thegoodpenguin.co.uk --- recipes-bsp/scp-firmware/scp-firmware-morello-fvp.inc | 1 + recipes-bsp/scp-firmware/scp-firmware-morello-soc.inc | 1 + recipes-bsp/scp-firmware/scp-firmware_2.10.%.bbappend | 8 ++++++-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 recipes-bsp/scp-firmware/scp-firmware-morello-fvp.inc create mode 100644 recipes-bsp/scp-firmware/scp-firmware-morello-soc.inc
diff --git a/recipes-bsp/scp-firmware/scp-firmware-morello-fvp.inc b/recipes-bsp/scp-firmware/scp-firmware-morello-fvp.inc new file mode 100644 index 0000000..d109c66 --- /dev/null +++ b/recipes-bsp/scp-firmware/scp-firmware-morello-fvp.inc @@ -0,0 +1 @@ +FW_INSTALL = "ramfw_fvp romfw" \ No newline at end of file diff --git a/recipes-bsp/scp-firmware/scp-firmware-morello-soc.inc b/recipes-bsp/scp-firmware/scp-firmware-morello-soc.inc new file mode 100644 index 0000000..f3620c0 --- /dev/null +++ b/recipes-bsp/scp-firmware/scp-firmware-morello-soc.inc @@ -0,0 +1 @@ +FW_INSTALL = "ramfw_soc romfw" \ No newline at end of file diff --git a/recipes-bsp/scp-firmware/scp-firmware_2.10.%.bbappend b/recipes-bsp/scp-firmware/scp-firmware_2.10.%.bbappend index 10fb915..69fdd1d 100644 --- a/recipes-bsp/scp-firmware/scp-firmware_2.10.%.bbappend +++ b/recipes-bsp/scp-firmware/scp-firmware_2.10.%.bbappend @@ -4,6 +4,11 @@ COMPATIBLE_MACHINE = "morello" OUTPUTS_NAME = "scp-firmware" SECTION = "firmware"
+MACHINE_SCP_REQUIRE ?= "" +MACHINE_SCP_REQUIRE:morello-fvp = "scp-firmware-morello-fvp.inc" +MACHINE_SCP_REQUIRE:morello-soc = "scp-firmware-morello-soc.inc" +require ${MACHINE_SCP_REQUIRE} + DEPENDS += "virtual/board-firmware"
PROVIDES += "virtual/${OUTPUTS_NAME}" @@ -21,11 +26,10 @@ SENSOR = "${RECIPE_SYSROOT}/board-firmware/LIB/sensor.a" B = "${WORKDIR}/build/morello"
FW_TARGETS = "scp mcp" -FW_INSTALL = "ramfw_soc romfw"
unset do_configure[noexec] unset do_compile[cleandirs] -do_deploy[noexec] = "1" +do_configure[depends] += "board-firmware:do_install"
do_configure() {