blob: 117a16b9e8de384969d07ac35a561072e46587b8 [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 Geissler4b7c1152020-11-30 19:55:29 -06009SRCREV = "f3e33549c151f30ac4eb7c22356c6d0331f37652"
10SRCBRANCH = "6.12.fb"
11PV = "6.12.7"
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 \
Andrew Geissler4b7c1152020-11-30 19:55:29 -060016 file://0001-folly-Use-SYS_futex-for-syscall.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017 "
Brad Bishop316dfdd2018-06-25 12:45:53 -040018
19S = "${WORKDIR}/git"
20
21inherit cmake
22
Brad Bishop15ae2502019-06-18 21:44:24 -040023PACKAGECONFIG ??= "bzip2 zlib lz4 gflags"
Brad Bishope42b3e32020-01-15 22:08:42 -050024PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
25PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
26PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
Brad Bishop15ae2502019-06-18 21:44:24 -040027PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd"
Brad Bishop316dfdd2018-06-25 12:45:53 -040028PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF"
Brad Bishop15ae2502019-06-18 21:44:24 -040029PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags"
Brad Bishop316dfdd2018-06-25 12:45:53 -040030
31# Tools and tests currently don't compile on armv5 so we disable them
32EXTRA_OECMAKE = "\
33 -DPORTABLE=ON \
34 -DWITH_TESTS=OFF \
Andrew Geisslera2681d92020-10-16 10:17:07 -050035 -DWITH_BENCHMARK_TOOLS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040036 -DWITH_TOOLS=OFF \
Brad Bishope42b3e32020-01-15 22:08:42 -050037 -DFAIL_ON_WARNINGS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040038"
Brad Bishop19323692019-04-05 15:28:33 -040039
40do_install_append() {
41 # fix for qa check buildpaths
42 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
43}
Andrew Geissler82c905d2020-04-13 13:39:40 -050044
45LDFLAGS_append_riscv64 = " -pthread"