diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2024-05-24 13:14:08 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-05-28 14:27:00 -0600 |
| commit | 7f01ed10dca3df87950c5442feb104c5cb939160 (patch) | |
| tree | b91aed57c5458ff1a886c3e9c41eafbd7c60e3ad /meta-xilinx-standalone | |
| parent | 68e1b00e1c405017747aa1468292cefd391a724d (diff) | |
| download | meta-xilinx-7f01ed10dca3df87950c5442feb104c5cb939160.tar.gz | |
embeddedsw: Rework fsbl, pmu, plm and psm code
Clenaup and rework the code so that the 'generic' implementation no longers
affects xsct, or SDT (or future) variations.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone')
81 files changed, 962 insertions, 1207 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-sw_apps-versal_plm-Changes-to-ensure-versionless-bui.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-sw_apps-versal_plm-Changes-to-ensure-versionless-bui.patch deleted file mode 100644 index 0dbe68dc..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-sw_apps-versal_plm-Changes-to-ensure-versionless-bui.patch +++ /dev/null | |||
| @@ -1,261 +0,0 @@ | |||
| 1 | From 3b706021d06b9dbbe5848e524da09b527f75ad4f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "b.vikram@xilinx.com" <b.vikram@xilinx.com> | ||
| 3 | Date: Thu, 11 Feb 2021 23:20:31 +0530 | ||
| 4 | Subject: [PATCH] sw_apps :versal_plm: Changes to ensure versionless build | ||
| 5 | works with yocto flow | ||
| 6 | |||
| 7 | The syntax of updating BSP_SEQUENTIAL_FILES variable in copy_bsp.sh is updated. | ||
| 8 | Using COMPILER, ARCHIVER and AASEMBLER variables in bsp Makefile instead of | ||
| 9 | hardcoding them. This would help yocto flow as it does not use mb-gcc. | ||
| 10 | |||
| 11 | Signed-off-by: Vikram Sreenivasa Batchali <b.vikram@xilinx.com> | ||
| 12 | Acked-by: Krishna Chaitanya Patakamuri <krishna.chaitanya.patakamuri@xilinx.com> | ||
| 13 | --- | ||
| 14 | lib/sw_apps/versal_plm/misc/Makefile | 10 ++++++---- | ||
| 15 | lib/sw_apps/versal_plm/misc/copy_bsp.sh | 16 ++++++++-------- | ||
| 16 | lib/sw_apps/zynq_fsbl/misc/copy_bsp.sh | 6 +++--- | ||
| 17 | lib/sw_apps/zynqmp_fsbl/misc/copy_bsp.sh | 8 ++++---- | ||
| 18 | lib/sw_apps/zynqmp_pmufw/misc/Makefile | 10 ++++++---- | ||
| 19 | lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | 8 ++++---- | ||
| 20 | 6 files changed, 31 insertions(+), 27 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/lib/sw_apps/versal_plm/misc/Makefile b/lib/sw_apps/versal_plm/misc/Makefile | ||
| 23 | index 23ac27b52b..d1be4ffc8e 100644 | ||
| 24 | --- a/lib/sw_apps/versal_plm/misc/Makefile | ||
| 25 | +++ b/lib/sw_apps/versal_plm/misc/Makefile | ||
| 26 | @@ -1,5 +1,7 @@ | ||
| 27 | # Makefile generated by Xilinx. | ||
| 28 | - | ||
| 29 | +COMPILER := mb-gcc | ||
| 30 | +ARCHIVER := mb-gcc-ar | ||
| 31 | +ASSEMBLER := mb-as | ||
| 32 | DRIVER_LIB_VERSION = 1.0 | ||
| 33 | PROCESSOR = psv_pmc_0 | ||
| 34 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | ||
| 35 | @@ -28,7 +30,7 @@ par_libs: $(addsuffix /make.libs,$(PAR_SUBDIRS)) | ||
| 36 | @echo 'Finished building libraries parallelly.' | ||
| 37 | |||
| 38 | archive: | ||
| 39 | - mb-gcc-ar -r $(LIBRARIES) $(wildcard $(PROCESSOR)/lib/*.o) | ||
| 40 | + $(ARCHIVER) -r $(LIBRARIES) $(wildcard $(PROCESSOR)/lib/*.o) | ||
| 41 | |||
| 42 | clean: $(addsuffix /make.clean,$(SUBDIRS)) | ||
| 43 | rm -f ${PROCESSOR}/lib/libxil.a | ||
| 44 | @@ -38,11 +40,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 45 | |||
| 46 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 47 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 48 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-gcc-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 49 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 50 | |||
| 51 | %/make.libs: include | ||
| 52 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 53 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-gcc-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 54 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 55 | |||
| 56 | %/make.clean: | ||
| 57 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 58 | diff --git a/lib/sw_apps/versal_plm/misc/copy_bsp.sh b/lib/sw_apps/versal_plm/misc/copy_bsp.sh | ||
| 59 | index 2e4e393b5d..4f082de37c 100755 | ||
| 60 | --- a/lib/sw_apps/versal_plm/misc/copy_bsp.sh | ||
| 61 | +++ b/lib/sw_apps/versal_plm/misc/copy_bsp.sh | ||
| 62 | @@ -48,33 +48,33 @@ fi | ||
| 63 | mkdir -p $BSP_DIR/libsrc/xilffs | ||
| 64 | cp -r $SERVICES_DIR/xilffs/src $BSP_DIR/libsrc/xilffs/ | ||
| 65 | cp -r $SERVICES_DIR/xilffs/src/include/* $BSP_DIR/include/ | ||
| 66 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilffs/src/Makefile | ||
| 67 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilffs/src/Makefile" | ||
| 68 | |||
| 69 | mkdir -p $BSP_DIR/libsrc/xilpdi | ||
| 70 | cp -r $SERVICES_DIR/xilpdi/src $BSP_DIR/libsrc/xilpdi/ | ||
| 71 | cp -r $SERVICES_DIR/xilpdi/src/*.h $BSP_DIR/include/ | ||
| 72 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilpdi/src/Makefile | ||
| 73 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilpdi/src/Makefile" | ||
| 74 | |||
| 75 | mkdir -p $BSP_DIR/libsrc/xilplmi | ||
| 76 | cp -r $SERVICES_DIR/xilplmi/src $BSP_DIR/libsrc/xilplmi/ | ||
| 77 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilplmi/src/Makefile | ||
| 78 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilplmi/src/Makefile" | ||
| 79 | |||
| 80 | mkdir -p $BSP_DIR/libsrc/xilpuf | ||
| 81 | cp -r $SERVICES_DIR/xilpuf/src $BSP_DIR/libsrc/xilpuf/ | ||
| 82 | cp -r $SERVICES_DIR/xilpuf/src/*.h $BSP_DIR/include/ | ||
| 83 | -set SP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilpuf/src/Makefile | ||
| 84 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilpuf/src/Makefile" | ||
| 85 | |||
| 86 | mkdir -p $BSP_DIR/libsrc/xilloader | ||
| 87 | cp -r $SERVICES_DIR/xilloader/src $BSP_DIR/libsrc/xilloader/ | ||
| 88 | cp -r $SERVICES_DIR/xilloader/src/*.h $BSP_DIR/include/ | ||
| 89 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilloader/src/Makefile | ||
| 90 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilloader/src/Makefile" | ||
| 91 | |||
| 92 | mkdir -p $BSP_DIR/libsrc/xilpm/src/ | ||
| 93 | cp -r $SERVICES_DIR/xilpm/src/versal/common/* $BSP_DIR/libsrc/xilpm/src/ | ||
| 94 | cp -r $SERVICES_DIR/xilpm/src/versal/server/* $BSP_DIR/libsrc/xilpm/src/ | ||
| 95 | cp -r $SERVICES_DIR/xilpm/src/versal/common/*.h $BSP_DIR/include/ | ||
| 96 | cp -r $SERVICES_DIR/xilpm/src/versal/server/*.h $BSP_DIR/include/ | ||
| 97 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilpm/src/versal/common/Makefile | ||
| 98 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilpm/src/versal/common/Makefile" | ||
| 99 | |||
| 100 | mkdir -p $BSP_DIR/libsrc/xilsecure/src/ | ||
| 101 | cp -r $SERVICES_DIR/xilsecure/src/Makefile $BSP_DIR/libsrc/xilsecure/src/ | ||
| 102 | @@ -84,7 +84,7 @@ cp -r $SERVICES_DIR/xilsecure/src/common/*.h $BSP_DIR/include/ | ||
| 103 | cp -r $SERVICES_DIR/xilsecure/src/versal/*.h $BSP_DIR/include/ | ||
| 104 | mv $BSP_DIR/libsrc/xilsecure/src/libxilsecure_pmc.a $BSP_DIR/libsrc/xilsecure/src/libxilsecure.a | ||
| 105 | rm $BSP_DIR/libsrc/xilsecure/src/libxilsecure_*.a | ||
| 106 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilsecure/src/Makefile | ||
| 107 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilsecure/src/Makefile" | ||
| 108 | |||
| 109 | mkdir -p $BSP_DIR/libsrc/xilsem | ||
| 110 | cp -r $SERVICES_DIR/xilsem/src $BSP_DIR/libsrc/xilsem/ | ||
| 111 | @@ -116,7 +116,7 @@ do | ||
| 112 | cp -r $DRIVERS_DIR/$line/src/*.h $BSP_DIR/include/ | ||
| 113 | # copy all the HSM generated driver files DRIVER_g.c | ||
| 114 | cp $WORKING_DIR/x"$line"_g.c $BSP_DIR/libsrc/$line/src/ | ||
| 115 | - set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/$line/src/Makefile | ||
| 116 | + BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/$line/src/Makefile" | ||
| 117 | done < $DRIVERS_LIST | ||
| 118 | |||
| 119 | #copy the processor code. | ||
| 120 | diff --git a/lib/sw_apps/zynq_fsbl/misc/copy_bsp.sh b/lib/sw_apps/zynq_fsbl/misc/copy_bsp.sh | ||
| 121 | index 70dae119b2..70a83ffd50 100755 | ||
| 122 | --- a/lib/sw_apps/zynq_fsbl/misc/copy_bsp.sh | ||
| 123 | +++ b/lib/sw_apps/zynq_fsbl/misc/copy_bsp.sh | ||
| 124 | @@ -75,18 +75,18 @@ do | ||
| 125 | cp -r $DRIVERS_DIR/$line/src $BSP_DIR/libsrc/$line | ||
| 126 | # copy all the HSM generated driver files DRIVER_g.c | ||
| 127 | # cp $BOARD_DIR/x"$line"_g.c $BSP_DIR/libsrc/$line/src/ | ||
| 128 | - set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/$line/src/Makefile | ||
| 129 | + BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/$line/src/Makefile" | ||
| 130 | |||
| 131 | done < $DRIVERS_LIST | ||
| 132 | |||
| 133 | # copy the libraries required | ||
| 134 | cp -r $SERVICES_DIR/xilffs/ $BSP_DIR/libsrc/ | ||
| 135 | cp -r $SERVICES_DIR/xilffs/src/include/* $BSP_DIR/include/ | ||
| 136 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilffs/src/Makefile | ||
| 137 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilffs/src/Makefile" | ||
| 138 | |||
| 139 | cp -r $SERVICES_DIR/xilrsa/ $BSP_DIR/libsrc/ | ||
| 140 | cp -r $SERVICES_DIR/xilrsa/src/include/* $BSP_DIR/include/ | ||
| 141 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilrsa/src/Makefile | ||
| 142 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilrsa/src/Makefile" | ||
| 143 | |||
| 144 | #copy the xparameters.h | ||
| 145 | cp $BOARD_DIR/xparameters.h $BSP_DIR/include/ | ||
| 146 | diff --git a/lib/sw_apps/zynqmp_fsbl/misc/copy_bsp.sh b/lib/sw_apps/zynqmp_fsbl/misc/copy_bsp.sh | ||
| 147 | index 8cc6e3a66e..120aeb8fc7 100755 | ||
| 148 | --- a/lib/sw_apps/zynqmp_fsbl/misc/copy_bsp.sh | ||
| 149 | +++ b/lib/sw_apps/zynqmp_fsbl/misc/copy_bsp.sh | ||
| 150 | @@ -65,7 +65,7 @@ fi | ||
| 151 | mkdir -p $BSP_DIR/libsrc/xilffs | ||
| 152 | cp -r $SERVICES_DIR/xilffs/src $BSP_DIR/libsrc/xilffs/ | ||
| 153 | cp -r $SERVICES_DIR/xilffs/src/include/* $BSP_DIR/include/ | ||
| 154 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilffs/src/Makefile | ||
| 155 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilffs/src/Makefile" | ||
| 156 | |||
| 157 | mkdir -p $BSP_DIR/libsrc/xilsecure/src/ | ||
| 158 | cp -r $SERVICES_DIR/xilsecure/src/Makefile $BSP_DIR/libsrc/xilsecure/src/ | ||
| 159 | @@ -73,13 +73,13 @@ cp -r $SERVICES_DIR/xilsecure/src/common/* $BSP_DIR/libsrc/xilsecure/src/ | ||
| 160 | cp -r $SERVICES_DIR/xilsecure/src/zynqmp/* $BSP_DIR/libsrc/xilsecure/src/ | ||
| 161 | cp -r $SERVICES_DIR/xilsecure/src/common/*.h $BSP_DIR/include/ | ||
| 162 | cp -r $SERVICES_DIR/xilsecure/src/zynqmp/*.h $BSP_DIR/include/ | ||
| 163 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilsecure/src/Makefile | ||
| 164 | +BSP_SEQUENTIAL_MAKEFILES="BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilsecure/src/Makefile" | ||
| 165 | |||
| 166 | cp -r $SERVICES_DIR/xilpm/ $BSP_DIR/libsrc/ | ||
| 167 | cp -r $SERVICES_DIR/xilpm/src/zynqmp/client/common/* $BSP_DIR/libsrc/xilpm/src/ | ||
| 168 | cp -r $SERVICES_DIR/xilpm/src/zynqmp/client/common/*.h $BSP_DIR/include/ | ||
| 169 | cp $WORKING_DIR/pm_cfg_obj.c $BSP_DIR/libsrc/xilpm/src/ | ||
| 170 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilpm/src/zynqmp/client/common/Makefile | ||
| 171 | +BSP_SEQUENTIAL_MAKEFILES="BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilpm/src/zynqmp/client/common/Makefile" | ||
| 172 | |||
| 173 | rm -rf $BSP_DIR/libsrc/xilpm/src/zynqmp/ | ||
| 174 | rm -rf $BSP_DIR/libsrc/xilpm/src/versal/ | ||
| 175 | @@ -161,7 +161,7 @@ do | ||
| 176 | |||
| 177 | # copy all the HSM generated driver files DRIVER_g.c | ||
| 178 | # cp $BOARD_DIR/x"$line"_g.c $BSP_DIR/libsrc/$line/src/ | ||
| 179 | - set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/$line/src/Makefile | ||
| 180 | + BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/$line/src/Makefile" | ||
| 181 | |||
| 182 | done < $DRIVERS_LIST | ||
| 183 | |||
| 184 | diff --git a/lib/sw_apps/zynqmp_pmufw/misc/Makefile b/lib/sw_apps/zynqmp_pmufw/misc/Makefile | ||
| 185 | index 142581b2b9..a773498512 100644 | ||
| 186 | --- a/lib/sw_apps/zynqmp_pmufw/misc/Makefile | ||
| 187 | +++ b/lib/sw_apps/zynqmp_pmufw/misc/Makefile | ||
| 188 | @@ -1,5 +1,7 @@ | ||
| 189 | # Makefile generated by Xilinx. | ||
| 190 | - | ||
| 191 | +COMPILER := mb-gcc | ||
| 192 | +ARCHIVER := mb-gcc-ar | ||
| 193 | +ASSEMBLER := mb-as | ||
| 194 | DRIVER_LIB_VERSION = 1.0 | ||
| 195 | PROCESSOR = psu_pmu_0 | ||
| 196 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | ||
| 197 | @@ -28,7 +30,7 @@ par_libs: $(addsuffix /make.libs,$(PAR_SUBDIRS)) | ||
| 198 | @echo 'Finished building libraries parallelly.' | ||
| 199 | |||
| 200 | archive: | ||
| 201 | - mb-gcc-ar -r $(LIBRARIES) $(wildcard $(PROCESSOR)/lib/*.o) | ||
| 202 | + $(ARCHIVER) -r $(LIBRARIES) $(wildcard $(PROCESSOR)/lib/*.o) | ||
| 203 | |||
| 204 | clean: $(addsuffix /make.clean,$(SUBDIRS)) | ||
| 205 | rm -f ${PROCESSOR}/lib/libxil.a | ||
| 206 | @@ -38,11 +40,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 207 | |||
| 208 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 209 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 210 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 211 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 212 | |||
| 213 | %/make.libs: include | ||
| 214 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 215 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 216 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 217 | |||
| 218 | %/make.clean: | ||
| 219 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 220 | diff --git a/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh b/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | ||
| 221 | index c683e4f73d..be8616968e 100755 | ||
| 222 | --- a/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | ||
| 223 | +++ b/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | ||
| 224 | @@ -52,14 +52,14 @@ cp -r $SERVICES_DIR/xilfpga/src/interface/zynqmp/xilfpga_pcap.c $BSP_DIR/libsrc/ | ||
| 225 | cp -r $SERVICES_DIR/xilfpga/src/*.h $BSP_DIR/include/ | ||
| 226 | cp -r $SERVICES_DIR/xilfpga/src/interface/zynqmp/*.h $BSP_DIR/include/ | ||
| 227 | rm -r $BSP_DIR/libsrc/xilfpga/src/interface/ | ||
| 228 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilfpga/src/Makefile | ||
| 229 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilfpga/src/Makefile" | ||
| 230 | mkdir -p $BSP_DIR/libsrc/xilsecure/src/ | ||
| 231 | cp -r $SERVICES_DIR/xilsecure/src/Makefile $BSP_DIR/libsrc/xilsecure/src/ | ||
| 232 | cp -r $SERVICES_DIR/xilsecure/src/common/* $BSP_DIR/libsrc/xilsecure/src/ | ||
| 233 | cp -r $SERVICES_DIR/xilsecure/src/zynqmp/* $BSP_DIR/libsrc/xilsecure/src/ | ||
| 234 | cp -r $SERVICES_DIR/xilsecure/src/common/*.h $BSP_DIR/include/ | ||
| 235 | cp -r $SERVICES_DIR/xilsecure/src/zynqmp/*.h $BSP_DIR/include/ | ||
| 236 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilsecure/src/Makefile | ||
| 237 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilsecure/src/Makefile" | ||
| 238 | cp -r $SERVICES_DIR/xilskey/ $BSP_DIR/libsrc/ | ||
| 239 | |||
| 240 | # remove the xilskey library files which are not required for PMU | ||
| 241 | @@ -81,7 +81,7 @@ rm -r $BSP_DIR/libsrc/xilskey/src/include/xilskey_bbram.h | ||
| 242 | # copy the xilskey library header files to include directory | ||
| 243 | cp -r $BSP_DIR/libsrc/xilskey/src/*.h $BSP_DIR/include/ | ||
| 244 | cp -r $BSP_DIR/libsrc/xilskey/src/include/*.h $BSP_DIR/include/ | ||
| 245 | -set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/xilskey/src/Makefile | ||
| 246 | +BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilskey/src/Makefile" | ||
| 247 | |||
| 248 | # copy bsp standalone code | ||
| 249 | cp $STANDALONE_DIR/common/* $BSP_DIR/libsrc/standalone/src/ | ||
| 250 | @@ -108,7 +108,7 @@ do | ||
| 251 | cp -r $DRIVERS_DIR/$line/src/*.h $BSP_DIR/include/ | ||
| 252 | # copy all the HSM generated driver files DRIVER_g.c | ||
| 253 | cp $WORKING_DIR/x"$line"_g.c $BSP_DIR/libsrc/$line/src/ | ||
| 254 | - set BSP_SEQUENTIAL_MAKEFILES += $BSP_DIR/libsrc/$line/src/Makefile | ||
| 255 | + BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/$line/src/Makefile" | ||
| 256 | |||
| 257 | done < $DRIVERS_LIST | ||
| 258 | |||
| 259 | -- | ||
| 260 | 2.17.1 | ||
| 261 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_psmfw-misc-Update-makefile-for-version-less-b.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_psmfw-misc-Update-makefile-for-version-less-b.patch deleted file mode 100644 index 295d59bb..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_psmfw-misc-Update-makefile-for-version-less-b.patch +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | From 79e17afd2c943c53978dceab2f8fd17cba8994ec Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 3 | Date: Mon, 15 Feb 2021 22:53:37 -0800 | ||
| 4 | Subject: [PATCH] versal_psmfw: misc: Update makefile for version less build | ||
| 5 | with yocto | ||
| 6 | |||
| 7 | Use COMPILER, ARCHIVER and ASSEMBLER variables in Makefile instead of | ||
| 8 | hard coding them. This would help yocto flow as it does not use | ||
| 9 | mb-gcc. | ||
| 10 | |||
| 11 | Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 12 | Acked-by: Nicole Baze <nicole.baze@xilinx.com> | ||
| 13 | --- | ||
| 14 | lib/sw_apps/versal_psmfw/misc/Makefile | 9 ++++++--- | ||
| 15 | 1 file changed, 6 insertions(+), 3 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/lib/sw_apps/versal_psmfw/misc/Makefile b/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 18 | index 6374302f5c..2164c19f03 100644 | ||
| 19 | --- a/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 20 | +++ b/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 21 | @@ -8,6 +8,9 @@ SUBDIRS := $(patsubst %/Makefile, %, $(BSP_MAKEFILES)) | ||
| 22 | BSP_PARALLEL_MAKEFILES := $(filter-out $(BSP_SEQUENTIAL_MAKEFILES),$(BSP_MAKEFILES)) | ||
| 23 | SEQ_SUBDIRS := $(patsubst %/Makefile, %, $(BSP_SEQUENTIAL_MAKEFILES)) | ||
| 24 | PAR_SUBDIRS := $(patsubst %/Makefile, %, $(BSP_PARALLEL_MAKEFILES)) | ||
| 25 | +COMPILER := mb-gcc | ||
| 26 | +ARCHIVER := mb-ar | ||
| 27 | +ASSEMBLER := mb-as | ||
| 28 | |||
| 29 | ifneq (,$(findstring win,$(RDI_PLATFORM))) | ||
| 30 | SHELL = CMD | ||
| 31 | @@ -28,7 +31,7 @@ par_libs: $(addsuffix /make.libs,$(PAR_SUBDIRS)) | ||
| 32 | @echo 'Finished building libraries parallelly.' | ||
| 33 | |||
| 34 | archive: | ||
| 35 | - mb-ar -r $(LIBRARIES) $(wildcard $(PROCESSOR)/lib/*.o) | ||
| 36 | + $(ARCHIVER) -r $(LIBRARIES) $(wildcard $(PROCESSOR)/lib/*.o) | ||
| 37 | |||
| 38 | clean: $(addsuffix /make.clean,$(SUBDIRS)) | ||
| 39 | rm -f ${PROCESSOR}/lib/libxil.a | ||
| 40 | @@ -38,11 +41,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 41 | |||
| 42 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 43 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 44 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 45 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 46 | |||
| 47 | %/make.libs: include | ||
| 48 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 49 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 50 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 51 | |||
| 52 | %/make.clean: | ||
| 53 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 54 | -- | ||
| 55 | 2.17.1 | ||
| 56 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_psmfw-misc-Update-mcpu-version-in-Makefile.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_psmfw-misc-Update-mcpu-version-in-Makefile.patch deleted file mode 100644 index 072691d8..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_psmfw-misc-Update-mcpu-version-in-Makefile.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | From 7b5cd70e8d77f5df345a2f1a29e09a51af248040 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 3 | Date: Fri, 26 Feb 2021 02:30:28 -0800 | ||
| 4 | Subject: [PATCH] versal_psmfw: misc: Update mcpu version in Makefile | ||
| 5 | |||
| 6 | Use -mcpu=v10.0 instead of -mcpu=v as -mcpu=v is not defined and | ||
| 7 | PSM is using v10.0. | ||
| 8 | |||
| 9 | Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 10 | Acked-by: Nicole Baze <nicole.baze@xilinx.com> | ||
| 11 | --- | ||
| 12 | lib/sw_apps/versal_psmfw/misc/Makefile | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/lib/sw_apps/versal_psmfw/misc/Makefile b/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 16 | index 2164c19f03..02d85e492e 100644 | ||
| 17 | --- a/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 18 | +++ b/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 19 | @@ -41,11 +41,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 20 | |||
| 21 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 22 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 23 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 24 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 25 | |||
| 26 | %/make.libs: include | ||
| 27 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 28 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 29 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 30 | |||
| 31 | %/make.clean: | ||
| 32 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 33 | -- | ||
| 34 | 2.17.1 | ||
| 35 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch deleted file mode 100644 index a5d0894a..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 27d08d91eedb77c28e7776d0ccf6b92d79d3b6bb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 3 | Date: Mon, 15 Feb 2021 22:47:13 -0800 | ||
| 4 | Subject: [PATCH] zynqmp_pmufw: Correct structure header of PmResetOps | ||
| 5 | |||
| 6 | Update structure header of PmResetOps for using resetAssert instead | ||
| 7 | of assert. | ||
| 8 | |||
| 9 | Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 10 | Acked-by: Mounika Akula <mounika.akula@xilinx.com> | ||
| 11 | --- | ||
| 12 | lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c b/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | ||
| 16 | index bcd8aa73db..a693eb4196 100644 | ||
| 17 | --- a/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | ||
| 18 | +++ b/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | ||
| 19 | @@ -29,7 +29,7 @@ | ||
| 20 | |||
| 21 | /** | ||
| 22 | * PmResetOps - Reset operations | ||
| 23 | - * @assert Assert or release reset line | ||
| 24 | + * @resetAssert Assert or release reset line | ||
| 25 | * @getStatus Get current status of reset line | ||
| 26 | * @pulse Function performing reset pulse operation | ||
| 27 | */ | ||
| 28 | -- | ||
| 29 | 2.17.1 | ||
| 30 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch deleted file mode 100644 index a0e67dfd..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch +++ /dev/null | |||
| @@ -1,93 +0,0 @@ | |||
| 1 | From 57a5a13ef730c5c46d9db159ed9b7a466cc70388 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 3 | Date: Wed, 27 Jan 2021 22:19:51 -0800 | ||
| 4 | Subject: [PATCH] zynqmp_pmufw: Fix reset ops for assert() | ||
| 5 | |||
| 6 | New compiler toolchain treats "assert" as a macro always. So rename | ||
| 7 | the existing "assert" variable to "resetAssert" in the codebase. | ||
| 8 | |||
| 9 | Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> | ||
| 10 | Acked-by: Ravi Patel <ravi.patel@xilinx.com> | ||
| 11 | Acked-by: Tejas Patel <tejas.patel@xilinx.com> | ||
| 12 | --- | ||
| 13 | lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | 20 ++++++++++---------- | ||
| 14 | 1 file changed, 10 insertions(+), 10 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c b/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | ||
| 17 | index c66aae4a0c..bcd8aa73db 100644 | ||
| 18 | --- a/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | ||
| 19 | +++ b/lib/sw_apps/zynqmp_pmufw/src/pm_reset.c | ||
| 20 | @@ -1,5 +1,5 @@ | ||
| 21 | /* | ||
| 22 | -* Copyright (c) 2014 - 2020 Xilinx, Inc. All rights reserved. | ||
| 23 | +* Copyright (c) 2014 - 2021 Xilinx, Inc. All rights reserved. | ||
| 24 | * SPDX-License-Identifier: MIT | ||
| 25 | */ | ||
| 26 | |||
| 27 | @@ -34,7 +34,7 @@ | ||
| 28 | * @pulse Function performing reset pulse operation | ||
| 29 | */ | ||
| 30 | typedef struct PmResetOps { | ||
| 31 | - void (*const assert)(const PmReset* const rst, const u32 action); | ||
| 32 | + void (*const resetAssert)(const PmReset* const rst, const u32 action); | ||
| 33 | u32 (*const getStatus)(const PmReset* const s); | ||
| 34 | u32 (*const pulse)(const PmReset* const rst); | ||
| 35 | } PmResetOps; | ||
| 36 | @@ -399,37 +399,37 @@ static u32 PmResetPulsePl(const PmReset* const rst) | ||
| 37 | } | ||
| 38 | |||
| 39 | static const PmResetOps pmResetOpsGeneric = { | ||
| 40 | - .assert = PmResetAssertGen, | ||
| 41 | + .resetAssert = PmResetAssertGen, | ||
| 42 | .getStatus = PmResetGetStatusGen, | ||
| 43 | .pulse = PmResetPulseGen, | ||
| 44 | }; | ||
| 45 | |||
| 46 | static const PmResetOps pmResetOpsGpo = { | ||
| 47 | - .assert = PmResetAssertGpo, | ||
| 48 | + .resetAssert = PmResetAssertGpo, | ||
| 49 | .getStatus = PmResetGetStatusGpo, | ||
| 50 | .pulse = PmResetPulseGpo, | ||
| 51 | }; | ||
| 52 | |||
| 53 | static const PmResetOps pmResetOpsRom = { | ||
| 54 | - .assert = PmResetAssertRom, | ||
| 55 | + .resetAssert = PmResetAssertRom, | ||
| 56 | .getStatus = PmResetGetStatusRom, | ||
| 57 | .pulse = PmResetPulseRom, | ||
| 58 | }; | ||
| 59 | |||
| 60 | static const PmResetOps pmResetOpsNoAssert = { | ||
| 61 | - .assert = NULL, | ||
| 62 | + .resetAssert = NULL, | ||
| 63 | .getStatus = PmResetGetStatusRom, | ||
| 64 | .pulse = PmResetPulseRom, | ||
| 65 | }; | ||
| 66 | |||
| 67 | static const PmResetOps pmResetOpsPl = { | ||
| 68 | - .assert = PmResetAssertPl, | ||
| 69 | + .resetAssert = PmResetAssertPl, | ||
| 70 | .getStatus = PmResetGetStatusPl, | ||
| 71 | .pulse = PmResetPulsePl, | ||
| 72 | }; | ||
| 73 | |||
| 74 | static const PmResetOps pmResetOpsGpioBankIO = { | ||
| 75 | - .assert = NULL, | ||
| 76 | + .resetAssert = NULL, | ||
| 77 | .getStatus = PmResetGetStatusGpioBankIOs, | ||
| 78 | .pulse = PmResetPulseGpioBankIOs, | ||
| 79 | }; | ||
| 80 | @@ -1885,8 +1885,8 @@ s32 PmResetDoAssert(const PmReset *reset, u32 action) | ||
| 81 | switch (action) { | ||
| 82 | case PM_RESET_ACTION_RELEASE: | ||
| 83 | case PM_RESET_ACTION_ASSERT: | ||
| 84 | - if (NULL != reset->ops->assert) { | ||
| 85 | - reset->ops->assert(reset, action); | ||
| 86 | + if (NULL != reset->ops->resetAssert) { | ||
| 87 | + reset->ops->resetAssert(reset, action); | ||
| 88 | } else { | ||
| 89 | status = XST_INVALID_PARAM; | ||
| 90 | } | ||
| 91 | -- | ||
| 92 | 2.17.1 | ||
| 93 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_fw-Fixup-core-makefiles.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/0001-versal_fw-Fixup-core-makefiles.patch index e49bc259..e49bc259 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/0001-versal_fw-Fixup-core-makefiles.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/0001-versal_fw-Fixup-core-makefiles.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/0001-xilpm-versal-Fixed-2023.1-compile-error.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/0001-xilpm-versal-Fixed-2023.1-compile-error.patch new file mode 100644 index 00000000..61fcf5a9 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/0001-xilpm-versal-Fixed-2023.1-compile-error.patch | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | From 3cd9d41953ebfe26d09dae231e7b7a0b3285be8d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jesus De Haro <jesus.de-haro@xilinx.com> | ||
| 3 | Date: Mon, 16 Jan 2023 20:59:06 -0800 | ||
| 4 | Subject: [PATCH] xilpm: versal: Fixed 2023.1 compile error | ||
| 5 | |||
| 6 | Added NULL check for pointer Device before attempting to dereference the pointer. | ||
| 7 | |||
| 8 | Signed-off-by: Jesus De Haro <jesus.de-haro@xilinx.com> | ||
| 9 | Acked-by: Nicole Baze <nicole.baze@xilinx.com> | ||
| 10 | (cherry picked from commit 2601b201e95ea0edab89342ee7137c74e88a8a79) | ||
| 11 | |||
| 12 | Backported to 2022.1 | ||
| 13 | |||
| 14 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
| 15 | --- | ||
| 16 | lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | 7 ++++++- | ||
| 17 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c b/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | ||
| 20 | index 13410f2224..f4743cc2a9 100644 | ||
| 21 | --- a/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | ||
| 22 | +++ b/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | ||
| 23 | @@ -1,5 +1,6 @@ | ||
| 24 | /****************************************************************************** | ||
| 25 | * Copyright (c) 2018 - 2020 Xilinx, Inc. All rights reserved. | ||
| 26 | +* Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. | ||
| 27 | * SPDX-License-Identifier: MIT | ||
| 28 | ******************************************************************************/ | ||
| 29 | |||
| 30 | @@ -696,7 +697,11 @@ XStatus XPmDomainIso_Control(u32 IsoIdx, u32 Enable) | ||
| 31 | done: | ||
| 32 | if ((IsoIdx <= (u32)XPM_NODEIDX_ISO_XRAM_PL_FABRIC) && | ||
| 33 | (IsoIdx >= (u32)XPM_NODEIDX_ISO_XRAM_PL_AXI0)) { | ||
| 34 | - XPmPsLpDomain_LockPcsr(Device->Node.BaseAddress); | ||
| 35 | + if(NULL != Device) { | ||
| 36 | + XPmPsLpDomain_LockPcsr(Device->Node.BaseAddress); | ||
| 37 | + } else { | ||
| 38 | + Status = XST_DEVICE_NOT_FOUND; | ||
| 39 | + } | ||
| 40 | } | ||
| 41 | |||
| 42 | return Status; | ||
| 43 | -- | ||
| 44 | 2.34.1 | ||
| 45 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/makefile-skip-copy_bsp.sh.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/makefile-skip-copy_bsp.sh.patch index 5b9cc71b..5b9cc71b 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/makefile-skip-copy_bsp.sh.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.1+git/makefile-skip-copy_bsp.sh.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2/0001-versal_fw-Fixup-core-makefiles.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/0001-versal_fw-Fixup-core-makefiles.patch index d6cb0e38..d6cb0e38 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2/0001-versal_fw-Fixup-core-makefiles.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/0001-versal_fw-Fixup-core-makefiles.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/0001-xilpm-versal-Fixed-2023.1-compile-error.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/0001-xilpm-versal-Fixed-2023.1-compile-error.patch new file mode 100644 index 00000000..3afa125c --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/0001-xilpm-versal-Fixed-2023.1-compile-error.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 2601b201e95ea0edab89342ee7137c74e88a8a79 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jesus De Haro <jesus.de-haro@xilinx.com> | ||
| 3 | Date: Mon, 16 Jan 2023 20:59:06 -0800 | ||
| 4 | Subject: [PATCH] xilpm: versal: Fixed 2023.1 compile error | ||
| 5 | |||
| 6 | Added NULL check for pointer Device before attempting to dereference the pointer. | ||
| 7 | |||
| 8 | Signed-off-by: Jesus De Haro <jesus.de-haro@xilinx.com> | ||
| 9 | Acked-by: Nicole Baze <nicole.baze@xilinx.com> | ||
| 10 | --- | ||
| 11 | lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | 7 ++++++- | ||
| 12 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c b/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | ||
| 15 | index fa571e0552..bd0aa89e12 100644 | ||
| 16 | --- a/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | ||
| 17 | +++ b/lib/sw_services/xilpm/src/versal/server/xpm_domain_iso.c | ||
| 18 | @@ -1,5 +1,6 @@ | ||
| 19 | /****************************************************************************** | ||
| 20 | * Copyright (c) 2018 - 2022 Xilinx, Inc. All rights reserved. | ||
| 21 | +* Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. | ||
| 22 | * SPDX-License-Identifier: MIT | ||
| 23 | ******************************************************************************/ | ||
| 24 | |||
| 25 | @@ -721,7 +722,11 @@ XStatus XPmDomainIso_Control(u32 IsoIdx, u32 Enable) | ||
| 26 | done: | ||
| 27 | if ((IsoIdx <= (u32)XPM_NODEIDX_ISO_XRAM_PL_FABRIC) && | ||
| 28 | (IsoIdx >= (u32)XPM_NODEIDX_ISO_XRAM_PL_AXI0)) { | ||
| 29 | - XPm_LockPcsr(Device->Node.BaseAddress); | ||
| 30 | + if(NULL != Device) { | ||
| 31 | + XPm_LockPcsr(Device->Node.BaseAddress); | ||
| 32 | + } else { | ||
| 33 | + Status = XST_DEVICE_NOT_FOUND; | ||
| 34 | + } | ||
| 35 | } | ||
| 36 | |||
| 37 | return Status; | ||
| 38 | -- | ||
| 39 | 2.34.1 | ||
| 40 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2/makefile-skip-copy_bsp.sh.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/makefile-skip-copy_bsp.sh.patch index 1300c7e1..1300c7e1 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2/makefile-skip-copy_bsp.sh.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2022.2+git/makefile-skip-copy_bsp.sh.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1/0001-versal_fw-Fixup-core-makefiles.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1+git/0001-versal_fw-Fixup-core-makefiles.patch index d6cb0e38..788cfb35 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1/0001-versal_fw-Fixup-core-makefiles.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1+git/0001-versal_fw-Fixup-core-makefiles.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 607322dafb2979affd329ea70a2a7952203188a4 Mon Sep 17 00:00:00 2001 | 1 | From 000ad45124ec9d82b2579632a896b0f9a28ee3a8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Hatle <mark.hatle@amd.com> | 2 | From: Mark Hatle <mark.hatle@amd.com> |
| 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 | 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 |
| 4 | Subject: [PATCH] versal_fw: Fixup core makefiles | 4 | Subject: [PATCH] versal_fw: Fixup core makefiles |
| @@ -16,7 +16,7 @@ Signed-off-by: Mark Hatle <mark.hatle@amd.com> | |||
| 16 | 3 files changed, 12 insertions(+), 6 deletions(-) | 16 | 3 files changed, 12 insertions(+), 6 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile | 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 19 | index 5c8e719e9c..af070716b6 100644 | 19 | index 5c8e719e9c..5367ed97f8 100644 |
| 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile | 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile | 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 22 | @@ -2,6 +2,8 @@ | 22 | @@ -2,6 +2,8 @@ |
| @@ -43,10 +43,10 @@ index 5c8e719e9c..af070716b6 100644 | |||
| 43 | %/make.clean: | 43 | %/make.clean: |
| 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 46 | index abffa6c5ed..4af5a02001 100644 | 46 | index ea1e6f4cbd..ddc27a9832 100644 |
| 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 49 | @@ -2,6 +2,8 @@ | 49 | @@ -8,6 +8,8 @@ |
| 50 | COMPILER := mb-gcc | 50 | COMPILER := mb-gcc |
| 51 | ARCHIVER := mb-gcc-ar | 51 | ARCHIVER := mb-gcc-ar |
| 52 | ASSEMBLER := mb-as | 52 | ASSEMBLER := mb-as |
| @@ -55,16 +55,16 @@ index abffa6c5ed..4af5a02001 100644 | |||
| 55 | DRIVER_LIB_VERSION = 1.0 | 55 | DRIVER_LIB_VERSION = 1.0 |
| 56 | PROCESSOR = psx_pmc_0 | 56 | PROCESSOR = psx_pmc_0 |
| 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a |
| 58 | @@ -40,11 +42,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | 58 | @@ -46,11 +48,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a |
| 59 | 59 | ||
| 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) |
| 61 | @echo "Running Make include in $(subst /make.include,,$@)" | 61 | @echo "Running Make include in $(subst /make.include,,$@)" |
| 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" |
| 64 | 64 | ||
| 65 | %/make.libs: include | 65 | %/make.libs: include |
| 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" | 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" |
| 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" |
| 69 | 69 | ||
| 70 | %/make.clean: | 70 | %/make.clean: |
| @@ -97,5 +97,5 @@ index 02d85e492e..f6386dcbed 100644 | |||
| 97 | %/make.clean: | 97 | %/make.clean: |
| 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 99 | -- | 99 | -- |
| 100 | 2.17.1 | 100 | 2.34.1 |
| 101 | 101 | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1/makefile-skip-copy_bsp.sh.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1+git/makefile-skip-copy_bsp.sh.patch index 1300c7e1..1300c7e1 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1/makefile-skip-copy_bsp.sh.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.1+git/makefile-skip-copy_bsp.sh.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2/0001-versal_fw-Fixup-core-makefiles.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2+git/0001-versal_fw-Fixup-core-makefiles.patch index d6cb0e38..788cfb35 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2/0001-versal_fw-Fixup-core-makefiles.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2+git/0001-versal_fw-Fixup-core-makefiles.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 607322dafb2979affd329ea70a2a7952203188a4 Mon Sep 17 00:00:00 2001 | 1 | From 000ad45124ec9d82b2579632a896b0f9a28ee3a8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Hatle <mark.hatle@amd.com> | 2 | From: Mark Hatle <mark.hatle@amd.com> |
| 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 | 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 |
| 4 | Subject: [PATCH] versal_fw: Fixup core makefiles | 4 | Subject: [PATCH] versal_fw: Fixup core makefiles |
| @@ -16,7 +16,7 @@ Signed-off-by: Mark Hatle <mark.hatle@amd.com> | |||
| 16 | 3 files changed, 12 insertions(+), 6 deletions(-) | 16 | 3 files changed, 12 insertions(+), 6 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile | 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 19 | index 5c8e719e9c..af070716b6 100644 | 19 | index 5c8e719e9c..5367ed97f8 100644 |
| 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile | 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile | 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 22 | @@ -2,6 +2,8 @@ | 22 | @@ -2,6 +2,8 @@ |
| @@ -43,10 +43,10 @@ index 5c8e719e9c..af070716b6 100644 | |||
| 43 | %/make.clean: | 43 | %/make.clean: |
| 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 46 | index abffa6c5ed..4af5a02001 100644 | 46 | index ea1e6f4cbd..ddc27a9832 100644 |
| 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 49 | @@ -2,6 +2,8 @@ | 49 | @@ -8,6 +8,8 @@ |
| 50 | COMPILER := mb-gcc | 50 | COMPILER := mb-gcc |
| 51 | ARCHIVER := mb-gcc-ar | 51 | ARCHIVER := mb-gcc-ar |
| 52 | ASSEMBLER := mb-as | 52 | ASSEMBLER := mb-as |
| @@ -55,16 +55,16 @@ index abffa6c5ed..4af5a02001 100644 | |||
| 55 | DRIVER_LIB_VERSION = 1.0 | 55 | DRIVER_LIB_VERSION = 1.0 |
| 56 | PROCESSOR = psx_pmc_0 | 56 | PROCESSOR = psx_pmc_0 |
| 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a |
| 58 | @@ -40,11 +42,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | 58 | @@ -46,11 +48,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a |
| 59 | 59 | ||
| 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) |
| 61 | @echo "Running Make include in $(subst /make.include,,$@)" | 61 | @echo "Running Make include in $(subst /make.include,,$@)" |
| 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" |
| 64 | 64 | ||
| 65 | %/make.libs: include | 65 | %/make.libs: include |
| 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" | 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" |
| 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" |
| 69 | 69 | ||
| 70 | %/make.clean: | 70 | %/make.clean: |
| @@ -97,5 +97,5 @@ index 02d85e492e..f6386dcbed 100644 | |||
| 97 | %/make.clean: | 97 | %/make.clean: |
| 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 99 | -- | 99 | -- |
| 100 | 2.17.1 | 100 | 2.34.1 |
| 101 | 101 | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2/makefile-skip-copy_bsp.sh.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2+git/makefile-skip-copy_bsp.sh.patch index 4ce521cd..4ce521cd 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2/makefile-skip-copy_bsp.sh.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2023.2+git/makefile-skip-copy_bsp.sh.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1/0001-versal_fw-Fixup-core-makefiles.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1+git/0001-versal_fw-Fixup-core-makefiles.patch index d6cb0e38..4bc191c1 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1/0001-versal_fw-Fixup-core-makefiles.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1+git/0001-versal_fw-Fixup-core-makefiles.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 607322dafb2979affd329ea70a2a7952203188a4 Mon Sep 17 00:00:00 2001 | 1 | From d6e56e20bac608d28aa386dad12a279f1e434db9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Hatle <mark.hatle@amd.com> | 2 | From: Mark Hatle <mark.hatle@amd.com> |
| 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 | 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 |
| 4 | Subject: [PATCH] versal_fw: Fixup core makefiles | 4 | Subject: [PATCH] versal_fw: Fixup core makefiles |
| @@ -16,7 +16,7 @@ Signed-off-by: Mark Hatle <mark.hatle@amd.com> | |||
| 16 | 3 files changed, 12 insertions(+), 6 deletions(-) | 16 | 3 files changed, 12 insertions(+), 6 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile | 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 19 | index 5c8e719e9c..af070716b6 100644 | 19 | index d735f64530..dbd363447d 100644 |
| 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile | 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile | 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile |
| 22 | @@ -2,6 +2,8 @@ | 22 | @@ -2,6 +2,8 @@ |
| @@ -28,7 +28,7 @@ index 5c8e719e9c..af070716b6 100644 | |||
| 28 | DRIVER_LIB_VERSION = 1.0 | 28 | DRIVER_LIB_VERSION = 1.0 |
| 29 | PROCESSOR = psv_pmc_0 | 29 | PROCESSOR = psv_pmc_0 |
| 30 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | 30 | LIBRARIES = ${PROCESSOR}/lib/libxil.a |
| 31 | @@ -40,11 +42,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | 31 | @@ -50,11 +52,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a |
| 32 | 32 | ||
| 33 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | 33 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) |
| 34 | @echo "Running Make include in $(subst /make.include,,$@)" | 34 | @echo "Running Make include in $(subst /make.include,,$@)" |
| @@ -43,10 +43,10 @@ index 5c8e719e9c..af070716b6 100644 | |||
| 43 | %/make.clean: | 43 | %/make.clean: |
| 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 46 | index abffa6c5ed..4af5a02001 100644 | 46 | index 284e2fa5fc..be1df32525 100644 |
| 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile |
| 49 | @@ -2,6 +2,8 @@ | 49 | @@ -8,6 +8,8 @@ |
| 50 | COMPILER := mb-gcc | 50 | COMPILER := mb-gcc |
| 51 | ARCHIVER := mb-gcc-ar | 51 | ARCHIVER := mb-gcc-ar |
| 52 | ASSEMBLER := mb-as | 52 | ASSEMBLER := mb-as |
| @@ -55,22 +55,22 @@ index abffa6c5ed..4af5a02001 100644 | |||
| 55 | DRIVER_LIB_VERSION = 1.0 | 55 | DRIVER_LIB_VERSION = 1.0 |
| 56 | PROCESSOR = psx_pmc_0 | 56 | PROCESSOR = psx_pmc_0 |
| 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a |
| 58 | @@ -40,11 +42,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | 58 | @@ -58,11 +60,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a |
| 59 | 59 | ||
| 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) |
| 61 | @echo "Running Make include in $(subst /make.include,,$@)" | 61 | @echo "Running Make include in $(subst /make.include,,$@)" |
| 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" |
| 64 | 64 | ||
| 65 | %/make.libs: include | 65 | %/make.libs: include |
| 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" | 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" |
| 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
| 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" |
| 69 | 69 | ||
| 70 | %/make.clean: | 70 | %/make.clean: |
| 71 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 71 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 72 | diff --git a/lib/sw_apps/versal_psmfw/misc/Makefile b/lib/sw_apps/versal_psmfw/misc/Makefile | 72 | diff --git a/lib/sw_apps/versal_psmfw/misc/Makefile b/lib/sw_apps/versal_psmfw/misc/Makefile |
| 73 | index 02d85e492e..f6386dcbed 100644 | 73 | index 92d95d0896..acc20bcccf 100644 |
| 74 | --- a/lib/sw_apps/versal_psmfw/misc/Makefile | 74 | --- a/lib/sw_apps/versal_psmfw/misc/Makefile |
| 75 | +++ b/lib/sw_apps/versal_psmfw/misc/Makefile | 75 | +++ b/lib/sw_apps/versal_psmfw/misc/Makefile |
| 76 | @@ -11,6 +11,8 @@ PAR_SUBDIRS := $(patsubst %/Makefile, %, $(BSP_PARALLEL_MAKEFILES)) | 76 | @@ -11,6 +11,8 @@ PAR_SUBDIRS := $(patsubst %/Makefile, %, $(BSP_PARALLEL_MAKEFILES)) |
| @@ -97,5 +97,5 @@ index 02d85e492e..f6386dcbed 100644 | |||
| 97 | %/make.clean: | 97 | %/make.clean: |
| 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean |
| 99 | -- | 99 | -- |
| 100 | 2.17.1 | 100 | 2.34.1 |
| 101 | 101 | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1/makefile-skip-copy_bsp.sh.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1+git/makefile-skip-copy_bsp.sh.patch index 4ce521cd..4ce521cd 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1/makefile-skip-copy_bsp.sh.patch +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.1+git/makefile-skip-copy_bsp.sh.patch | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.2+git/0001-versal_fw-Fixup-core-makefiles.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.2+git/0001-versal_fw-Fixup-core-makefiles.patch new file mode 100644 index 00000000..4bc191c1 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.2+git/0001-versal_fw-Fixup-core-makefiles.patch | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | From d6e56e20bac608d28aa386dad12a279f1e434db9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Hatle <mark.hatle@amd.com> | ||
| 3 | Date: Wed, 7 Dec 2022 15:42:15 -0800 | ||
| 4 | Subject: [PATCH] versal_fw: Fixup core makefiles | ||
| 5 | |||
| 6 | The Yocto Project build environment needs to be able to override a few | ||
| 7 | additional variables that may not be appropriate to do on the regular | ||
| 8 | command line build version. This patch preserves the default while | ||
| 9 | allowing it to be overriden as necessary. | ||
| 10 | |||
| 11 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
| 12 | --- | ||
| 13 | lib/sw_apps/versal_plm/misc/versal/Makefile | 6 ++++-- | ||
| 14 | lib/sw_apps/versal_plm/misc/versal_net/Makefile | 6 ++++-- | ||
| 15 | lib/sw_apps/versal_psmfw/misc/Makefile | 6 ++++-- | ||
| 16 | 3 files changed, 12 insertions(+), 6 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/lib/sw_apps/versal_plm/misc/versal/Makefile b/lib/sw_apps/versal_plm/misc/versal/Makefile | ||
| 19 | index d735f64530..dbd363447d 100644 | ||
| 20 | --- a/lib/sw_apps/versal_plm/misc/versal/Makefile | ||
| 21 | +++ b/lib/sw_apps/versal_plm/misc/versal/Makefile | ||
| 22 | @@ -2,6 +2,8 @@ | ||
| 23 | COMPILER := mb-gcc | ||
| 24 | ARCHIVER := mb-gcc-ar | ||
| 25 | ASSEMBLER := mb-as | ||
| 26 | +COMPILER_FLAGS := -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare | ||
| 27 | +EXTRA_COMPILER_FLAGS := -g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects | ||
| 28 | DRIVER_LIB_VERSION = 1.0 | ||
| 29 | PROCESSOR = psv_pmc_0 | ||
| 30 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | ||
| 31 | @@ -50,11 +52,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 32 | |||
| 33 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 34 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 35 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 36 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | ||
| 37 | |||
| 38 | %/make.libs: include | ||
| 39 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 40 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 41 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | ||
| 42 | |||
| 43 | %/make.clean: | ||
| 44 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 45 | diff --git a/lib/sw_apps/versal_plm/misc/versal_net/Makefile b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | ||
| 46 | index 284e2fa5fc..be1df32525 100644 | ||
| 47 | --- a/lib/sw_apps/versal_plm/misc/versal_net/Makefile | ||
| 48 | +++ b/lib/sw_apps/versal_plm/misc/versal_net/Makefile | ||
| 49 | @@ -8,6 +8,8 @@ | ||
| 50 | COMPILER := mb-gcc | ||
| 51 | ARCHIVER := mb-gcc-ar | ||
| 52 | ASSEMBLER := mb-as | ||
| 53 | +COMPILER_FLAGS := -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare | ||
| 54 | +EXTRA_COMPILER_FLAGS := -g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects | ||
| 55 | DRIVER_LIB_VERSION = 1.0 | ||
| 56 | PROCESSOR = psx_pmc_0 | ||
| 57 | LIBRARIES = ${PROCESSOR}/lib/libxil.a | ||
| 58 | @@ -58,11 +60,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 59 | |||
| 60 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 61 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 62 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 63 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | ||
| 64 | |||
| 65 | %/make.libs: include | ||
| 66 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 67 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 68 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | ||
| 69 | |||
| 70 | %/make.clean: | ||
| 71 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 72 | diff --git a/lib/sw_apps/versal_psmfw/misc/Makefile b/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 73 | index 92d95d0896..acc20bcccf 100644 | ||
| 74 | --- a/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 75 | +++ b/lib/sw_apps/versal_psmfw/misc/Makefile | ||
| 76 | @@ -11,6 +11,8 @@ PAR_SUBDIRS := $(patsubst %/Makefile, %, $(BSP_PARALLEL_MAKEFILES)) | ||
| 77 | COMPILER := mb-gcc | ||
| 78 | ARCHIVER := mb-ar | ||
| 79 | ASSEMBLER := mb-as | ||
| 80 | +COMPILER_FLAGS := -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare | ||
| 81 | +EXTRA_COMPILER_FLAGS := -g -ffunction-sections -fdata-sections -Wall -Wextra | ||
| 82 | |||
| 83 | ifneq (,$(findstring win,$(RDI_PLATFORM))) | ||
| 84 | SHELL = CMD | ||
| 85 | @@ -41,11 +43,11 @@ $(PROCESSOR)/lib/libxil.a: $(PROCESSOR)/lib/libxil_init.a | ||
| 86 | |||
| 87 | %/make.include: $(if $(wildcard $(PROCESSOR)/lib/libxil_init.a),$(PROCESSOR)/lib/libxil.a,) | ||
| 88 | @echo "Running Make include in $(subst /make.include,,$@)" | ||
| 89 | - $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 90 | + $(MAKE) -C $(subst /make.include,,$@) -s include "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | ||
| 91 | |||
| 92 | %/make.libs: include | ||
| 93 | @echo "Running Make libs in $(subst /make.libs,,$@)" | ||
| 94 | - $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 95 | + $(MAKE) -C $(subst /make.libs,,$@) -s libs "SHELL=$(SHELL)" "COMPILER=$(COMPILER)" "ASSEMBLER=$(ASSEMBLER)" "ARCHIVER=$(ARCHIVER)" "COMPILER_FLAGS=$(COMPILER_FLAGS)" "EXTRA_COMPILER_FLAGS=$(EXTRA_COMPILER_FLAGS)" | ||
| 96 | |||
| 97 | %/make.clean: | ||
| 98 | $(MAKE) -C $(subst /make.clean,,$@) -s clean | ||
| 99 | -- | ||
| 100 | 2.34.1 | ||
| 101 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.2+git/makefile-skip-copy_bsp.sh.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.2+git/makefile-skip-copy_bsp.sh.patch new file mode 100644 index 00000000..4ce521cd --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/2024.2+git/makefile-skip-copy_bsp.sh.patch | |||
| @@ -0,0 +1,99 @@ | |||
| 1 | From d703670357546d9aab66baea1f6751ba1cbdf7ad Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Hatle <mark.hatle@amd.com> | ||
| 3 | Date: Wed, 7 Dec 2022 15:30:23 -0800 | ||
| 4 | Subject: [PATCH] Prevent makefile from calling copy_bsp.sh | ||
| 5 | |||
| 6 | If we call copy_bsp.sh we will undo any manual compliation steps we | ||
| 7 | have already done. Avoid this. | ||
| 8 | |||
| 9 | YP integration specific | ||
| 10 | |||
| 11 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
| 12 | --- | ||
| 13 | lib/sw_apps/versal_plm/src/versal/Makefile | 4 ++-- | ||
| 14 | lib/sw_apps/versal_plm/src/versal_net/Makefile | 4 ++-- | ||
| 15 | lib/sw_apps/versal_psmfw/src/versal/Makefile | 4 ++-- | ||
| 16 | lib/sw_apps/versal_psmfw/src/versal_net/Makefile | 6 +++--- | ||
| 17 | lib/sw_apps/zynqmp_pmufw/src/Makefile | 4 ++-- | ||
| 18 | 5 files changed, 11 insertions(+), 11 deletions(-) | ||
| 19 | |||
| 20 | Index: git/lib/sw_apps/versal_plm/src/versal/Makefile | ||
| 21 | =================================================================== | ||
| 22 | --- git.orig/lib/sw_apps/versal_plm/src/versal/Makefile | ||
| 23 | +++ git/lib/sw_apps/versal_plm/src/versal/Makefile | ||
| 24 | @@ -35,8 +35,8 @@ $(EXEC): $(LIBS) $(OBJS) $(INCLUDES) | ||
| 25 | $(OBJS): $(LIBS) | ||
| 26 | |||
| 27 | $(LIBS): | ||
| 28 | - echo "Copying BSP files" | ||
| 29 | - ../../misc/versal/copy_bsp.sh | ||
| 30 | + #echo "Copying BSP files" | ||
| 31 | + #../../misc/versal/copy_bsp.sh | ||
| 32 | echo "Compiling bsp" | ||
| 33 | $(MAKE) -C ../../misc/versal/versal_plm_bsp | ||
| 34 | |||
| 35 | Index: git/lib/sw_apps/versal_plm/src/versal_net/Makefile | ||
| 36 | =================================================================== | ||
| 37 | --- git.orig/lib/sw_apps/versal_plm/src/versal_net/Makefile | ||
| 38 | +++ git/lib/sw_apps/versal_plm/src/versal_net/Makefile | ||
| 39 | @@ -35,8 +35,8 @@ $(EXEC): $(LIBS) $(OBJS) $(INCLUDES) | ||
| 40 | $(OBJS): $(LIBS) | ||
| 41 | |||
| 42 | $(LIBS): | ||
| 43 | - echo "Copying BSP files" | ||
| 44 | - ../../misc/versal_net/copy_bsp.sh | ||
| 45 | + #echo "Copying BSP files" | ||
| 46 | + #../../misc/versal_net/copy_bsp.sh | ||
| 47 | echo "Compiling bsp" | ||
| 48 | $(MAKE) -C ../../misc/versal_net/versal_plm_bsp | ||
| 49 | |||
| 50 | Index: git/lib/sw_apps/versal_psmfw/src/versal/Makefile | ||
| 51 | =================================================================== | ||
| 52 | --- git.orig/lib/sw_apps/versal_psmfw/src/versal/Makefile | ||
| 53 | +++ git/lib/sw_apps/versal_psmfw/src/versal/Makefile | ||
| 54 | @@ -37,8 +37,8 @@ $(EXEC): $(LIBS) $(OBJS) $(INCLUDES) | ||
| 55 | $(OBJS): $(LIBS) | ||
| 56 | |||
| 57 | $(LIBS): | ||
| 58 | - echo "Copying BSP files" | ||
| 59 | - ../../misc/copy_bsp.sh | ||
| 60 | + #echo "Copying BSP files" | ||
| 61 | + #../../misc/copy_bsp.sh | ||
| 62 | echo "Compiling bsp" | ||
| 63 | $(MAKE) -C ../../misc/versal_psmfw_bsp | ||
| 64 | |||
| 65 | Index: git/lib/sw_apps/versal_psmfw/src/versal_net/Makefile | ||
| 66 | =================================================================== | ||
| 67 | --- git.orig/lib/sw_apps/versal_psmfw/src/versal_net/Makefile | ||
| 68 | +++ git/lib/sw_apps/versal_psmfw/src/versal_net/Makefile | ||
| 69 | @@ -37,8 +37,8 @@ $(EXEC): $(LIBS) $(OBJS) $(INCLUDES) | ||
| 70 | $(OBJS): $(LIBS) | ||
| 71 | |||
| 72 | $(LIBS): | ||
| 73 | - echo "Copying BSP files" | ||
| 74 | - ../../misc/versal_net/copy_bsp.sh | ||
| 75 | + #echo "Copying BSP files" | ||
| 76 | + #../../misc/versal_net/copy_bsp.sh | ||
| 77 | echo "Compiling bsp" | ||
| 78 | $(MAKE) -C ../../misc/versal_net/versal_psmfw_bsp | ||
| 79 | |||
| 80 | @@ -47,4 +47,3 @@ $(LIBS): | ||
| 81 | |||
| 82 | clean: | ||
| 83 | rm -rf $(OBJS) $(LIBS) $(EXEC) *.o *.d ../common/*.o ../common/*.d | ||
| 84 | - rm -rf ../../misc/versal_net/versal_psmfw_bsp | ||
| 85 | Index: git/lib/sw_apps/zynqmp_pmufw/src/Makefile | ||
| 86 | =================================================================== | ||
| 87 | --- git.orig/lib/sw_apps/zynqmp_pmufw/src/Makefile | ||
| 88 | +++ git/lib/sw_apps/zynqmp_pmufw/src/Makefile | ||
| 89 | @@ -30,8 +30,8 @@ $(EXEC): $(LIBS) $(OBJS) $(INCLUDES) | ||
| 90 | $(OBJS): $(LIBS) | ||
| 91 | |||
| 92 | $(LIBS): | ||
| 93 | - echo "Copying BSP files" | ||
| 94 | - ../misc/copy_bsp.sh | ||
| 95 | + #echo "Copying BSP files" | ||
| 96 | + #../misc/copy_bsp.sh | ||
| 97 | echo "Compiling bsp" | ||
| 98 | $(MAKE) -C ../misc/zynqmp_pmufw_bsp | ||
| 99 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/zynqmp_pmufw-fixup.patch b/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/zynqmp_pmufw-fixup.patch deleted file mode 100644 index 50ce7bcb..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/embeddedsw/zynqmp_pmufw-fixup.patch +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | Fix incorrect copy that triggers a failure: | ||
| 2 | |||
| 3 | | cp: -r not specified; omitting directory '../misc/../../../../lib/bsp/standalone/src/common/clocking' | ||
| 4 | |||
| 5 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | ||
| 6 | |||
| 7 | diff --git a/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh b/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | ||
| 8 | index be8616968e..c3eca3f092 100755 | ||
| 9 | --- a/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | ||
| 10 | +++ b/lib/sw_apps/zynqmp_pmufw/misc/copy_bsp.sh | ||
| 11 | @@ -84,7 +84,7 @@ cp -r $BSP_DIR/libsrc/xilskey/src/include/*.h $BSP_DIR/include/ | ||
| 12 | BSP_SEQUENTIAL_MAKEFILES="$BSP_SEQUENTIAL_MAKEFILES $BSP_DIR/libsrc/xilskey/src/Makefile" | ||
| 13 | |||
| 14 | # copy bsp standalone code | ||
| 15 | -cp $STANDALONE_DIR/common/* $BSP_DIR/libsrc/standalone/src/ | ||
| 16 | +cp -r $STANDALONE_DIR/common/* $BSP_DIR/libsrc/standalone/src/ | ||
| 17 | cp $STANDALONE_DIR/microblaze/* $BSP_DIR/libsrc/standalone/src/ | ||
| 18 | cp -r $STANDALONE_DIR/profile $BSP_DIR/libsrc/standalone/src/ | ||
| 19 | cp $WORKING_DIR/bspconfig.h $BSP_DIR/include | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc index 0fe837f8..6c581670 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc | |||
| @@ -11,44 +11,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
| 11 | 11 | ||
| 12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 13 | 13 | ||
| 14 | APP_DIR = "undefined" | ||
| 15 | APP_DIR:zynq = "zynq_fsbl" | ||
| 16 | APP_DIR:zynqmp = "zynqmp_fsbl" | ||
| 17 | |||
| 18 | B = "${S}/lib/sw_apps/${APP_DIR}/src" | ||
| 19 | |||
| 20 | # The makefile does not handle parallelization | ||
| 21 | PARALLEL_MAKE = "-j1" | ||
| 22 | |||
| 23 | COMPILER = "${CC}" | ||
| 24 | COMPILER_FLAGS = "-O2 -c" | ||
| 25 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra ${ESW_CFLAGS}" | ||
| 26 | ARCHIVER = "${AR}" | ||
| 27 | |||
| 28 | BSP_DIR ?= "${B}/../misc/undefined" | ||
| 29 | BSP_DIR:zynq ?= "${B}/../misc/zynq_fsbl_bsp" | ||
| 30 | BSP_DIR:zynqmp ?= "${B}/../misc/zynqmp_fsbl_bsp" | ||
| 31 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psu_cortexa53_0/libsrc" | ||
| 32 | |||
| 33 | # FSBL components expect AS to be CC. | ||
| 34 | AS = "${CC}" | ||
| 35 | LINKER = "${CC}" | ||
| 36 | DUMP = "${OBJDUMP} -xSD" | ||
| 37 | |||
| 38 | def bsp_make_vars(d): | ||
| 39 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS", "LINKER", "DUMP"] | ||
| 40 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 41 | |||
| 42 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 43 | |||
| 44 | ARM_INSTRUCTION_SET:eabi:arm = "arm" | ||
| 45 | |||
| 46 | do_install() { | ||
| 47 | : | ||
| 48 | } | ||
| 49 | |||
| 50 | PACKAGES = "" | ||
| 51 | |||
| 52 | # This is the default in most BSPs. A MACHINE.conf can override this! | 14 | # This is the default in most BSPs. A MACHINE.conf can override this! |
| 53 | FSBL_IMAGE_NAME ??= "fsbl-${MACHINE}" | 15 | FSBL_IMAGE_NAME ??= "fsbl-${MACHINE}" |
| 54 | 16 | ||
| @@ -58,12 +20,5 @@ FSBL_BASE_NAME ?= "${FSBL_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_ | |||
| 58 | 20 | ||
| 59 | ESW_COMPONENT ??= "fsbl.elf" | 21 | ESW_COMPONENT ??= "fsbl.elf" |
| 60 | 22 | ||
| 61 | do_deploy() { | ||
| 62 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${FSBL_BASE_NAME}.elf | ||
| 63 | ln -sf ${FSBL_BASE_NAME}.elf ${DEPLOYDIR}/${FSBL_IMAGE_NAME}.elf | ||
| 64 | } | ||
| 65 | |||
| 66 | addtask deploy before do_build after do_install | ||
| 67 | |||
| 68 | # Disable buildpaths QA check warnings. | 23 | # Disable buildpaths QA check warnings. |
| 69 | INSANE_SKIP:${PN} += "buildpaths" | 24 | INSANE_SKIP:${PN} += "buildpaths" |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1+git-generic.inc new file mode 100644 index 00000000..42c9581e --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1+git-generic.inc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | SKIP_MSG = "" | ||
| 2 | SKIP_MSG:zynq = "Generic support for zynq is not available" | ||
| 3 | SKIP_RECIPE[fsbl-firmware] = "${SKIP_MSG}" | ||
| 4 | |||
| 5 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 9 | file://fsbl-fixups.patch \ | ||
| 10 | " | ||
| 11 | |||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1.bb index 3f9740a0..3c57ee8c 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.1.bb | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | require fsbl-firmware.inc | 1 | require fsbl-firmware.inc |
| 2 | 2 | require ${@'fsbl-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'fsbl-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://fsbl-fixups.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | # This version does not build for zynq | ||
| 11 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2+git-generic.inc new file mode 100644 index 00000000..7a0a35da --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2+git-generic.inc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | SKIP_MSG = "" | ||
| 2 | SKIP_MSG:zynq = "Generic support for zynq is not available" | ||
| 3 | SKIP_RECIPE[fsbl-firmware] = "${SKIP_MSG}" | ||
| 4 | |||
| 5 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 9 | file://fsbl-fixups.patch \ | ||
| 10 | " | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2.bb index 13a2f1c5..3c57ee8c 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2.bb | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | require fsbl-firmware.inc | 1 | require fsbl-firmware.inc |
| 2 | 2 | require ${@'fsbl-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2022.2:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'fsbl-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://fsbl-fixups.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | # This version does not build for zynq | ||
| 11 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1+git-generic.inc new file mode 100644 index 00000000..7a0a35da --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1+git-generic.inc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | SKIP_MSG = "" | ||
| 2 | SKIP_MSG:zynq = "Generic support for zynq is not available" | ||
| 3 | SKIP_RECIPE[fsbl-firmware] = "${SKIP_MSG}" | ||
| 4 | |||
| 5 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 9 | file://fsbl-fixups.patch \ | ||
| 10 | " | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1.bb index 8816dc4d..3c57ee8c 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1.bb | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | require fsbl-firmware.inc | 1 | require fsbl-firmware.inc |
| 2 | 2 | require ${@'fsbl-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'fsbl-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://fsbl-fixups.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | # This version does not build for zynq | ||
| 11 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2+git-generic.inc new file mode 100644 index 00000000..7a0a35da --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2+git-generic.inc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | SKIP_MSG = "" | ||
| 2 | SKIP_MSG:zynq = "Generic support for zynq is not available" | ||
| 3 | SKIP_RECIPE[fsbl-firmware] = "${SKIP_MSG}" | ||
| 4 | |||
| 5 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 9 | file://fsbl-fixups.patch \ | ||
| 10 | " | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2.bb index dbeaebc4..3c57ee8c 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.2.bb | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | require fsbl-firmware.inc | 1 | require fsbl-firmware.inc |
| 2 | 2 | require ${@'fsbl-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.2:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'fsbl-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://fsbl-fixups.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | # This version does not build for zynq | ||
| 11 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1+git-generic.inc new file mode 100644 index 00000000..7a0a35da --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1+git-generic.inc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | SKIP_MSG = "" | ||
| 2 | SKIP_MSG:zynq = "Generic support for zynq is not available" | ||
| 3 | SKIP_RECIPE[fsbl-firmware] = "${SKIP_MSG}" | ||
| 4 | |||
| 5 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 9 | file://fsbl-fixups.patch \ | ||
| 10 | " | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1.bb index 62e009ec..3c57ee8c 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.1.bb | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | require fsbl-firmware.inc | 1 | require fsbl-firmware.inc |
| 2 | 2 | require ${@'fsbl-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2024.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'fsbl-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://fsbl-fixups.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | # This version does not build for zynq | ||
| 11 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2+git-generic.inc new file mode 100644 index 00000000..7a0a35da --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2+git-generic.inc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | SKIP_MSG = "" | ||
| 2 | SKIP_MSG:zynq = "Generic support for zynq is not available" | ||
| 3 | SKIP_RECIPE[fsbl-firmware] = "${SKIP_MSG}" | ||
| 4 | |||
| 5 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 9 | file://fsbl-fixups.patch \ | ||
| 10 | " | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2.bb index 62e009ec..3c57ee8c 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2024.2.bb | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | require fsbl-firmware.inc | 1 | require fsbl-firmware.inc |
| 2 | 2 | require ${@'fsbl-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2024.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'fsbl-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://fsbl-fixups.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | # This version does not build for zynq | ||
| 11 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_generic.inc new file mode 100644 index 00000000..2a6fbb68 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_generic.inc | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | APP_DIR = "undefined" | ||
| 2 | APP_DIR:zynq = "zynq_fsbl" | ||
| 3 | APP_DIR:zynqmp = "zynqmp_fsbl" | ||
| 4 | |||
| 5 | B = "${S}/lib/sw_apps/${APP_DIR}/src" | ||
| 6 | |||
| 7 | # The makefile does not handle parallelization | ||
| 8 | PARALLEL_MAKE = "-j1" | ||
| 9 | |||
| 10 | COMPILER = "${CC}" | ||
| 11 | COMPILER_FLAGS = "-O2 -c" | ||
| 12 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra ${ESW_CFLAGS}" | ||
| 13 | ARCHIVER = "${AR}" | ||
| 14 | |||
| 15 | BSP_DIR ?= "${B}/../misc/undefined" | ||
| 16 | BSP_DIR:zynq ?= "${B}/../misc/zynq_fsbl_bsp" | ||
| 17 | BSP_DIR:zynqmp ?= "${B}/../misc/zynqmp_fsbl_bsp" | ||
| 18 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psu_cortexa53_0/libsrc" | ||
| 19 | |||
| 20 | # FSBL components expect AS to be CC. | ||
| 21 | AS = "${CC}" | ||
| 22 | LINKER = "${CC}" | ||
| 23 | DUMP = "${OBJDUMP} -xSD" | ||
| 24 | |||
| 25 | def bsp_make_vars(d): | ||
| 26 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS", "LINKER", "DUMP"] | ||
| 27 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 28 | |||
| 29 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 30 | |||
| 31 | ARM_INSTRUCTION_SET:eabi:arm = "arm" | ||
| 32 | |||
| 33 | do_install() { | ||
| 34 | : | ||
| 35 | } | ||
| 36 | |||
| 37 | PACKAGES = "" | ||
| 38 | |||
| 39 | ESW_COMPONENT = "fsbl.elf" | ||
| 40 | |||
| 41 | do_deploy() { | ||
| 42 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${FSBL_BASE_NAME}.elf | ||
| 43 | ln -sf ${FSBL_BASE_NAME}.elf ${DEPLOYDIR}/${FSBL_IMAGE_NAME}.elf | ||
| 44 | } | ||
| 45 | |||
| 46 | addtask deploy before do_build after do_install | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb deleted file mode 100644 index f5e55ecc..00000000 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | # Only should be used for development | ||
| 2 | DEFAULT_PREFERENCE = "-1" | ||
| 3 | |||
| 4 | require fsbl-firmware.inc | ||
| 5 | |||
| 6 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 7 | |||
| 8 | SRC_URI += " \ | ||
| 9 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 10 | file://fsbl-fixups.patch \ | ||
| 11 | " | ||
| 12 | |||
| 13 | # This version does not build for zynq | ||
| 14 | COMPATIBLE_MACHINE:zynq = "none" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl.bbappend b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl.bbappend index 17fd25ea..46719507 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl.bbappend +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl.bbappend | |||
| @@ -1 +1 @@ | |||
| include ${@'fsbl-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | require ${@'fsbl-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc index 1551f776..bac5c997 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc | |||
| @@ -10,59 +10,6 @@ COMPATIBLE_MACHINE:versal = ".*" | |||
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 11 | 11 | ||
| 12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 13 | B = "${S}/lib/sw_apps/versal_plm/src" | ||
| 14 | |||
| 15 | # The makefile does not handle parallelization | ||
| 16 | PARALLEL_MAKE = "-j1" | ||
| 17 | |||
| 18 | do_configure() { | ||
| 19 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 20 | # mb-* commands | ||
| 21 | ${B}/../misc/copy_bsp.sh | ||
| 22 | } | ||
| 23 | |||
| 24 | # All do_compiles need this, even if it's overriden | ||
| 25 | MB_OBJCOPY ??= "${OBJCOPY}" | ||
| 26 | |||
| 27 | # Only add a dependency if we need to use OUR binutils | ||
| 28 | DEPENDS .= "${@' virtual/${TARGET_PREFIX}binutils' if d.getVar('MB_OBJCOPY') == d.getVar('OBJCOPY') else ''}" | ||
| 29 | |||
| 30 | COMPILER = "${CC}" | ||
| 31 | COMPILER_FLAGS = "-O2 -c" | ||
| 32 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 33 | ARCHIVER = "${AR}" | ||
| 34 | |||
| 35 | BSP_DIR ?= "${B}/../misc/versal_plm_bsp" | ||
| 36 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psv_pmc_0/libsrc" | ||
| 37 | |||
| 38 | def bsp_make_vars(d): | ||
| 39 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS"] | ||
| 40 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 41 | |||
| 42 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 43 | |||
| 44 | do_compile() { | ||
| 45 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc | ||
| 46 | # properly. So do its job manually. Preparing the includes first, then libs. | ||
| 47 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 48 | oe_runmake -C $(dirname $i) -s include | ||
| 49 | done | ||
| 50 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 51 | oe_runmake -C $(dirname $i) -s libs | ||
| 52 | done | ||
| 53 | |||
| 54 | # --build-id=none is required due to linker script not defining a location for it. | ||
| 55 | # Again, recipe-systoot include is necessary | ||
| 56 | oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
| 57 | |||
| 58 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 59 | } | ||
| 60 | |||
| 61 | do_install() { | ||
| 62 | : | ||
| 63 | } | ||
| 64 | |||
| 65 | PACKAGES = "" | ||
| 66 | 13 | ||
| 67 | # This is the default in most BSPs. A MACHINE.conf can override this! | 14 | # This is the default in most BSPs. A MACHINE.conf can override this! |
| 68 | PLM_IMAGE_NAME ??= "plm-${MACHINE}" | 15 | PLM_IMAGE_NAME ??= "plm-${MACHINE}" |
| @@ -73,14 +20,5 @@ PLM_BASE_NAME ?= "${PLM_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VE | |||
| 73 | 20 | ||
| 74 | ESW_COMPONENT ??= "plm.elf" | 21 | ESW_COMPONENT ??= "plm.elf" |
| 75 | 22 | ||
| 76 | do_deploy() { | ||
| 77 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PLM_BASE_NAME}.elf | ||
| 78 | ln -sf ${PLM_BASE_NAME}.elf ${DEPLOYDIR}/${PLM_IMAGE_NAME}.elf | ||
| 79 | install -m 0644 ${B}/${ESW_COMPONENT}.bin ${DEPLOYDIR}/${PLM_BASE_NAME}.bin | ||
| 80 | ln -sf ${PLM_BASE_NAME}.bin ${DEPLOYDIR}/${PLM_IMAGE_NAME}.bin | ||
| 81 | } | ||
| 82 | |||
| 83 | addtask deploy before do_build after do_install | ||
| 84 | |||
| 85 | # Disable buildpaths QA check warnings. | 23 | # Disable buildpaths QA check warnings. |
| 86 | INSANE_SKIP:${PN} += "buildpaths" | 24 | INSANE_SKIP:${PN} += "buildpaths" |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1+git-generic.inc new file mode 100644 index 00000000..e91ea607 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1+git-generic.inc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 6 | file://0001-xilpm-versal-Fixed-2023.1-compile-error.patch \ | ||
| 7 | " | ||
| 8 | |||
| 9 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 10 | |||
| 11 | do_compile() { | ||
| 12 | oe_runmake | ||
| 13 | |||
| 14 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 15 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1.bb index cc810241..d945aa26 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.1.bb | |||
| @@ -1,16 +1,3 @@ | |||
| 1 | require plm-firmware.inc | 1 | require plm-firmware.inc |
| 2 | 2 | require ${@'plm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'plm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 11 | |||
| 12 | do_compile() { | ||
| 13 | oe_runmake | ||
| 14 | |||
| 15 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 16 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.2+git-generic.inc index bbc7519f..d4d91baf 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.2+git-generic.inc | |||
| @@ -1,8 +1,3 @@ | |||
| 1 | # Only should be used for development | ||
| 2 | DEFAULT_PREFERENCE = "-1" | ||
| 3 | |||
| 4 | require plm-firmware.inc | ||
| 5 | |||
| 6 | # Separate build directories for versal and versal-net | 1 | # Separate build directories for versal and versal-net |
| 7 | SOC_DIR = "versal" | 2 | SOC_DIR = "versal" |
| 8 | SOC_DIR:versal-net = "versal_net" | 3 | SOC_DIR:versal-net = "versal_net" |
| @@ -10,11 +5,12 @@ B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | |||
| 10 | 5 | ||
| 11 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | 6 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" |
| 12 | 7 | ||
| 13 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" |
| 14 | 9 | ||
| 15 | SRC_URI += " \ | 10 | SRC_URI += " \ |
| 16 | file://makefile-skip-copy_bsp.sh.patch \ | 11 | file://makefile-skip-copy_bsp.sh.patch \ |
| 17 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ |
| 13 | file://0001-xilpm-versal-Fixed-2023.1-compile-error.patch \ | ||
| 18 | " | 14 | " |
| 19 | 15 | ||
| 20 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | 16 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.2.bb index cc810241..d945aa26 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2022.2.bb | |||
| @@ -1,16 +1,3 @@ | |||
| 1 | require plm-firmware.inc | 1 | require plm-firmware.inc |
| 2 | 2 | require ${@'plm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'plm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 11 | |||
| 12 | do_compile() { | ||
| 13 | oe_runmake | ||
| 14 | |||
| 15 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 16 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1+git-generic.inc new file mode 100644 index 00000000..7416dfb5 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1+git-generic.inc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 16 | |||
| 17 | do_configure() { | ||
| 18 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 19 | # mb-* commands | ||
| 20 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 21 | } | ||
| 22 | |||
| 23 | do_compile() { | ||
| 24 | oe_runmake | ||
| 25 | |||
| 26 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 27 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1.bb index 37861b75..d945aa26 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.1.bb | |||
| @@ -1,29 +1,3 @@ | |||
| 1 | require plm-firmware.inc | 1 | require plm-firmware.inc |
| 2 | 2 | require ${@'plm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'plm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 18 | |||
| 19 | do_configure() { | ||
| 20 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 21 | # mb-* commands | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | oe_runmake | ||
| 27 | |||
| 28 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 29 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2+git-generic.inc new file mode 100644 index 00000000..7416dfb5 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2+git-generic.inc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 16 | |||
| 17 | do_configure() { | ||
| 18 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 19 | # mb-* commands | ||
| 20 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 21 | } | ||
| 22 | |||
| 23 | do_compile() { | ||
| 24 | oe_runmake | ||
| 25 | |||
| 26 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 27 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2.bb index 37861b75..d945aa26 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2023.2.bb | |||
| @@ -1,29 +1,3 @@ | |||
| 1 | require plm-firmware.inc | 1 | require plm-firmware.inc |
| 2 | 2 | require ${@'plm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'plm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 18 | |||
| 19 | do_configure() { | ||
| 20 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 21 | # mb-* commands | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | oe_runmake | ||
| 27 | |||
| 28 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 29 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1+git-generic.inc new file mode 100644 index 00000000..7416dfb5 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1+git-generic.inc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 16 | |||
| 17 | do_configure() { | ||
| 18 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 19 | # mb-* commands | ||
| 20 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 21 | } | ||
| 22 | |||
| 23 | do_compile() { | ||
| 24 | oe_runmake | ||
| 25 | |||
| 26 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 27 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1.bb index 37861b75..d945aa26 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.1.bb | |||
| @@ -1,29 +1,3 @@ | |||
| 1 | require plm-firmware.inc | 1 | require plm-firmware.inc |
| 2 | 2 | require ${@'plm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'plm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 18 | |||
| 19 | do_configure() { | ||
| 20 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 21 | # mb-* commands | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | oe_runmake | ||
| 27 | |||
| 28 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 29 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc new file mode 100644 index 00000000..7416dfb5 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 16 | |||
| 17 | do_configure() { | ||
| 18 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 19 | # mb-* commands | ||
| 20 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 21 | } | ||
| 22 | |||
| 23 | do_compile() { | ||
| 24 | oe_runmake | ||
| 25 | |||
| 26 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 27 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2.bb index 37861b75..d945aa26 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2.bb | |||
| @@ -1,29 +1,3 @@ | |||
| 1 | require plm-firmware.inc | 1 | require plm-firmware.inc |
| 2 | 2 | require ${@'plm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'plm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 18 | |||
| 19 | do_configure() { | ||
| 20 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 21 | # mb-* commands | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | oe_runmake | ||
| 27 | |||
| 28 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 29 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_generic.inc new file mode 100644 index 00000000..0a00984f --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_generic.inc | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | B = "${S}/lib/sw_apps/versal_plm/src" | ||
| 2 | |||
| 3 | # The makefile does not handle parallelization | ||
| 4 | PARALLEL_MAKE = "-j1" | ||
| 5 | |||
| 6 | do_configure() { | ||
| 7 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 8 | # mb-* commands | ||
| 9 | ${B}/../misc/copy_bsp.sh | ||
| 10 | } | ||
| 11 | |||
| 12 | # All do_compiles need this, even if it's overriden | ||
| 13 | MB_OBJCOPY ??= "${OBJCOPY}" | ||
| 14 | |||
| 15 | # Only add a dependency if we need to use OUR binutils | ||
| 16 | DEPENDS .= "${@' virtual/${TARGET_PREFIX}binutils' if d.getVar('MB_OBJCOPY') == d.getVar('OBJCOPY') else ''}" | ||
| 17 | |||
| 18 | COMPILER = "${CC}" | ||
| 19 | COMPILER_FLAGS = "-O2 -c" | ||
| 20 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 21 | ARCHIVER = "${AR}" | ||
| 22 | |||
| 23 | BSP_DIR ?= "${B}/../misc/versal_plm_bsp" | ||
| 24 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psv_pmc_0/libsrc" | ||
| 25 | |||
| 26 | def bsp_make_vars(d): | ||
| 27 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS"] | ||
| 28 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 29 | |||
| 30 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 31 | |||
| 32 | do_compile() { | ||
| 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 | oe_runmake -C $(dirname $i) -s include | ||
| 37 | done | ||
| 38 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 39 | oe_runmake -C $(dirname $i) -s libs | ||
| 40 | done | ||
| 41 | |||
| 42 | # --build-id=none is required due to linker script not defining a location for it. | ||
| 43 | # Again, recipe-systoot include is necessary | ||
| 44 | oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
| 45 | |||
| 46 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 47 | } | ||
| 48 | |||
| 49 | do_install() { | ||
| 50 | : | ||
| 51 | } | ||
| 52 | |||
| 53 | PACKAGES = "" | ||
| 54 | |||
| 55 | ESW_COMPONENT = "plm.elf" | ||
| 56 | |||
| 57 | do_deploy() { | ||
| 58 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PLM_BASE_NAME}.elf | ||
| 59 | ln -sf ${PLM_BASE_NAME}.elf ${DEPLOYDIR}/${PLM_IMAGE_NAME}.elf | ||
| 60 | install -m 0644 ${B}/${ESW_COMPONENT}.bin ${DEPLOYDIR}/${PLM_BASE_NAME}.bin | ||
| 61 | ln -sf ${PLM_BASE_NAME}.bin ${DEPLOYDIR}/${PLM_IMAGE_NAME}.bin | ||
| 62 | } | ||
| 63 | |||
| 64 | addtask deploy before do_build after do_install | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plmfw.bbappend b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plmfw.bbappend index e55c23b2..33d1303d 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plmfw.bbappend +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plmfw.bbappend | |||
| @@ -1 +1 @@ | |||
| include ${@'plmfw-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | require ${@'plmfw-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc index 92dc3cd3..d371da4d 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc | |||
| @@ -9,61 +9,6 @@ COMPATIBLE_MACHINE:zynqmp = ".*" | |||
| 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 10 | 10 | ||
| 11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
| 12 | B = "${S}/lib/sw_apps/zynqmp_pmufw/src" | ||
| 13 | |||
| 14 | # The makefile does not handle parallelization | ||
| 15 | PARALLEL_MAKE = "-j1" | ||
| 16 | |||
| 17 | #do_configure:prepend() { | ||
| 18 | # # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 19 | # # mb-* commands | ||
| 20 | # ${B}/../misc/copy_bsp.sh | ||
| 21 | #} | ||
| 22 | |||
| 23 | # All do_compiles need this, even if it's overriden | ||
| 24 | MB_OBJCOPY ??= "${OBJCOPY}" | ||
| 25 | |||
| 26 | # Only add a dependency if we need to use OUR binutils | ||
| 27 | DEPENDS .= "${@' virtual/${TARGET_PREFIX}binutils' if d.getVar('MB_OBJCOPY') == d.getVar('OBJCOPY') else ''}" | ||
| 28 | |||
| 29 | COMPILER = "${CC}" | ||
| 30 | COMPILER_FLAGS = "-O2 -c" | ||
| 31 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 32 | ARCHIVER = "${AR}" | ||
| 33 | |||
| 34 | BSP_DIR ?= "${B}/../misc/zynqmp_pmufw_bsp" | ||
| 35 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psu_pmu_0/libsrc" | ||
| 36 | |||
| 37 | def bsp_make_vars(d): | ||
| 38 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS"] | ||
| 39 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 40 | |||
| 41 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 42 | |||
| 43 | #do_compile() { | ||
| 44 | # # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc | ||
| 45 | # # properly. So do its job manually. Preparing the includes first, then libs. | ||
| 46 | # #for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 47 | # # oe_runmake -C $(dirname $i) -s include | ||
| 48 | # #done | ||
| 49 | # #for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 50 | # # oe_runmake -C $(dirname $i) -s libs | ||
| 51 | # #done | ||
| 52 | # | ||
| 53 | # # --build-id=none is required due to linker script not defining a location for it. | ||
| 54 | # # Again, recipe-systoot include is necessary | ||
| 55 | # oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
| 56 | #} | ||
| 57 | |||
| 58 | do_compile:append() { | ||
| 59 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 60 | } | ||
| 61 | |||
| 62 | do_install() { | ||
| 63 | : | ||
| 64 | } | ||
| 65 | |||
| 66 | PACKAGES = "" | ||
| 67 | 12 | ||
| 68 | # This is the default in most BSPs. A MACHINE.conf can override this! | 13 | # This is the default in most BSPs. A MACHINE.conf can override this! |
| 69 | PMU_FIRMWARE_IMAGE_NAME ??= "pmu-firmware-${MACHINE}" | 14 | PMU_FIRMWARE_IMAGE_NAME ??= "pmu-firmware-${MACHINE}" |
| @@ -74,14 +19,5 @@ PMU_FIRMWARE_BASE_NAME ?= "${PMU_FIRMWARE_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${ | |||
| 74 | 19 | ||
| 75 | ESW_COMPONENT ??= "executable.elf" | 20 | ESW_COMPONENT ??= "executable.elf" |
| 76 | 21 | ||
| 77 | do_deploy() { | ||
| 78 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.elf | ||
| 79 | ln -sf ${PMU_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${PMU_FIRMWARE_IMAGE_NAME}.elf | ||
| 80 | install -m 0644 ${B}/${ESW_COMPONENT}.bin ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.bin | ||
| 81 | ln -sf ${PMU_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${PMU_FIRMWARE_IMAGE_NAME}.bin | ||
| 82 | } | ||
| 83 | |||
| 84 | addtask deploy before do_build after do_install | ||
| 85 | |||
| 86 | # Disable buildpaths QA check warnings. | 22 | # Disable buildpaths QA check warnings. |
| 87 | INSANE_SKIP:${PN} += "buildpaths" | 23 | INSANE_SKIP:${PN} += "buildpaths" |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.1+git-generic.inc index 606708c4..8defde17 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.1+git-generic.inc | |||
| @@ -1,9 +1,4 @@ | |||
| 1 | # Only should be used for development | 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" |
| 2 | DEFAULT_PREFERENCE = "-1" | ||
| 3 | |||
| 4 | require pmu-firmware.inc | ||
| 5 | |||
| 6 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 7 | 2 | ||
| 8 | SRC_URI += " \ | 3 | SRC_URI += " \ |
| 9 | file://makefile-skip-copy_bsp.sh.patch \ | 4 | file://makefile-skip-copy_bsp.sh.patch \ |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.1.bb index 50dbf97d..3ec0c10f 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.1.bb | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | require pmu-firmware.inc | 1 | require pmu-firmware.inc |
| 2 | 2 | require ${@'pmu-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'pmu-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2+git-generic.inc new file mode 100644 index 00000000..8defde17 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2+git-generic.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 6 | " | ||
| 7 | |||
| 8 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2.bb index 50dbf97d..3ec0c10f 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2.bb | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | require pmu-firmware.inc | 1 | require pmu-firmware.inc |
| 2 | 2 | require ${@'pmu-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'pmu-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1+git-generic.inc new file mode 100644 index 00000000..8defde17 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1+git-generic.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 6 | " | ||
| 7 | |||
| 8 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1.bb index 65d986c8..3ec0c10f 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.1.bb | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | require pmu-firmware.inc | 1 | require pmu-firmware.inc |
| 2 | 2 | require ${@'pmu-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'pmu-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2+git-generic.inc new file mode 100644 index 00000000..8defde17 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2+git-generic.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 6 | " | ||
| 7 | |||
| 8 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2.bb index 65d986c8..3ec0c10f 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2023.2.bb | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | require pmu-firmware.inc | 1 | require pmu-firmware.inc |
| 2 | 2 | require ${@'pmu-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'pmu-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1+git-generic.inc new file mode 100644 index 00000000..935f6e32 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1+git-generic.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 6 | " | ||
| 7 | |||
| 8 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra ${ESW_CFLAGS}" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1.bb index fab49bc0..3ec0c10f 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.1.bb | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | require pmu-firmware.inc | 1 | require pmu-firmware.inc |
| 2 | 2 | require ${@'pmu-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2024.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'pmu-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra ${ESW_CFLAGS}" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2+git-generic.inc new file mode 100644 index 00000000..935f6e32 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2+git-generic.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 6 | " | ||
| 7 | |||
| 8 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra ${ESW_CFLAGS}" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2.bb index fab49bc0..3ec0c10f 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2024.2.bb | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | require pmu-firmware.inc | 1 | require pmu-firmware.inc |
| 2 | 2 | require ${@'pmu-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2024.1:${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'pmu-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra ${ESW_CFLAGS}" | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_generic.inc new file mode 100644 index 00000000..9d4a5b07 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_generic.inc | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | B = "${S}/lib/sw_apps/zynqmp_pmufw/src" | ||
| 2 | |||
| 3 | # The makefile does not handle parallelization | ||
| 4 | PARALLEL_MAKE = "-j1" | ||
| 5 | |||
| 6 | do_configure() { | ||
| 7 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 8 | # mb-* commands | ||
| 9 | ${B}/../misc/copy_bsp.sh | ||
| 10 | } | ||
| 11 | |||
| 12 | # All do_compiles need this, even if it's overriden | ||
| 13 | MB_OBJCOPY ??= "${OBJCOPY}" | ||
| 14 | |||
| 15 | # Only add a dependency if we need to use OUR binutils | ||
| 16 | DEPENDS .= "${@' virtual/${TARGET_PREFIX}binutils' if d.getVar('MB_OBJCOPY') == d.getVar('OBJCOPY') else ''}" | ||
| 17 | |||
| 18 | COMPILER = "${CC}" | ||
| 19 | COMPILER_FLAGS = "-O2 -c" | ||
| 20 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 21 | ARCHIVER = "${AR}" | ||
| 22 | |||
| 23 | BSP_DIR ?= "${B}/../misc/zynqmp_pmufw_bsp" | ||
| 24 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psu_pmu_0/libsrc" | ||
| 25 | |||
| 26 | def bsp_make_vars(d): | ||
| 27 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS"] | ||
| 28 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 29 | |||
| 30 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 31 | |||
| 32 | do_compile() { | ||
| 33 | oe_runmake | ||
| 34 | |||
| 35 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install() { | ||
| 39 | : | ||
| 40 | } | ||
| 41 | |||
| 42 | PACKAGES = "" | ||
| 43 | |||
| 44 | ESW_COMPONENT = "executable.elf" | ||
| 45 | |||
| 46 | do_deploy() { | ||
| 47 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.elf | ||
| 48 | ln -sf ${PMU_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${PMU_FIRMWARE_IMAGE_NAME}.elf | ||
| 49 | install -m 0644 ${B}/${ESW_COMPONENT}.bin ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.bin | ||
| 50 | ln -sf ${PMU_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${PMU_FIRMWARE_IMAGE_NAME}.bin | ||
| 51 | } | ||
| 52 | |||
| 53 | addtask deploy before do_build after do_install | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmufw.bbappend b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmufw.bbappend index ce659447..5a9c367d 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmufw.bbappend +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmufw.bbappend | |||
| @@ -1 +1 @@ | |||
| include ${@'pmufw-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | require ${@'pmufw-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc index 05b2a1cc..42463173 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc | |||
| @@ -10,59 +10,6 @@ COMPATIBLE_MACHINE:versal = ".*" | |||
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 11 | 11 | ||
| 12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 13 | B = "${S}/lib/sw_apps/versal_psmfw/src" | ||
| 14 | |||
| 15 | # The makefile does not handle parallelization | ||
| 16 | PARALLEL_MAKE = "-j1" | ||
| 17 | |||
| 18 | do_configure() { | ||
| 19 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 20 | # mb-* commands | ||
| 21 | ${B}/../misc/copy_bsp.sh | ||
| 22 | } | ||
| 23 | |||
| 24 | # All do_compiles need this, even if it's overriden | ||
| 25 | MB_OBJCOPY ??= "${OBJCOPY}" | ||
| 26 | |||
| 27 | # Only add a dependency if we need to use OUR binutils | ||
| 28 | DEPENDS .= "${@' virtual/${TARGET_PREFIX}binutils' if d.getVar('MB_OBJCOPY') == d.getVar('OBJCOPY') else ''}" | ||
| 29 | |||
| 30 | COMPILER = "${CC}" | ||
| 31 | COMPILER_FLAGS = "-O2 -c" | ||
| 32 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 33 | ARCHIVER = "${AR}" | ||
| 34 | |||
| 35 | BSP_DIR ?= "${B}/../misc/versal_psmfw_bsp" | ||
| 36 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psv_psm_0/libsrc" | ||
| 37 | |||
| 38 | def bsp_make_vars(d): | ||
| 39 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS"] | ||
| 40 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 41 | |||
| 42 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 43 | |||
| 44 | do_compile() { | ||
| 45 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc | ||
| 46 | # properly. So do its job manually. Preparing the includes first, then libs. | ||
| 47 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 48 | oe_runmake -C $(dirname $i) -s include | ||
| 49 | done | ||
| 50 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 51 | oe_runmake -C $(dirname $i) -s libs | ||
| 52 | done | ||
| 53 | |||
| 54 | # --build-id=none is required due to linker script not defining a location for it. | ||
| 55 | # Again, recipe-systoot include is necessary | ||
| 56 | oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
| 57 | |||
| 58 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 59 | } | ||
| 60 | |||
| 61 | do_install() { | ||
| 62 | : | ||
| 63 | } | ||
| 64 | |||
| 65 | PACKAGES = "" | ||
| 66 | 13 | ||
| 67 | # This is the default in most BSPs. A MACHINE.conf can override this! | 14 | # This is the default in most BSPs. A MACHINE.conf can override this! |
| 68 | PSM_FIRMWARE_IMAGE_NAME ??= "psm-firmware-${MACHINE}" | 15 | PSM_FIRMWARE_IMAGE_NAME ??= "psm-firmware-${MACHINE}" |
| @@ -73,14 +20,5 @@ PSM_FIRMWARE_BASE_NAME ?= "${PSM_FIRMWARE_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${ | |||
| 73 | 20 | ||
| 74 | ESW_COMPONENT ??= "psmfw.elf" | 21 | ESW_COMPONENT ??= "psmfw.elf" |
| 75 | 22 | ||
| 76 | do_deploy() { | ||
| 77 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.elf | ||
| 78 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${PSM_FIRMWARE_IMAGE_NAME}.elf | ||
| 79 | install -m 0644 ${B}/${ESW_COMPONENT}.bin ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.bin | ||
| 80 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${PSM_FIRMWARE_IMAGE_NAME}.bin | ||
| 81 | } | ||
| 82 | |||
| 83 | addtask deploy before do_build after do_install | ||
| 84 | |||
| 85 | # Disable buildpaths QA check warnings. | 23 | # Disable buildpaths QA check warnings. |
| 86 | INSANE_SKIP:${PN} += "buildpaths" | 24 | INSANE_SKIP:${PN} += "buildpaths" |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1+git-generic.inc new file mode 100644 index 00000000..25e2f47f --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1+git-generic.inc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 5 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 6 | file://0001-xilpm-versal-Fixed-2023.1-compile-error.patch \ | ||
| 7 | " | ||
| 8 | |||
| 9 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 10 | |||
| 11 | do_compile() { | ||
| 12 | oe_runmake | ||
| 13 | |||
| 14 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 15 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1.bb index d861fb1c..ffa0a596 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.1.bb | |||
| @@ -1,16 +1,3 @@ | |||
| 1 | require psm-firmware.inc | 1 | require psm-firmware.inc |
| 2 | 2 | require ${@'psm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'psm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 11 | |||
| 12 | do_compile() { | ||
| 13 | oe_runmake | ||
| 14 | |||
| 15 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 16 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.2+git-generic.inc index 42e0a95f..4c331510 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.2+git-generic.inc | |||
| @@ -1,8 +1,3 @@ | |||
| 1 | # Only should be used for development | ||
| 2 | DEFAULT_PREFERENCE = "-1" | ||
| 3 | |||
| 4 | require psm-firmware.inc | ||
| 5 | |||
| 6 | # Separate build directories for versal and versal-net | 1 | # Separate build directories for versal and versal-net |
| 7 | SOC_DIR = "versal" | 2 | SOC_DIR = "versal" |
| 8 | SOC_DIR:versal-net = "versal_net" | 3 | SOC_DIR:versal-net = "versal_net" |
| @@ -10,11 +5,12 @@ B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | |||
| 10 | 5 | ||
| 11 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | 6 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" |
| 12 | 7 | ||
| 13 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" |
| 14 | 9 | ||
| 15 | SRC_URI += " \ | 10 | SRC_URI += " \ |
| 16 | file://makefile-skip-copy_bsp.sh.patch \ | 11 | file://makefile-skip-copy_bsp.sh.patch \ |
| 17 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ |
| 13 | file://0001-xilpm-versal-Fixed-2023.1-compile-error.patch \ | ||
| 18 | " | 14 | " |
| 19 | 15 | ||
| 20 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | 16 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.2.bb index d861fb1c..ffa0a596 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2022.2.bb | |||
| @@ -1,16 +1,3 @@ | |||
| 1 | require psm-firmware.inc | 1 | require psm-firmware.inc |
| 2 | 2 | require ${@'psm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 3 | require ${@'psm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 7 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 11 | |||
| 12 | do_compile() { | ||
| 13 | oe_runmake | ||
| 14 | |||
| 15 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 16 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1+git-generic.inc new file mode 100644 index 00000000..7ba3707e --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1+git-generic.inc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 16 | |||
| 17 | # Override default since we're in a subdirectory deeper now... | ||
| 18 | do_configure() { | ||
| 19 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 20 | # mb-* commands | ||
| 21 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | else | ||
| 24 | ${B}/../../misc/copy_bsp.sh | ||
| 25 | fi | ||
| 26 | } | ||
| 27 | |||
| 28 | do_compile() { | ||
| 29 | oe_runmake | ||
| 30 | |||
| 31 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 32 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1.bb index 569c5a46..ffa0a596 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.1.bb | |||
| @@ -1,34 +1,3 @@ | |||
| 1 | require psm-firmware.inc | 1 | require psm-firmware.inc |
| 2 | 2 | require ${@'psm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'psm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 18 | |||
| 19 | # Override default since we're in a subdirectory deeper now... | ||
| 20 | do_configure() { | ||
| 21 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 22 | # mb-* commands | ||
| 23 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 24 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 25 | else | ||
| 26 | ${B}/../../misc/copy_bsp.sh | ||
| 27 | fi | ||
| 28 | } | ||
| 29 | |||
| 30 | do_compile() { | ||
| 31 | oe_runmake | ||
| 32 | |||
| 33 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 34 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2+git-generic.inc new file mode 100644 index 00000000..7ba3707e --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2+git-generic.inc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 16 | |||
| 17 | # Override default since we're in a subdirectory deeper now... | ||
| 18 | do_configure() { | ||
| 19 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 20 | # mb-* commands | ||
| 21 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | else | ||
| 24 | ${B}/../../misc/copy_bsp.sh | ||
| 25 | fi | ||
| 26 | } | ||
| 27 | |||
| 28 | do_compile() { | ||
| 29 | oe_runmake | ||
| 30 | |||
| 31 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 32 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb index 569c5a46..ffa0a596 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb | |||
| @@ -1,34 +1,3 @@ | |||
| 1 | require psm-firmware.inc | 1 | require psm-firmware.inc |
| 2 | 2 | require ${@'psm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'psm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 18 | |||
| 19 | # Override default since we're in a subdirectory deeper now... | ||
| 20 | do_configure() { | ||
| 21 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 22 | # mb-* commands | ||
| 23 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 24 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 25 | else | ||
| 26 | ${B}/../../misc/copy_bsp.sh | ||
| 27 | fi | ||
| 28 | } | ||
| 29 | |||
| 30 | do_compile() { | ||
| 31 | oe_runmake | ||
| 32 | |||
| 33 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 34 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1+git-generic.inc new file mode 100644 index 00000000..7ba3707e --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1+git-generic.inc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 16 | |||
| 17 | # Override default since we're in a subdirectory deeper now... | ||
| 18 | do_configure() { | ||
| 19 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 20 | # mb-* commands | ||
| 21 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | else | ||
| 24 | ${B}/../../misc/copy_bsp.sh | ||
| 25 | fi | ||
| 26 | } | ||
| 27 | |||
| 28 | do_compile() { | ||
| 29 | oe_runmake | ||
| 30 | |||
| 31 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 32 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1.bb index 569c5a46..ffa0a596 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1.bb | |||
| @@ -1,34 +1,3 @@ | |||
| 1 | require psm-firmware.inc | 1 | require psm-firmware.inc |
| 2 | 2 | require ${@'psm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'psm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 18 | |||
| 19 | # Override default since we're in a subdirectory deeper now... | ||
| 20 | do_configure() { | ||
| 21 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 22 | # mb-* commands | ||
| 23 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 24 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 25 | else | ||
| 26 | ${B}/../../misc/copy_bsp.sh | ||
| 27 | fi | ||
| 28 | } | ||
| 29 | |||
| 30 | do_compile() { | ||
| 31 | oe_runmake | ||
| 32 | |||
| 33 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 34 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2+git-generic.inc new file mode 100644 index 00000000..7ba3707e --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2+git-generic.inc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 16 | |||
| 17 | # Override default since we're in a subdirectory deeper now... | ||
| 18 | do_configure() { | ||
| 19 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 20 | # mb-* commands | ||
| 21 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 22 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 23 | else | ||
| 24 | ${B}/../../misc/copy_bsp.sh | ||
| 25 | fi | ||
| 26 | } | ||
| 27 | |||
| 28 | do_compile() { | ||
| 29 | oe_runmake | ||
| 30 | |||
| 31 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 32 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2.bb index 569c5a46..ffa0a596 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.2.bb | |||
| @@ -1,34 +1,3 @@ | |||
| 1 | require psm-firmware.inc | 1 | require psm-firmware.inc |
| 2 | 2 | require ${@'psm-firmware_generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} | |
| 3 | # Separate build directories for versal and versal-net | 3 | require ${@'psm-firmware_${PV}-generic.inc' if d.getVar('XILINX_WITH_ESW') == 'generic' else ''} |
| 4 | SOC_DIR = "versal" | ||
| 5 | SOC_DIR:versal-net = "versal_net" | ||
| 6 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
| 7 | |||
| 8 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
| 9 | |||
| 10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
| 11 | |||
| 12 | SRC_URI += " \ | ||
| 13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
| 18 | |||
| 19 | # Override default since we're in a subdirectory deeper now... | ||
| 20 | do_configure() { | ||
| 21 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 22 | # mb-* commands | ||
| 23 | if [ ${SOC_DIR} != "versal" ]; then | ||
| 24 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 25 | else | ||
| 26 | ${B}/../../misc/copy_bsp.sh | ||
| 27 | fi | ||
| 28 | } | ||
| 29 | |||
| 30 | do_compile() { | ||
| 31 | oe_runmake | ||
| 32 | |||
| 33 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 34 | } | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_generic.inc new file mode 100644 index 00000000..252425ef --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_generic.inc | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | B = "${S}/lib/sw_apps/versal_psmfw/src" | ||
| 2 | |||
| 3 | # The makefile does not handle parallelization | ||
| 4 | PARALLEL_MAKE = "-j1" | ||
| 5 | |||
| 6 | do_configure() { | ||
| 7 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 8 | # mb-* commands | ||
| 9 | ${B}/../misc/copy_bsp.sh | ||
| 10 | } | ||
| 11 | |||
| 12 | # All do_compiles need this, even if it's overriden | ||
| 13 | MB_OBJCOPY ??= "${OBJCOPY}" | ||
| 14 | |||
| 15 | # Only add a dependency if we need to use OUR binutils | ||
| 16 | DEPENDS .= "${@' virtual/${TARGET_PREFIX}binutils' if d.getVar('MB_OBJCOPY') == d.getVar('OBJCOPY') else ''}" | ||
| 17 | |||
| 18 | COMPILER = "${CC}" | ||
| 19 | COMPILER_FLAGS = "-O2 -c" | ||
| 20 | EXTRA_COMPILER_FLAGS = "-g -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 21 | ARCHIVER = "${AR}" | ||
| 22 | |||
| 23 | BSP_DIR ?= "${B}/../misc/versal_psmfw_bsp" | ||
| 24 | BSP_TARGETS_DIR ?= "${BSP_DIR}/psv_psm_0/libsrc" | ||
| 25 | |||
| 26 | def bsp_make_vars(d): | ||
| 27 | s = ["COMPILER", "CC", "COMPILER_FLAGS", "EXTRA_COMPILER_FLAGS", "ARCHIVER", "AR", "AS"] | ||
| 28 | return " ".join(["\"%s=%s\"" % (v, d.getVar(v)) for v in s]) | ||
| 29 | |||
| 30 | EXTRA_OEMAKE = "${@bsp_make_vars(d)}" | ||
| 31 | |||
| 32 | do_compile() { | ||
| 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 | oe_runmake -C $(dirname $i) -s include | ||
| 37 | done | ||
| 38 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
| 39 | oe_runmake -C $(dirname $i) -s libs | ||
| 40 | done | ||
| 41 | |||
| 42 | # --build-id=none is required due to linker script not defining a location for it. | ||
| 43 | # Again, recipe-systoot include is necessary | ||
| 44 | oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
| 45 | |||
| 46 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 47 | } | ||
| 48 | |||
| 49 | do_install() { | ||
| 50 | : | ||
| 51 | } | ||
| 52 | |||
| 53 | PACKAGES = "" | ||
| 54 | |||
| 55 | ESW_COMPONENT = "psmfw.elf" | ||
| 56 | |||
| 57 | do_deploy() { | ||
| 58 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.elf | ||
| 59 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${PSM_FIRMWARE_IMAGE_NAME}.elf | ||
| 60 | install -m 0644 ${B}/${ESW_COMPONENT}.bin ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.bin | ||
| 61 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${PSM_FIRMWARE_IMAGE_NAME}.bin | ||
| 62 | } | ||
| 63 | |||
| 64 | addtask deploy before do_build after do_install | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psmfw.bbappend b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psmfw.bbappend index 559d179c..8b4ca716 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psmfw.bbappend +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psmfw.bbappend | |||
| @@ -1 +1 @@ | |||
| include ${@'psmfw-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | require ${@'psmfw-meta-xilinx-standalone.inc' if d.getVar('XILINX_WITH_ESW') else ''} | ||
