blob: 2b1409d78d34d7b492d891346b78da9926124c61 [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"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06004HOMEPAGE = "https://github.com/plougher/squashfs-tools"
5DESCRIPTION = "Tools to create and extract Squashfs filesystems."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006SECTION = "base"
Brad Bishop19323692019-04-05 15:28:33 -04007LICENSE = "GPL-2"
8LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
Brad Bishop64c979e2019-11-04 13:55:29 -050010PV = "4.4"
11SRCREV = "52eb4c279cd283ed9802dd1ceb686560b22ffb67"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \
Andrew Geissler1e34c2d2020-05-29 16:02:59 -050013 file://0001-squashfs-tools-fix-build-failure-against-gcc-10.patch;striplevel=2 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16S = "${WORKDIR}/git/squashfs-tools"
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"