summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2021-02-24 08:09:27 -0800
committerMark Hatle <mark.hatle@xilinx.com>2021-03-05 10:11:04 -0800
commit6a18fa8eb2875e0731f5ff41c86e1491f604aae1 (patch)
tree30a2837fcb29bacb9c624de81f612dabe0c5b038
parentdb9379e478d09e4e47638e368f3bbf429b132f82 (diff)
downloadmeta-xilinx-6a18fa8eb2875e0731f5ff41c86e1491f604aae1.tar.gz
embeddedsw: Update for git master tracking version
Add a new plm/pmu/psm version (non-default) to track upstream embeddedsw for easier development. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw.inc13
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb56
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb48
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb56
4 files changed, 167 insertions, 6 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw.inc
index 49bbcae9..008dfef7 100644
--- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw.inc
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw.inc
@@ -7,6 +7,7 @@ ESW_BRANCH[2019.1] = "release-2019.1"
7ESW_BRANCH[2019.2] = "release-2019.2" 7ESW_BRANCH[2019.2] = "release-2019.2"
8ESW_BRANCH[2020.1] = "release-2020.1" 8ESW_BRANCH[2020.1] = "release-2020.1"
9ESW_BRANCH[2020.2] = "master-rel-2020.2" 9ESW_BRANCH[2020.2] = "master-rel-2020.2"
10ESW_BRANCH[git] = "master"
10BRANCH ??= "${@d.getVarFlag('ESW_BRANCH', d.getVar('ESW_VER')) or '${ESW_VER}'}" 11BRANCH ??= "${@d.getVarFlag('ESW_BRANCH', d.getVar('ESW_VER')) or '${ESW_VER}'}"
11 12
12ESW_REV[2019.1] = "26c14d9861010a0e3a55c73fb79efdb816eb42ca" 13ESW_REV[2019.1] = "26c14d9861010a0e3a55c73fb79efdb816eb42ca"
@@ -19,12 +20,12 @@ EMBEDDEDSW_BRANCHARG ?= "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH'
19EMBEDDEDSW_SRCURI ?= "${REPO};${EMBEDDEDSW_BRANCHARG}" 20EMBEDDEDSW_SRCURI ?= "${REPO};${EMBEDDEDSW_BRANCHARG}"
20 21
21LICENSE = "MIT" 22LICENSE = "MIT"
22LIC_FILES_CHKSUM[2019.1] = 'e9b6d01d45faccfbf05d8caea53f0a35' 23LIC_FILES_CHKSUM[release-2019.1] = 'e9b6d01d45faccfbf05d8caea53f0a35'
23LIC_FILES_CHKSUM[2019.2] = '39ab6ab638f4d1836ba994ec6852de94' 24LIC_FILES_CHKSUM[release-2019.2] = '39ab6ab638f4d1836ba994ec6852de94'
24LIC_FILES_CHKSUM[2020.1] = '8b565227e1264d677db8f841c2948cba' 25LIC_FILES_CHKSUM[release-2020.1] = '8b565227e1264d677db8f841c2948cba'
25LIC_FILES_CHKSUM[2020.2] = '3a6e22aebf6516f0f74a82e1183f74f8' 26LIC_FILES_CHKSUM[master-rel-2020.2] = '3a6e22aebf6516f0f74a82e1183f74f8'
26LIC_FILES_CHKSUM[master] = '3a6e22aebf6516f0f74a82e1183f74f8' 27LIC_FILES_CHKSUM[master] = '3a6e22aebf6516f0f74a82e1183f74f8'
27LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', d.getVar('ESW_VER')) or '0'}" 28LIC_FILES_CHKSUM ??= "file://license.txt;md5=${@d.getVarFlag('LIC_FILES_CHKSUM', d.getVar('BRANCH')) or '0'}"
28 29
29SRC_URI = "${EMBEDDEDSW_SRCURI}" 30SRC_URI = "${EMBEDDEDSW_SRCURI}"
30PV = "${ESW_VER}+git${SRCPV}" 31PV = "${ESW_VER}+git${SRCPV}"
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb
new file mode 100644
index 00000000..e1c2873c
--- /dev/null
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb
@@ -0,0 +1,56 @@
1# Only should be used for development
2DEFAULT_PREFERENCE = "-1"
3
4require plm-firmware.inc
5
6SRC_URI += " \
7 file://0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch \
8 file://0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch \
9 file://0001-sw_apps-versal_plm-Changes-to-ensure-versionless-bui.patch \
10 file://0001-versal_psmfw-misc-Update-makefile-for-version-less-b.patch \
11 file://zynqmp_pmufw-fixup.patch \
12 file://makefile-skip-copy_bsp.sh.patch \
13 "
14
15do_configure() {
16 # manually do the copy_bsp step first, so as to be able to fix up use of
17 # mb-* commands
18 . ${B}/../misc/copy_bsp.sh
19 echo "$BSP_SEQUENTIAL_MAKEFILES" > ${B}/seq.mak
20}
21
22do_compile() {
23 # First process the sequential items
24 for i in $(cat seq.mak); do
25 echo Include Seq: $i
26 if [ ! -d $i ]; then
27 echo "Skipping...."
28 continue
29 fi
30 oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)}
31 done
32 for i in $(cat seq.mak); do
33 echo Libs Seq: $i
34 if [ ! -d $i ]; then
35 echo "Skipping...."
36 continue
37 fi
38 oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)}
39 done
40
41 # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc
42 # properly. So do its job manually. Preparing the includes first, then libs.
43 for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do
44 echo Include: $i
45 oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)}
46 done
47 for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do
48 echo Libs: $i
49 oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)}
50 done
51
52 # --build-id=none is required due to linker script not defining a location for it.
53 # Again, recipe-systoot include is necessary
54 echo Construct: executable
55 oe_runmake plm.elf ${@bsp_make_vars(d)} CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include"
56}
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb
new file mode 100644
index 00000000..f8975141
--- /dev/null
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb
@@ -0,0 +1,48 @@
1# Only should be used for development
2DEFAULT_PREFERENCE = "-1"
3
4require pmu-firmware.inc
5
6SRC_URI += " \
7 file://0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch \
8 file://0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch \
9 file://0001-sw_apps-versal_plm-Changes-to-ensure-versionless-bui.patch \
10 file://0001-versal_psmfw-misc-Update-makefile-for-version-less-b.patch \
11 file://zynqmp_pmufw-fixup.patch \
12 file://makefile-skip-copy_bsp.sh.patch \
13 "
14
15do_configure() {
16 # manually do the copy_bsp step first, so as to be able to fix up use of
17 # mb-* commands
18 . ${B}/../misc/copy_bsp.sh
19 echo "$BSP_SEQUENTIAL_MAKEFILES" > ${B}/seq.mak
20}
21
22do_compile() {
23 # First process the sequential items
24 for i in $(cat seq.mak); do
25 echo Include Seq: $i
26 oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)}
27 done
28 for i in $(cat seq.mak); do
29 echo Libs Seq: $i
30 oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)}
31 done
32
33 # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc
34 # properly. So do its job manually. Preparing the includes first, then libs.
35 for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do
36 echo Include: $i
37 oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)}
38 done
39 for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do
40 echo Libs: $i
41 oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)}
42 done
43
44 # --build-id=none is required due to linker script not defining a location for it.
45 # Again, recipe-systoot include is necessary
46 echo Construct: executable
47 oe_runmake executable.elf ${@bsp_make_vars(d)} CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include"
48}
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb
new file mode 100644
index 00000000..21ef13b5
--- /dev/null
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb
@@ -0,0 +1,56 @@
1# Only should be used for development
2DEFAULT_PREFERENCE = "-1"
3
4require psm-firmware.inc
5
6SRC_URI += " \
7 file://0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch \
8 file://0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch \
9 file://0001-sw_apps-versal_plm-Changes-to-ensure-versionless-bui.patch \
10 file://0001-versal_psmfw-misc-Update-makefile-for-version-less-b.patch \
11 file://zynqmp_pmufw-fixup.patch \
12 file://makefile-skip-copy_bsp.sh.patch \
13 "
14
15do_configure() {
16 # manually do the copy_bsp step first, so as to be able to fix up use of
17 # mb-* commands
18 . ${B}/../misc/copy_bsp.sh
19 echo "$BSP_SEQUENTIAL_MAKEFILES" > ${B}/seq.mak
20}
21
22do_compile() {
23 # First process the sequential items
24 for i in $(cat seq.mak); do
25 echo Include Seq: $i
26 if [ ! -d $i ]; then
27 echo "Skipping...."
28 continue
29 fi
30 oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)}
31 done
32 for i in $(cat seq.mak); do
33 echo Libs Seq: $i
34 if [ ! -d $i ]; then
35 echo "Skipping...."
36 continue
37 fi
38 oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)}
39 done
40
41 # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc
42 # properly. So do its job manually. Preparing the includes first, then libs.
43 for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do
44 echo Include: $i
45 oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)}
46 done
47 for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do
48 echo Libs: $i
49 oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)}
50 done
51
52 # --build-id=none is required due to linker script not defining a location for it.
53 # Again, recipe-systoot include is necessary
54 echo Construct: executable
55 oe_runmake psmfw.elf ${@bsp_make_vars(d)} CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include"
56}