Skip to content

Commit 2ac2dde

Browse files
cbmc: allow fetching while configure
till diffblue/cbmc#6582 is resolved. Additionally disable building tests Closes #8679 Signed-off-by: Konrad Weihmann <[email protected]>
1 parent 05cd0d8 commit 2ac2dde

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

recipes-sca/cbmc-native/cbmc-native_5.48.0.bb

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ DEPENDS += "\
1010
ninja-native \
1111
"
1212

13-
SRC_URI = "git://github.com/diffblue/cbmc.git;protocol=https;branch=develop \
14-
file://0001-diable-goto-gcc-regression-tests.patch"
13+
MINISAT_VERSION = "2.2.1"
14+
15+
SRC_URI = "\
16+
git://github.com/diffblue/cbmc.git;protocol=https;branch=develop \
17+
file://0001-diable-goto-gcc-regression-tests.patch \
18+
"
1519

1620
SRCREV = "b79bd515ca20259287602abd68d5a32c276dbdd9"
21+
SRC_URI[minisat2.sha256sum] = "e54afa3c192c1753bc8075c0c7e126d5c495d9066e3f90a2588091149ac9ca40"
1722

1823
UPSTREAM_CHECK_GITTAGREGEX = "cbmc-(?P<pver>[\d\.a-f]+)"
1924

@@ -25,9 +30,17 @@ inherit native
2530

2631
SCA_TOOL_DESCRIPTION = "cbmc"
2732

28-
EXTRA_OECMAKE += "-DWITH_JBMC=OFF -DWITH_MEMORY_ANALYZER=ON"
33+
EXTRA_OECMAKE += "\
34+
-DWITH_JBMC=OFF \
35+
-DWITH_MEMORY_ANALYZER=ON \
36+
-Denable_cbmc_tests=OFF \
37+
-Dsat_impl=minisat2 \
38+
"
2939
CXXFLAGS += "-Wno-error=maybe-uninitialized"
3040

41+
# See https://github.com/diffblue/cbmc/issues/6582
42+
do_configure[network] = "1"
43+
3144
do_install() {
3245
install -d ${D}${datadir}
3346
install -d ${D}${bindir}

0 commit comments

Comments
 (0)