blob: c78f4467114a10a42a692ecc41c515f4b6af17e5 [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
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050010PV = "4.5"
11SRCREV = "0496d7c3de3e09da37ba492081c86159806ebb07"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050013 file://0001-Avoid-use-of-INSTALL_DIR-for-symlink-targets.patch \
14 "
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
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050020PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr zstd 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
Patrick Williams213cb262021-08-07 19:21:33 -050040ARM_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"