Skip to content

Commit 005cfca

Browse files
authored
Install patchutils for the build. (#321)
* Install patchutils for the build. This contains filterdiff, which we need to check that our changes conform to OpenOCD style. Change-Id: Id522f4e62fee3efad4e0e00933abfeada9635624 * Fix paths for filterdiff line. Change-Id: Ic50e13c7fe64e65b2d2af0260fb19c07a9f10e20 * Conform to OpenOCD style. Change-Id: I51660d30404c0a625b58c9bed2d948695575e72e
1 parent ca1a1f8 commit 005cfca

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.travis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ matrix:
77
env:
88
- BUILD=x86_64-linux-gnu
99
- EXECUTABLE=openocd
10+
addons:
11+
apt:
12+
packages:
13+
- patchutils
1014
compiler: gcc
1115

1216
- os: linux
@@ -17,13 +21,17 @@ matrix:
1721
addons:
1822
apt:
1923
packages:
20-
- gcc-multilib
24+
- gcc-multilib patchutils
2125
compiler: gcc
2226

2327
- os: linux
2428
env:
2529
- BUILD=x86_64-linux-gnu
2630
- EXECUTABLE=openocd
31+
addons:
32+
apt:
33+
packages:
34+
- patchutils
2735
compiler: clang
2836

2937
- os: linux
@@ -36,7 +44,7 @@ matrix:
3644
addons:
3745
apt:
3846
packages:
39-
- gcc-multilib
47+
- gcc-multilib patchutils
4048

4149
- os: linux
4250
env:
@@ -47,7 +55,7 @@ matrix:
4755
addons:
4856
apt:
4957
packages:
50-
- binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
58+
- binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 patchutils
5159

5260
script:
5361
# Ideally we'd diff back to where we either branched off OpenOCD or master,
@@ -56,7 +64,7 @@ script:
5664
# so this should work fine most of the time, and be a lot better than not
5765
# checking at all.
5866
- git diff -U20 HEAD~40 |
59-
filterdiff -x "src/jtag/drivers/libjaylink/*" -x "tools/git2cl/*" |
67+
filterdiff -x "b/src/jtag/drivers/libjaylink/*" -x "b/tools/git2cl/*" |
6068
./tools/scripts/checkpatch.pl --no-signoff -
6169
- ./bootstrap && ./configure --enable-remote-bitbang --enable-jtag_vpi $CONFIGURE_ARGS && make
6270
- file src/$EXECUTABLE

src/target/riscv/riscv-013.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3292,7 +3292,7 @@ static int riscv013_test_sba_config_reg(struct target *target,
32923292
LOG_INFO("ALL TESTS PASSED");
32933293
return ERROR_OK;
32943294
} else {
3295-
LOG_ERROR("%d TESTS FAILED", tests_failed);
3295+
LOG_ERROR("%d TESTS FAILED", tests_failed);
32963296
return ERROR_FAIL;
32973297
}
32983298

@@ -3369,9 +3369,8 @@ static int maybe_execute_fence_i(struct target *target)
33693369
{
33703370
RISCV013_INFO(info);
33713371
RISCV_INFO(r);
3372-
if (info->progbufsize + r->impebreak >= 3) {
3372+
if (info->progbufsize + r->impebreak >= 3)
33733373
return execute_fence(target);
3374-
}
33753374
return ERROR_OK;
33763375
}
33773376

0 commit comments

Comments
 (0)