Skip to content

Commit 89233c0

Browse files
austino1976maxzhen
authored andcommitted
Patch 3 (#2617)
1 parent ed096af commit 89233c0

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/CMake/config/postinst-aws.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ if [ $? -eq 1 ]; then
3636
fi
3737
fi
3838

39+
#Move the /opt/xilinx/xrt/lib/libxrt_aws.so out of way so that sw/hw emulation can work
40+
#In the future, this .so file, as well as aws shim related src code will be removed. We keep/rename
41+
#it so far in case somebody still requires it
42+
mv /opt/xilinx/xrt/lib/libxrt_aws.so /opt/xilinx/xrt/lib/libxrt_aws.so.bak > /dev/null 2>&1
43+
3944
#create sym link to /opt/xilinx/xrt/lib/libmpd_plugin and restart mpd service
4045
echo "Install aws mpd plugin"
4146
rm -rf /opt/xilinx/xrt/lib/libmpd_plugin.so > /dev/null 2>&1

src/runtime_src/ert/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
if ((EXISTS /tools/batonroot/rodin/devkits) AND (${XRT_NATIVE_BUILD} STREQUAL "yes") AND (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64"))
2-
1+
if (((EXISTS /tools/batonroot/rodin/devkits) AND (${XRT_NATIVE_BUILD} STREQUAL "yes") AND (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")) OR ((DEFINED ENV{AWS_FPGA_REPO_DIR}) AND (EXISTS $ENV{XILINX_VITIS}/gnu/microblaze/lin)))
32
message("-- Rodin devkits found, preparing ERT build")
43

54
set(ERT_INSTALL_PREFIX "/opt/xilinx/xrt/share/fw")

src/runtime_src/ert/ert.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ RDI_DEVKITS_HOME := /tools/batonroot/rodin/devkits
22
MB_HOME := $(RDI_DEVKITS_HOME)/lnx64/cross/RHEL6/microblaze/lin
33
MB_PREFIX := mb-
44

5+
ifdef AWS_FPGA_REPO_DIR
6+
ifndef XILINX_VITIS
7+
$(error Environment variable XILINX_VITIS should point to Vitis install area)
8+
endif
9+
MB_HOME := $(XILINX_VITIS)/gnu/microblaze/lin
10+
endif
11+
512
CFLAGS := -c -Wall -mlittle-endian -mxl-soft-mul -mcpu=v10.0
613
LFLAGS := -mlittle-endian -Wl,--no-relax,--gc-sections
714

0 commit comments

Comments
 (0)