1*4882a593SmuzhiyunSUMMARY = "Userspace utilities for fs-verity"
2*4882a593SmuzhiyunDESCRIPTION = "fs-verity is a Linux kernel feature that does transparent \
3*4882a593Smuzhiyunon-demand integrity/authenticity verification of the contents of read-only \
4*4882a593Smuzhiyunfiles, using a hidden Merkle tree (hash tree) associated with the file. The \
5*4882a593Smuzhiyunmechanism is similar to dm-verity, but implemented at the file level rather \
6*4882a593Smuzhiyunthan at the block device level."
7*4882a593SmuzhiyunHOMEPAGE = "https://www.kernel.org/doc/html/latest/filesystems/fsverity.html"
8*4882a593SmuzhiyunSECTION = "console"
9*4882a593SmuzhiyunLICENSE = "MIT"
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=bc974d217b525ea216a336adb73e1220"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSRCREV = "20e87c13075a8e5660a8d69fd6c93d4f7c5f01a5"
13*4882a593SmuzhiyunSRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git;branch=master"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunS = "${WORKDIR}/git"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunDEPENDS = "openssl"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunEXTRA_OEMAKE:append = " PREFIX=${prefix} LIBDIR=${libdir} USE_SHARED_LIB=1"
20*4882a593Smuzhiyun# We want to statically link the binary to libfsverity on native Windows
21*4882a593SmuzhiyunEXTRA_OEMAKE:remove:mingw32:class-nativesdk = "USE_SHARED_LIB=1"
22*4882a593SmuzhiyunEXTRA_OEMAKE:remove:mingw32:class-native = "USE_SHARED_LIB=1"
23*4882a593Smuzhiyun
24*4882a593Smuzhiyundo_install() {
25*4882a593Smuzhiyun        oe_runmake install DESTDIR=${D}
26*4882a593Smuzhiyun}
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunPACKAGES =+ "libfsverity"
29*4882a593SmuzhiyunFILES:libfsverity = "${libdir}/libfsverity*${SOLIBS}"
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
32