User Tools

Site Tools


vscode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
vscode [2025/07/03 07:06] zhangykvscode [2025/07/03 07:10] (current) zhangyk
Line 85: Line 85:
 ## 3.4. Add a source file ## 3.4. Add a source file
 This is a script for use's convenience. It defines three variables to help VS Code to find the files. I put the script in `sysroot` This is a script for use's convenience. It defines three variables to help VS Code to find the files. I put the script in `sysroot`
 +
 +`sysroot.sh`
 ```sh ```sh
 # Path to the dynamic linker in the sysroot (used for --set-interpreter option with patchelf) # Path to the dynamic linker in the sysroot (used for --set-interpreter option with patchelf)
Line 92: Line 94:
 # Path to the patchelf binary on the remote host # Path to the patchelf binary on the remote host
 export VSCODE_SERVER_PATCHELF_PATH=/home/usr/share/sysroot/usr/bin/patchelf export VSCODE_SERVER_PATCHELF_PATH=/home/usr/share/sysroot/usr/bin/patchelf
 +```
 +`sysroot.csh`
 +```csh
 +# Path to the dynamic linker in the sysroot (used for --set-interpreter option with patchelf)
 +setenv VSCODE_SERVER_CUSTOM_GLIBC_LINKER /home/usr/share/sysroot/lib/ld-linux-x86-64.so.2
 +# Path to the library locations in the sysroot (used as --set-rpath option with patchelf)
 +setenv VSCODE_SERVER_CUSTOM_GLIBC_PATH /home/usr/share/sysroot/usr/lib:/home/usr/share/sysroot/lib
 +# Path to the patchelf binary on the remote host
 +setenv VSCODE_SERVER_PATCHELF_PATH /home/usr/share/sysroot/usr/bin/patchelf
 ``` ```
  
Line 98: Line 109:
 chmod 755 sysroot chmod 755 sysroot
 vi sysroot/sysroot.sh vi sysroot/sysroot.sh
 +vi sysroot/sysroot.csh
 chmod 555 sysroot chmod 555 sysroot
 ``` ```
vscode.1751526402.txt.gz · Last modified: 2025/07/03 07:06 by zhangyk