blob: 137e5097fa6713fe0eee1452f37ddd828a39e301 [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() {
William A. Kennington IIIac69b482021-06-02 12:28:27 -070035 install -d "${D}${includedir}"
Brad Bishop64c979e2019-11-04 13:55:29 -050036 oe_runmake install INSTALL_DIR=${D}${sbindir}
William A. Kennington IIIac69b482021-06-02 12:28:27 -070037 install -m 0644 "${S}"/squashfs_fs.h "${D}${includedir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038}
39
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040ARM_INSTRUCTION_SET_armv4 = "arm"
41ARM_INSTRUCTION_SET_armv5 = "arm"
42ARM_INSTRUCTION_SET_armv6 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043
44BBCLASSEXTEND = "native nativesdk"
Brad Bishopc342db32019-05-15 21:57:59 -040045
46CVE_PRODUCT = "squashfs"