diff options
author | Woo Chang Kim <wchang.kim@samsung.com> | 2024-10-07 04:36:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2024-10-07 04:36:07 +0000 |
commit | 899b63d8208181e37717a1badd5062edb1328e06 (patch) | |
tree | baa3e82b54c816410db73db02347b179c2336d30 | |
parent | 693efa8f8865d1f84e7a024e6dc14f3107c18dd8 (diff) | |
parent | 5384908325771691f2df36cc5a2be60e9855dbff (diff) | |
download | meta-accepted/tizen_unified_toolchain.tar.gz meta-accepted/tizen_unified_toolchain.tar.bz2 meta-accepted/tizen_unified_toolchain.zip |
Merge "Modify the NI creation script for riscv64 architecture" into tizentizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20241013.235758accepted/tizen/unified/x/20241007.103718accepted/tizen/unified/toolchain/20241022.122844accepted/tizen/unified/toolchain/20241022.122401accepted/tizen/unified/20241007.161054accepted/tizen/9.0/unified/20241030.235556tizen_9.0accepted/tizen_unified_x_asanaccepted/tizen_unified_toolchainaccepted/tizen_9.0_unified
-rw-r--r-- | scripts/iot-making-building-blocks-dll.post | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/scripts/iot-making-building-blocks-dll.post b/scripts/iot-making-building-blocks-dll.post index 1001ba4..4e54a82 100644 --- a/scripts/iot-making-building-blocks-dll.post +++ b/scripts/iot-making-building-blocks-dll.post @@ -2,8 +2,11 @@ echo "############### iot-making-building-blocks-dll.post ################" +arch=$(uname -m) export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 -export MIC_CROSSGEN2_ENABLED=1 +if [[ $arch != "riscv64" ]]; then + export MIC_CROSSGEN2_ENABLED=1 +fi DOTNET_MIC_DIR=/opt/usr/dotnet/mic @@ -15,24 +18,26 @@ then # remove previous native image dotnettool --ni-reset-system - chmod 755 /usr/bin/patchelf - chmod 755 $DOTNET_MIC_DIR/* + if [[ $arch != "riscv64" ]]; then + chmod 755 /usr/bin/patchelf + chmod 755 $DOTNET_MIC_DIR/* - # set the patchelf - /usr/bin/patchelf --set-interpreter $DOTNET_MIC_DIR/ld-linux-x86-64.so.2 $DOTNET_MIC_DIR/crossgen2 - /usr/bin/patchelf --set-rpath $DOTNET_MIC_DIR $DOTNET_MIC_DIR/crossgen2 + # set the patchelf + /usr/bin/patchelf --set-interpreter $DOTNET_MIC_DIR/ld-linux-x86-64.so.2 $DOTNET_MIC_DIR/crossgen2 + /usr/bin/patchelf --set-rpath $DOTNET_MIC_DIR $DOTNET_MIC_DIR/crossgen2 - for file in $( find $DOTNET_MIC_DIR -type f \( -name "*.so" -or -name "*.so.*" \) -not -name "*.dbg" -not -name "ld-*.so*" ) - do - /usr/bin/patchelf --set-rpath $DOTNET_MIC_DIR ${file} - done + for file in $( find $DOTNET_MIC_DIR -type f \( -name "*.so" -or -name "*.so.*" \) -not -name "*.dbg" -not -name "ld-*.so*" ) + do + /usr/bin/patchelf --set-rpath $DOTNET_MIC_DIR ${file} + done + fi # generate native image for system - dotnettool --ni-system --inputbubble + dotnettool --ni-system --inputbubble --print-cmd # generate native image for all app - dotnettool --ni-regen-all-app - dotnettool --tac-regen-all + dotnettool --ni-regen-all-app --print-cmd + dotnettool --tac-regen-all --print-cmd else echo "There is no execute file - /usr/bin/dotnettool" fi |