File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555
5656# Create nvethernetrm symlink for JP 6.x (moved from source_sync_6.x.sh)
5757# JP 5.x handles nvethernetrm differently (full path clone, not a symlink)
58- if [[ " $ACTION " == reset ]] && [[ " $JETPACK_VERSION " =~ ^6\. ]]; then
59- ln -sf ../../../../../../nvethernetrm " sources_$SOURCES_VERSION /nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm"
58+ # Must remove the directory first since git reset restores it as a real directory
59+ # and ln -sf cannot replace a directory with a symlink
60+ if [[ " $JETPACK_VERSION " =~ ^6\. ]]; then
61+ if [[ " $ACTION " == reset ]] || [[ " $ACTION " == apply ]]; then
62+ rm -rf " sources_$SOURCES_VERSION /nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm"
63+ ln -sf ../../../../../../nvethernetrm " sources_$SOURCES_VERSION /nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm"
64+ fi
6065fi
6166
6267apply_external_patches () {
You can’t perform that action at this time.
0 commit comments