aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorErhan Kurubas <erhan.kurubas@espressif.com>2023-03-25 03:00:51 +0300
committerAntonio Borneo <borneo.antonio@gmail.com>2023-04-01 16:11:31 +0000
commit99ec5760961d264599a9c9fb1a4d5d6042bc3ba8 (patch)
tree3d9d2826aeabc9e4834e945907c96f955793e98d /.github
parent4b9b55a832e43815a1dd1b219107a01a1beadc1e (diff)
downloadriscv-openocd-99ec5760961d264599a9c9fb1a4d5d6042bc3ba8.zip
riscv-openocd-99ec5760961d264599a9c9fb1a4d5d6042bc3ba8.tar.gz
riscv-openocd-99ec5760961d264599a9c9fb1a4d5d6042bc3ba8.tar.bz2
github/workflow: build libjaylink from source
Libjaylink submodule disabled by default at https://review.openocd.org/c/openocd/+/7129 --enable-internal-libjaylink config option will be deprecated soon. So, building the source is a permanent solution. Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: Id06654d806a3a49f35e3ba41e9e4cc58c1a0d388 Reviewed-on: https://review.openocd.org/c/openocd/+/7552 Tested-by: jenkins Reviewed-by: zapb <dev@zapb.de> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/snapshot.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml
index b48388e..f5cf564 100644
--- a/.github/workflows/snapshot.yml
+++ b/.github/workflows/snapshot.yml
@@ -56,6 +56,16 @@ jobs:
wget "https://github.com/aquynh/capstone/archive/${CAPSTONE_VER}.tar.gz"
tar -xzf ${CAPSTONE_VER}.tar.gz
echo "CAPSTONE_SRC=$PWD/capstone-${CAPSTONE_VER}" >> $GITHUB_ENV
+ - name: Prepare libjaylink
+ env:
+ LIBJAYLINK_VER: 0.3.1
+ run: |
+ mkdir -p $DL_DIR && cd $DL_DIR
+ wget https://gitlab.zapb.de/libjaylink/libjaylink/-/archive/${LIBJAYLINK_VER}/libjaylink-${LIBJAYLINK_VER}.tar.gz
+ tar -xzf libjaylink-${LIBJAYLINK_VER}.tar.gz
+ cd libjaylink-${LIBJAYLINK_VER}
+ ./autogen.sh
+ echo "LIBJAYLINK_SRC=$PWD" >> $GITHUB_ENV
- name: Package OpenOCD for windows
env:
MAKE_JOBS: 2
@@ -64,6 +74,7 @@ jobs:
HIDAPI_CONFIG: --enable-shared --disable-static --disable-testgui
LIBFTDI_CONFIG: -DSTATICLIBS=OFF -DEXAMPLES=OFF -DFTDI_EEPROM=OFF
CAPSTONE_CONFIG: "CAPSTONE_BUILD_CORE_ONLY=yes CAPSTONE_STATIC=yes CAPSTONE_SHARED=no"
+ LIBJAYLINK_CONFIG: --enable-shared --disable-static
run: |
# check if there is tag pointing at HEAD, otherwise take the HEAD SHA-1 as OPENOCD_TAG
OPENOCD_TAG="`git tag --points-at HEAD`"