-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
haarer
committed
May 1, 2024
1 parent
4278da1
commit 5456be7
Showing
2 changed files
with
81 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
#!/bin/sh | ||
|
||
# install MSYS2 package requirements | ||
|
||
pacman -S --needed git msys2-runtime unzip make tar flex bison diffutils texinfo patch mingw-w64-x86_64-gcc mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-tools-git mingw-w64-x86_64-winstorecompat-git | ||
# please use the MSYS2 shell, not the UCRT shell. | ||
# | ||
# install MSYS2 package requirement for building the tool chain | ||
pacman -S --needed --noconfirm git msys2-runtime unzip make tar flex bison diffutils texinfo patch mingw-w64-x86_64-gcc mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-tools-git mingw-w64-x86_64-winstorecompat-git | ||
|
||
## all after this is only needed if avrdude shall use usb devices | ||
|
||
# pull additonal libraries | ||
pacman -S --needed mingw-w64-x86_64-libusb mingw-w64-x86_64-libusb-compat-git mingw-w64-x86_64-libftdi cmake | ||
# pull additonal libraries (avrdude) | ||
#pacman -S --needed mingw-w64-x86_64-libusb mingw-w64-x86_64-libusb-compat-git mingw-w64-x86_64-libftdi cmake | ||
|
||
# nomally the avrdude should be updated to use the new libusb-1.0 but ... | ||
# | ||
# quick and dirty hack: patch up msys - there is an usb.h in the include path that shadows the usb.h | ||
# from the libusb compatibility package - we move it out of the way and symlink the needed file.. | ||
if grep -q _WDMDDK_ /mingw64/x86_64-w64-mingw32/include/usb.h ; then | ||
mv /mingw64/x86_64-w64-mingw32/include/usb.h /mingw64/x86_64-w64-mingw32/include/usb_go_away.h | ||
fi | ||
ln -s /mingw64/include/libusb-compat/usb.h /mingw64/x86_64-w64-mingw32/include/ | ||
#if grep -q _WDMDDK_ /mingw64/x86_64-w64-mingw32/include/usb.h ; then | ||
# mv /mingw64/x86_64-w64-mingw32/include/usb.h /mingw64/x86_64-w64-mingw32/include/usb_go_away.h | ||
#fi | ||
#ln -s /mingw64/include/libusb-compat/usb.h /mingw64/x86_64-w64-mingw32/include/ |