1 # SPDX-License-Identifier: GPL-2.0-or-later
2 # Copyright Marek Vasut <marex@denx.de>
4 # OpenOCD on Travis CI - https://travis-ci.org/
18 - sourceline: 'ppa:ubuntu-toolchain-r/test'
19 - sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
20 key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
37 - $mingw64 ${CC} --version
39 - $mingw64 ./bootstrap
40 - $mingw64 ./configure
45 case $TRAVIS_OS_NAME in
47 sudo apt install ${CC} libusb-1.0-0-dev
50 brew install libtool automake libusb libusb-compat hidapi libftdi
53 [[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64
54 choco uninstall -y mingw
55 choco upgrade --no-progress -y msys2
56 export msys2='cmd //C RefreshEnv.cmd '
57 export msys2+='& set MSYS=winsymlinks:nativestrict '
58 export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
59 export mingw64="$msys2 -mingw64 -full-path -here -c \$\* --"
60 export msys2+=" -msys2 -c \$\* --"
61 $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain autoconf autoconf-archive automake automake-wrapper binutils gcc gettext git libtool m4 make pkg-config tcl texinfo mingw-w64-x86_64-libusb mingw-w64-x86_64-libusb-compat-git mingw-w64-x86_64-libjaylink-git mingw-w64-x86_64-libftdi mingw-w64-x86_64-hidapi mingw-w64-x86_64-clang
62 ## FIXME: Also build for i686?
63 ## Install more MSYS2 packages from https://packages.msys2.org/base here
64 taskkill //IM gpg-agent.exe //F # https://travis-ci.community/t/4967
65 export PATH=/C/tools/msys64/mingw64/bin:$PATH
66 export MAKE=mingw32-make # so that Autotools can find it
72 case $TRAVIS_OS_NAME in
74 # https://unix.stackexchange.com/a/137322/107554
75 $msys2 pacman --sync --clean --noconfirm
81 - $HOME/AppData/Local/Temp/chocolatey