aboutsummaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb
blob: 47613207af2942b972516f4dd90b82e0a2bd7786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTION = "Maintenance tools for OverlayFS"
HOMEPAGE = "https://github.com/kmxz/overlayfs-tools"
LICENSE = "WTFPL"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f312a7c4d02230e8f2b537295d375c69"

SRC_URI = "\
    git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master \
"

PV = "1.0+git"
SRCREV = "b5e5a829895ac98ccfe4629fbfbd8b819262bd00"

S = "${WORKDIR}/git"
B = "${S}"

# Required to have the fts.h header for musl
DEPENDS:append:libc-musl = " fts"

EXTRA_OEMAKE += "'CC=${CC} -O2'"
# Fix the missing fts libs when using musl
EXTRA_OEMAKE:append:libc-musl = " LDLIBS=-lfts"
TARGET_CC_ARCH += "${LDFLAGS}"

do_install () {
    install -d ${D}${bindir}
    install -m 0755 ${B}/overlay ${D}${bindir}
    install -m 0755 ${B}/fsck.overlay ${D}${bindir}
}