blob: 4fd33f80482e50caeb7d189d8c1e52a1b642ce17 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# Note, we can probably remove the lzma option as it has be replaced with xz,
2# and I don't think the kernel supports it any more.
3SUMMARY = "Tools for manipulating SquashFS filesystems"
4SECTION = "base"
Brad Bishop19323692019-04-05 15:28:33 -04005LICENSE = "GPL-2"
6LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Brad Bishop64c979e2019-11-04 13:55:29 -05008PV = "4.4"
9SRCREV = "52eb4c279cd283ed9802dd1ceb686560b22ffb67"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
13S = "${WORKDIR}/git/squashfs-tools"
14
Brad Bishop15ae2502019-06-18 21:44:24 -040015# needs FNM_EXTMATCH
16COMPATIBLE_HOST_libc-musl = 'null'
17
Brad Bishop19323692019-04-05 15:28:33 -040018EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}"
19
Brad Bishop96ff1982019-08-19 13:50:42 -040020PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr reproducible"
Brad Bishop19323692019-04-05 15:28:33 -040021PACKAGECONFIG[gzip] = "GZIP_SUPPORT=1,GZIP_SUPPORT=0,zlib"
22PACKAGECONFIG[xz] = "XZ_SUPPORT=1,XZ_SUPPORT=0,xz"
23PACKAGECONFIG[lzo] = "LZO_SUPPORT=1,LZO_SUPPORT=0,lzo"
24PACKAGECONFIG[lz4] = "LZ4_SUPPORT=1,LZ4_SUPPORT=0,lz4"
25PACKAGECONFIG[lzma] = "LZMA_XZ_SUPPORT=1,LZMA_XZ_SUPPORT=0,xz"
26PACKAGECONFIG[xattr] = "XATTR_SUPPORT=1,XATTR_SUPPORT=0,attr"
Brad Bishop96ff1982019-08-19 13:50:42 -040027PACKAGECONFIG[zstd] = "ZSTD_SUPPORT=1,ZSTD_SUPPORT=0,zstd"
28PACKAGECONFIG[reproducible] = "REPRODUCIBLE_DEFAULT=1,REPRODUCIBLE_DEFAULT=0,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
30do_compile() {
Brad Bishop64c979e2019-11-04 13:55:29 -050031 oe_runmake all
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032}
Brad Bishop19323692019-04-05 15:28:33 -040033
Brad Bishop64c979e2019-11-04 13:55:29 -050034do_install() {
35 oe_runmake install INSTALL_DIR=${D}${sbindir}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036}
37
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038ARM_INSTRUCTION_SET_armv4 = "arm"
39ARM_INSTRUCTION_SET_armv5 = "arm"
40ARM_INSTRUCTION_SET_armv6 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041
42BBCLASSEXTEND = "native nativesdk"
Brad Bishopc342db32019-05-15 21:57:59 -040043
44CVE_PRODUCT = "squashfs"