blob: a5f6d8344a82b9de924cd1fa27aec009c55bdced [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 Geissler69721092021-07-23 12:57:00 -04009SRCREV = "8608d75d85f8e1b3b64b73a4fb6d19baec61ba5c"
10SRCBRANCH = "6.20.fb"
Brad Bishop316dfdd2018-06-25 12:45:53 -040011
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH};protocol=https \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 file://0001-cmake-Add-check-for-atomic-support.patch \
Andrew Geisslera2681d92020-10-16 10:17:07 -050014 file://0001-cmake-Use-exported-target-for-bz2.patch \
Andrew Geissler4b7c1152020-11-30 19:55:29 -060015 file://0001-folly-Use-SYS_futex-for-syscall.patch \
Andrew Geissler69721092021-07-23 12:57:00 -040016 file://0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch \
17 file://0001-range_tree-Implement-toku_time_now-for-rv32-rv64-in-.patch \
18 file://ppc64.patch \
19 file://mips.patch \
20 file://arm.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021 "
Brad Bishop316dfdd2018-06-25 12:45:53 -040022
Patrick Williams213cb262021-08-07 19:21:33 -050023SRC_URI:append:riscv32 = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
24SRC_URI:append:mips = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
25SRC_URI:remove:toolchain-clang:riscv32 = "file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
Andrew Geissler69721092021-07-23 12:57:00 -040026
Brad Bishop316dfdd2018-06-25 12:45:53 -040027S = "${WORKDIR}/git"
28
29inherit cmake
30
Brad Bishop15ae2502019-06-18 21:44:24 -040031PACKAGECONFIG ??= "bzip2 zlib lz4 gflags"
Brad Bishope42b3e32020-01-15 22:08:42 -050032PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
33PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
34PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
Brad Bishop15ae2502019-06-18 21:44:24 -040035PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd"
Brad Bishop316dfdd2018-06-25 12:45:53 -040036PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF"
Brad Bishop15ae2502019-06-18 21:44:24 -040037PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags"
Brad Bishop316dfdd2018-06-25 12:45:53 -040038
39# Tools and tests currently don't compile on armv5 so we disable them
40EXTRA_OECMAKE = "\
41 -DPORTABLE=ON \
42 -DWITH_TESTS=OFF \
Andrew Geisslera2681d92020-10-16 10:17:07 -050043 -DWITH_BENCHMARK_TOOLS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040044 -DWITH_TOOLS=OFF \
Brad Bishope42b3e32020-01-15 22:08:42 -050045 -DFAIL_ON_WARNINGS=OFF \
Brad Bishop316dfdd2018-06-25 12:45:53 -040046"
Brad Bishop19323692019-04-05 15:28:33 -040047
Patrick Williams213cb262021-08-07 19:21:33 -050048do_install:append() {
Brad Bishop19323692019-04-05 15:28:33 -040049 # fix for qa check buildpaths
50 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
51}
Andrew Geissler82c905d2020-04-13 13:39:40 -050052
Patrick Williams213cb262021-08-07 19:21:33 -050053LDFLAGS:append:riscv64 = " -pthread"