blob: 7ebc5ab1daa2fd5bbda16eab579da95bbebc7ed6 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "RocksDB an embeddable, persistent key-value store"
2DESCRIPTION = "RocksDB is library that provides an embeddable, persistent key-value store for fast storage."
3HOMEPAGE = "http://rocksdb.org/"
4LICENSE = "(Apache-2.0 | GPL-2.0) & BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7 file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
8
Andrew Geisslera2681d92020-10-16 10:17:07 -05009SRCREV = "48bfca38f6f175435052a59791922a1a453d9609"
10SRCBRANCH = "6.11.fb"
11PV = "6.11.4"
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 file://0001-cmake-Add-check-for-atomic-support.patch \
Andrew Geisslera2681d92020-10-16 10:17:07 -050015 file://0001-cmake-Use-exported-target-for-bz2.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016 "
Brad Bishop316dfdd2018-06-25 12:45:53 -040017
18S = "${WORKDIR}/git"
19
20inherit cmake
21
Brad Bishop15ae2502019-06-18 21:44:24 -040022PACKAGECONFIG ??= "bzip2 zlib lz4 gflags"
Brad Bishope42b3e32020-01-15 22:08:42 -050023PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
24PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
25PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
Brad Bishop15ae2502019-06-18 21:44:24 -040026PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd"
Brad Bishop316dfdd2018-06-25 12:45:53 -040027PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF"
Brad Bishop15ae2502019-06-18 21:44:24 -040028PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags"
Brad Bishop316dfdd2018-06-25 12:45:53 -040029
30# Tools and tests currently don't compile on armv5 so we disable them
31EXTRA_OECMAKE = "\
32 -DPORTABLE=ON \
33 -DWITH_TESTS=OFF \
Andrew Geisslera2681d92020-10-16 10:17:07 -050034 -DWITH_BENCHMARK_TOOLS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040035 -DWITH_TOOLS=OFF \
Brad Bishope42b3e32020-01-15 22:08:42 -050036 -DFAIL_ON_WARNINGS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040037"
Brad Bishop19323692019-04-05 15:28:33 -040038
39do_install_append() {
40 # fix for qa check buildpaths
41 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
42}
Andrew Geissler82c905d2020-04-13 13:39:40 -050043
44LDFLAGS_append_riscv64 = " -pthread"