blob: b9038df81db9c97ed21efbebab275ed5ba512372 [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 Geissler82c905d2020-04-13 13:39:40 -05009SRCREV = "551a110918493a19d11243f53408b97485de1411"
10SRCBRANCH = "6.6.fb"
11PV = "6.6.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} \
Brad Bishope42b3e32020-01-15 22:08:42 -050014 file://0001-db-write_thread.cc-Initialize-state.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050015 file://0001-cmake-Add-check-for-atomic-support.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 \
34 -DWITH_TOOLS=OFF \
Brad Bishope42b3e32020-01-15 22:08:42 -050035 -DFAIL_ON_WARNINGS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040036"
Brad Bishop19323692019-04-05 15:28:33 -040037
38do_install_append() {
39 # fix for qa check buildpaths
40 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
41}
Andrew Geissler82c905d2020-04-13 13:39:40 -050042
43LDFLAGS_append_riscv64 = " -pthread"