blob: bffc05e812213ae5d4f0c548edd4b0d45c985cde [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"
Brad Bishop19323692019-04-05 15:28:33 -04008LIC_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"
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https;branch=master \
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050013 file://0001-Avoid-use-of-INSTALL_DIR-for-symlink-targets.patch \
Andrew Geissler595f6302022-01-24 19:11:47 +000014 file://CVE-2021-41072-requisite-1.patch;striplevel=2 \
15 file://CVE-2021-41072-requisite-2.patch;striplevel=2 \
16 file://CVE-2021-41072-requisite-3.patch;striplevel=2 \
17 file://CVE-2021-41072.patch;striplevel=2 \
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050018 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20S = "${WORKDIR}/git/squashfs-tools"
21
Brad Bishop19323692019-04-05 15:28:33 -040022EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}"
23
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050024PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr zstd reproducible"
Brad Bishop19323692019-04-05 15:28:33 -040025PACKAGECONFIG[gzip] = "GZIP_SUPPORT=1,GZIP_SUPPORT=0,zlib"
26PACKAGECONFIG[xz] = "XZ_SUPPORT=1,XZ_SUPPORT=0,xz"
27PACKAGECONFIG[lzo] = "LZO_SUPPORT=1,LZO_SUPPORT=0,lzo"
28PACKAGECONFIG[lz4] = "LZ4_SUPPORT=1,LZ4_SUPPORT=0,lz4"
29PACKAGECONFIG[lzma] = "LZMA_XZ_SUPPORT=1,LZMA_XZ_SUPPORT=0,xz"
30PACKAGECONFIG[xattr] = "XATTR_SUPPORT=1,XATTR_SUPPORT=0,attr"
Brad Bishop96ff1982019-08-19 13:50:42 -040031PACKAGECONFIG[zstd] = "ZSTD_SUPPORT=1,ZSTD_SUPPORT=0,zstd"
32PACKAGECONFIG[reproducible] = "REPRODUCIBLE_DEFAULT=1,REPRODUCIBLE_DEFAULT=0,"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033
34do_compile() {
Brad Bishop64c979e2019-11-04 13:55:29 -050035 oe_runmake all
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036}
Brad Bishop19323692019-04-05 15:28:33 -040037
Brad Bishop64c979e2019-11-04 13:55:29 -050038do_install() {
William A. Kennington IIIac69b482021-06-02 12:28:27 -070039 install -d "${D}${includedir}"
Brad Bishop64c979e2019-11-04 13:55:29 -050040 oe_runmake install INSTALL_DIR=${D}${sbindir}
William A. Kennington IIIac69b482021-06-02 12:28:27 -070041 install -m 0644 "${S}"/squashfs_fs.h "${D}${includedir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042}
43
Patrick Williams213cb262021-08-07 19:21:33 -050044ARM_INSTRUCTION_SET:armv4 = "arm"
45ARM_INSTRUCTION_SET:armv5 = "arm"
46ARM_INSTRUCTION_SET:armv6 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047
48BBCLASSEXTEND = "native nativesdk"
Brad Bishopc342db32019-05-15 21:57:59 -040049
50CVE_PRODUCT = "squashfs"