diff options
| author | Mark Hatle <mark.hatle@kernel.crashing.org> | 2021-01-23 19:55:43 -0600 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-07-14 14:48:56 -0700 |
| commit | 6725df76a65393739e6e5cdae7c047a003ac7ce0 (patch) | |
| tree | 1b22cf36888029d76a9d168a1b4fb8f08c07df7d /meta-xilinx-standalone/recipes-standalone | |
| parent | 9bfbb038c621b7e9f5d42a8778b1633986fe3b49 (diff) | |
| download | meta-xilinx-6725df76a65393739e6e5cdae7c047a003ac7ce0.tar.gz | |
pmu/psm-firmware: Move from S to B which allows code to be patched
The system should never reference or build software that is above the 'S'
directory. So S being the top of the source tree, and B (build) being the
location where we are running out build components will work correctly and
meet the Yocto Project requirements.
This also has a side effect of allowing patching of components above the
build directory, if necessary.
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Diffstat (limited to 'meta-xilinx-standalone/recipes-standalone')
| -rw-r--r-- | meta-xilinx-standalone/recipes-standalone/pmu-firmware/pmu-firmware_2020.2.bb | 13 | ||||
| -rw-r--r-- | meta-xilinx-standalone/recipes-standalone/psm-firmware/psm-firmware_2020.2.bb | 11 |
2 files changed, 13 insertions, 11 deletions
diff --git a/meta-xilinx-standalone/recipes-standalone/pmu-firmware/pmu-firmware_2020.2.bb b/meta-xilinx-standalone/recipes-standalone/pmu-firmware/pmu-firmware_2020.2.bb index 330e0209..6c0811ef 100644 --- a/meta-xilinx-standalone/recipes-standalone/pmu-firmware/pmu-firmware_2020.2.bb +++ b/meta-xilinx-standalone/recipes-standalone/pmu-firmware/pmu-firmware_2020.2.bb | |||
| @@ -1,18 +1,19 @@ | |||
| 1 | inherit deploy | 1 | inherit deploy |
| 2 | 2 | ||
| 3 | LICENSE = "Proprietary" | 3 | LICENSE = "Proprietary" |
| 4 | LIC_FILES_CHKSUM = "file://../../../../license.txt;md5=39ab6ab638f4d1836ba994ec6852de94" | 4 | LIC_FILES_CHKSUM = "file://license.txt;md5=39ab6ab638f4d1836ba994ec6852de94" |
| 5 | 5 | ||
| 6 | SRCREV = "e8db5fb118229fdc621e0ec7848641a23bf60998" | 6 | SRCREV = "e8db5fb118229fdc621e0ec7848641a23bf60998" |
| 7 | PV = "${XILINX_RELEASE_VERSION}+git${SRCPV}" | 7 | PV = "${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;nobranch=1 \ | 9 | SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;nobranch=1 \ |
| 10 | file://fix-zynqmp-assert.patch;pnum=5" | 10 | file://fix-zynqmp-assert.patch" |
| 11 | 11 | ||
| 12 | COMPATIBLE_HOST = "microblaze.*-elf" | 12 | COMPATIBLE_HOST = "microblaze.*-elf" |
| 13 | COMPATIBLE_MACHINE = "microblaze-pmu" | 13 | COMPATIBLE_MACHINE = "microblaze-pmu" |
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/git/lib/sw_apps/zynqmp_pmufw/src" | 15 | S = "${WORKDIR}/git" |
| 16 | B = "${S}/lib/sw_apps/zynqmp_pmufw/src" | ||
| 16 | 17 | ||
| 17 | # The makefile does not handle parallelization | 18 | # The makefile does not handle parallelization |
| 18 | PARALLEL_MAKE = "" | 19 | PARALLEL_MAKE = "" |
| @@ -20,7 +21,7 @@ PARALLEL_MAKE = "" | |||
| 20 | do_configure() { | 21 | do_configure() { |
| 21 | # manually do the copy_bsp step first, so as to be able to fix up use of | 22 | # manually do the copy_bsp step first, so as to be able to fix up use of |
| 22 | # mb-* commands | 23 | # mb-* commands |
| 23 | ${S}/../misc/copy_bsp.sh | 24 | ${B}/../misc/copy_bsp.sh |
| 24 | } | 25 | } |
| 25 | 26 | ||
| 26 | COMPILER = "${CC}" | 27 | COMPILER = "${CC}" |
| @@ -28,7 +29,7 @@ COMPILER_FLAGS = "-O2 -c" | |||
| 28 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | 29 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 29 | ARCHIVER = "${AR}" | 30 | ARCHIVER = "${AR}" |
| 30 | 31 | ||
| 31 | BSP_DIR ?= "${S}/../misc/zynqmp_pmufw_bsp" | 32 | BSP_DIR ?= "${B}/../misc/zynqmp_pmufw_bsp" |
| 32 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psu_pmu_0/libsrc" | 33 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psu_pmu_0/libsrc" |
| 33 | 34 | ||
| 34 | def bsp_make_vars(d): | 35 | def bsp_make_vars(d): |
| @@ -36,7 +37,7 @@ def bsp_make_vars(d): | |||
| 36 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | 37 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) |
| 37 | 38 | ||
| 38 | do_compile() { | 39 | do_compile() { |
| 39 | # the Makefile in ${S}/../misc/Makefile, does not handle CC, AR, AS, etc | 40 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc |
| 40 | # properly. So do its job manually. Preparing the includes first, then libs. | 41 | # properly. So do its job manually. Preparing the includes first, then libs. |
| 41 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | 42 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do |
| 42 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} | 43 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} |
diff --git a/meta-xilinx-standalone/recipes-standalone/psm-firmware/psm-firmware_2020.2.bb b/meta-xilinx-standalone/recipes-standalone/psm-firmware/psm-firmware_2020.2.bb index cd346b12..4466a748 100644 --- a/meta-xilinx-standalone/recipes-standalone/psm-firmware/psm-firmware_2020.2.bb +++ b/meta-xilinx-standalone/recipes-standalone/psm-firmware/psm-firmware_2020.2.bb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | inherit deploy | 1 | inherit deploy |
| 2 | 2 | ||
| 3 | LICENSE = "Proprietary" | 3 | LICENSE = "Proprietary" |
| 4 | LIC_FILES_CHKSUM = "file://../../../../license.txt;md5=39ab6ab638f4d1836ba994ec6852de94" | 4 | LIC_FILES_CHKSUM = "file://license.txt;md5=39ab6ab638f4d1836ba994ec6852de94" |
| 5 | 5 | ||
| 6 | SRCREV = "e8db5fb118229fdc621e0ec7848641a23bf60998" | 6 | SRCREV = "e8db5fb118229fdc621e0ec7848641a23bf60998" |
| 7 | PV = "${XILINX_RELEASE_VERSION}+git${SRCPV}" | 7 | PV = "${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| @@ -12,7 +12,8 @@ COMPATIBLE_HOST = "microblaze.*-elf" | |||
| 12 | COMPATIBLE_MACHINE = "versal-mb" | 12 | COMPATIBLE_MACHINE = "versal-mb" |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/git/lib/sw_apps/versal_psmfw/src" | 15 | S = "${WORKDIR}/git" |
| 16 | B = "${S}/lib/sw_apps/versal_psmfw/src" | ||
| 16 | 17 | ||
| 17 | # The makefile does not handle parallelization | 18 | # The makefile does not handle parallelization |
| 18 | PARALLEL_MAKE = "" | 19 | PARALLEL_MAKE = "" |
| @@ -20,7 +21,7 @@ PARALLEL_MAKE = "" | |||
| 20 | do_configure() { | 21 | do_configure() { |
| 21 | # manually do the copy_bsp step first, so as to be able to fix up use of | 22 | # manually do the copy_bsp step first, so as to be able to fix up use of |
| 22 | # mb-* commands | 23 | # mb-* commands |
| 23 | ${S}/../misc/copy_bsp.sh | 24 | ${B}/../misc/copy_bsp.sh |
| 24 | } | 25 | } |
| 25 | 26 | ||
| 26 | COMPILER = "${CC}" | 27 | COMPILER = "${CC}" |
| @@ -28,7 +29,7 @@ COMPILER_FLAGS = "-O2 -c" | |||
| 28 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | 29 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 29 | ARCHIVER = "${AR}" | 30 | ARCHIVER = "${AR}" |
| 30 | 31 | ||
| 31 | BSP_DIR ?= "${S}/../misc/versal_psmfw_bsp" | 32 | BSP_DIR ?= "${B}/../misc/versal_psmfw_bsp" |
| 32 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psv_psm_0/libsrc" | 33 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psv_psm_0/libsrc" |
| 33 | 34 | ||
| 34 | def bsp_make_vars(d): | 35 | def bsp_make_vars(d): |
| @@ -36,7 +37,7 @@ def bsp_make_vars(d): | |||
| 36 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | 37 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) |
| 37 | 38 | ||
| 38 | do_compile() { | 39 | do_compile() { |
| 39 | # the Makefile in ${S}/../misc/Makefile, does not handle CC, AR, AS, etc | 40 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc |
| 40 | # properly. So do its job manually. Preparing the includes first, then libs. | 41 | # properly. So do its job manually. Preparing the includes first, then libs. |
| 41 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | 42 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do |
| 42 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} | 43 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} |
