Skip to content

Commit bc05038

Browse files
bentheredonethatSiva Addepalli
authored andcommitted
OpenAMP: Remove hard-coding cmake paths and dependencies
As setup script in surrounding Vitis environment now provide both LD_LIBRARY_PATH and cmake binary setup, remove any logic of setting up LD_LIBRARY_PATH or pointing to explicit cmake path. Signed-off-by: Ben Levinsky <[email protected]> Acked-by: Arun Kannan <[email protected]>
1 parent 5573918 commit bc05038

File tree

7 files changed

+4
-39
lines changed

7 files changed

+4
-39
lines changed

ThirdParty/sw_services/libmetal/data/libmetal.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ proc generate {libhandle} {
9999
set shared_lib_dir $::env(XILINX_sdk)
100100
}
101101

102-
set ::env(LD_LIBRARY_PATH) "${shared_lib_dir}/tps/lnx64/cmake-3.3.2/libs/Ubuntu/x86_64-linux-gnu/:${ld_lib_path}"
103102
}
104103

105104
# Run cmake to generate make file
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
11
#!/bin/bash
2-
if [ ! -z "${HDI_APPROOT}" ]
3-
then
4-
${HDI_APPROOT}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1
5-
elif [ ! -z "${XILINX_VITIS}" ]
6-
then
7-
${XILINX_VITIS}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1
8-
elif [ ! -z "${XILINX_SDK}" ]
9-
then
10-
${XILINX_SDK}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1
11-
fi
2+
cmake $@ 2>&1
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
if not "%HDI_APPROOT%" == "" (
2-
%HDI_APPROOT%\tps\win64\cmake-3.3.2\bin\cmake.exe %* 2>&1
3-
) else (
4-
if "%XILINX_SDK%"== "" (
5-
%XILINX_VITIS%\tps\win64\cmake-3.3.2\bin\cmake.exe %* 2>&1
6-
) else (
7-
%XILINX_SDK%\tps\win64\cmake-3.3.2\bin\cmake.exe %* 2>&1
8-
))
1+
cmake.exe %* 2>&1

ThirdParty/sw_services/openamp/data/openamp.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ proc generate {libhandle} {
123123
set shared_lib_dir $::env(XILINX_sdk)
124124
}
125125

126-
set ::env(LD_LIBRARY_PATH) "${shared_lib_dir}/tps/lnx64/cmake-3.3.2/libs/Ubuntu/x86_64-linux-gnu/:${ld_lib_path}"
127126
}
128127

129128
# Run cmake to generate make file
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
11
#!/bin/bash
2-
if [ ! -z "${HDI_APPROOT}" ]
3-
then
4-
${HDI_APPROOT}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1
5-
elif [ ! -z "${XILINX_VITIS}" ]
6-
then
7-
${XILINX_VITIS}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1
8-
elif [ ! -z "${XILINX_SDK}" ]
9-
then
10-
${XILINX_SDK}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1
11-
fi
2+
cmake $@ 2>&1
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
if not "%HDI_APPROOT%" == "" (
2-
%HDI_APPROOT%\tps\win64\cmake-3.3.2\bin\cmake.exe %* 2>&1
3-
) else (
4-
if "%XILINX_SDK%"== "" (
5-
%XILINX_VITIS%\tps\win64\cmake-3.3.2\bin\cmake.exe %* 2>&1
6-
) else (
7-
%XILINX_SDK%\tps\win64\cmake-3.3.2\bin\cmake.exe %* 2>&1
8-
))
1+
cmake.exe %* 2>&1

XilinxProcessorIPLib/drivers/rfdc/data/rfdc.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ proc generate_libmetal {} {
656656
set shared_lib_dir $::env(XILINX_sdk)
657657
}
658658

659-
set ::env(LD_LIBRARY_PATH) "${shared_lib_dir}/tps/lnx64/cmake-3.3.2/libs/Ubuntu/x86_64-linux-gnu/:${ld_lib_path}"
660659

661660
file attributes ${cmake_cmd} -permissions ugo+rx
662661
if { [catch {exec ${cmake_cmd} "../src/libmetal" ${cmake_opt}} msg] } {

0 commit comments

Comments
 (0)