]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake/erasure-code: provide vendored jerasure as Jerasure::jerasure target
authorKefu Chai <k.chai@proxmox.com>
Wed, 8 Apr 2026 10:35:35 +0000 (18:35 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 8 Apr 2026 10:42:19 +0000 (18:42 +0800)
commitebbb3d75300d77cd14959e38f26131281a0b46de
treee4bf53d6687a5118748fb7298efa321bb07060e3
parentbef07c43f8e810b05055c43984e7525e6ecc8ea4
cmake/erasure-code: provide vendored jerasure as Jerasure::jerasure target

Wrap the vendored jerasure and gf-complete object libraries into a
static library (jerasure_vendored) and expose it via a Jerasure::jerasure
alias target. This prepares for an upcoming WITH_SYSTEM_JERASURE option
that will provide the same target backed by system libraries.

Split jerasure_init.cc (ceph's own galois field initialization glue)
into a separate jerasure_init_objs target, since it is not part of the
jerasure library and must always be built from ceph's source.

Normalize shec's include paths to use bare #include "jerasure.h"
instead of #include "jerasure/include/jerasure.h", consistent with the
jerasure plugin and compatible with both vendored and system headers.

No functional change: ec_jerasure, ec_shec, and their legacy flavor
variants produce identical binaries.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/erasure-code/jerasure/CMakeLists.txt
src/erasure-code/shec/CMakeLists.txt
src/erasure-code/shec/ErasureCodeShec.cc
src/erasure-code/shec/determinant.c