blob: 982a43f8899a17566376cbdbab5715f4d65a7375 [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"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00007LICENSE = "GPL-2.0-only"
Patrick Williams03907ee2022-05-01 06:28:52 -05008LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
Patrick Williams520786c2023-06-25 16:20:36 -050010PV = "4.6.1"
11SRCREV = "d8cb82d9840330f9344ec37b992595b5d7b44184"
12SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https;branch=v6.1.1"
Andrew Geissler9aee5002022-03-30 16:27:02 +000013UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
Patrick Williams03907ee2022-05-01 06:28:52 -050015S = "${WORKDIR}/git"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
Brad Bishop19323692019-04-05 15:28:33 -040017EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}"
18
Andrew Geissler87f5cff2022-09-30 13:13:31 -050019PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr zstd reproducible"
Brad Bishop19323692019-04-05 15:28:33 -040020PACKAGECONFIG[gzip] = "GZIP_SUPPORT=1,GZIP_SUPPORT=0,zlib"
21PACKAGECONFIG[xz] = "XZ_SUPPORT=1,XZ_SUPPORT=0,xz"
22PACKAGECONFIG[lzo] = "LZO_SUPPORT=1,LZO_SUPPORT=0,lzo"
23PACKAGECONFIG[lz4] = "LZ4_SUPPORT=1,LZ4_SUPPORT=0,lz4"
24PACKAGECONFIG[lzma] = "LZMA_XZ_SUPPORT=1,LZMA_XZ_SUPPORT=0,xz"
25PACKAGECONFIG[xattr] = "XATTR_SUPPORT=1,XATTR_SUPPORT=0,attr"
Brad Bishop96ff1982019-08-19 13:50:42 -040026PACKAGECONFIG[zstd] = "ZSTD_SUPPORT=1,ZSTD_SUPPORT=0,zstd"
27PACKAGECONFIG[reproducible] = "REPRODUCIBLE_DEFAULT=1,REPRODUCIBLE_DEFAULT=0,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028
29do_compile() {
Patrick Williams03907ee2022-05-01 06:28:52 -050030 cd ${S}/squashfs-tools
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() {
Patrick Williams03907ee2022-05-01 06:28:52 -050035 cd ${S}/squashfs-tools
William A. Kennington IIIac69b482021-06-02 12:28:27 -070036 install -d "${D}${includedir}"
Patrick Williams03907ee2022-05-01 06:28:52 -050037 oe_runmake install INSTALL_PREFIX=${D}${prefix} INSTALL_MANPAGES_DIR=${D}${datadir}/man/man1
38 install -m 0644 "${S}"/squashfs-tools/squashfs_fs.h "${D}${includedir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039}
40
Patrick Williams213cb262021-08-07 19:21:33 -050041ARM_INSTRUCTION_SET:armv4 = "arm"
42ARM_INSTRUCTION_SET:armv5 = "arm"
43ARM_INSTRUCTION_SET:armv6 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044
45BBCLASSEXTEND = "native nativesdk"
Brad Bishopc342db32019-05-15 21:57:59 -040046
47CVE_PRODUCT = "squashfs"