Skip to content

Commit

Permalink
Just copy libftdi dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Sep 7, 2024
1 parent dffceab commit cc1c568
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ SKIP_OPENOCD=${SKIP_OPENOCD-0}
# Install prerequisites
arch -x86_64 /usr/local/bin/brew install jq libtool libusb automake hidapi
arch -arm64 /opt/homebrew/bin/brew install jq libtool libusb automake hidapi
# Uninstall libftdi, as it's not required
arch -arm64 /opt/homebrew/bin/brew uninstall libftdi
# Risc-V prerequisites
echo "Listing local"
ls /usr/local/bin
Expand Down
4 changes: 4 additions & 0 deletions packages/macos/openocd/build-openocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ libhidpath=($(otool -L $INSTALLDIR/openocd | grep libhidapi))
echo ${libhidpath[0]}
cp "${libhidpath[0]}" $INSTALLDIR/libhidapi.dylib
install_name_tool -change "${libhidpath[0]}" @loader_path/libhidapi.dylib $INSTALLDIR/openocd
libftdipath=($(otool -L $INSTALLDIR/openocd | grep libftdi))
echo ${libftdipath[0]}
cp "${libftdipath[0]}" $INSTALLDIR/libftdi.dylib
install_name_tool -change "${libftdipath[0]}" @loader_path/libftdi.dylib $INSTALLDIR/openocd
install_name_tool -add_rpath @loader_path/ $INSTALLDIR/openocd

0 comments on commit cc1c568

Please sign in to comment.