1*4882a593Smuzhiyun# Note, we can probably remove the lzma option as it has be replaced with xz, 2*4882a593Smuzhiyun# and I don't think the kernel supports it any more. 3*4882a593SmuzhiyunSUMMARY = "Tools for manipulating SquashFS filesystems" 4*4882a593SmuzhiyunHOMEPAGE = "https://github.com/plougher/squashfs-tools" 5*4882a593SmuzhiyunDESCRIPTION = "Tools to create and extract Squashfs filesystems." 6*4882a593SmuzhiyunSECTION = "base" 7*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunPV = "4.5" 11*4882a593SmuzhiyunSRCREV = "0496d7c3de3e09da37ba492081c86159806ebb07" 12*4882a593SmuzhiyunSRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https;branch=master \ 13*4882a593Smuzhiyun file://0001-Avoid-use-of-INSTALL_DIR-for-symlink-targets.patch \ 14*4882a593Smuzhiyun file://CVE-2021-41072-requisite-1.patch;striplevel=2 \ 15*4882a593Smuzhiyun file://CVE-2021-41072-requisite-2.patch;striplevel=2 \ 16*4882a593Smuzhiyun file://CVE-2021-41072-requisite-3.patch;striplevel=2 \ 17*4882a593Smuzhiyun file://CVE-2021-41072.patch;striplevel=2 \ 18*4882a593Smuzhiyun " 19*4882a593SmuzhiyunUPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunS = "${WORKDIR}/git/squashfs-tools" 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunEXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunPACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr zstd reproducible" 26*4882a593SmuzhiyunPACKAGECONFIG[gzip] = "GZIP_SUPPORT=1,GZIP_SUPPORT=0,zlib" 27*4882a593SmuzhiyunPACKAGECONFIG[xz] = "XZ_SUPPORT=1,XZ_SUPPORT=0,xz" 28*4882a593SmuzhiyunPACKAGECONFIG[lzo] = "LZO_SUPPORT=1,LZO_SUPPORT=0,lzo" 29*4882a593SmuzhiyunPACKAGECONFIG[lz4] = "LZ4_SUPPORT=1,LZ4_SUPPORT=0,lz4" 30*4882a593SmuzhiyunPACKAGECONFIG[lzma] = "LZMA_XZ_SUPPORT=1,LZMA_XZ_SUPPORT=0,xz" 31*4882a593SmuzhiyunPACKAGECONFIG[xattr] = "XATTR_SUPPORT=1,XATTR_SUPPORT=0,attr" 32*4882a593SmuzhiyunPACKAGECONFIG[zstd] = "ZSTD_SUPPORT=1,ZSTD_SUPPORT=0,zstd" 33*4882a593SmuzhiyunPACKAGECONFIG[reproducible] = "REPRODUCIBLE_DEFAULT=1,REPRODUCIBLE_DEFAULT=0," 34*4882a593Smuzhiyun 35*4882a593Smuzhiyundo_compile() { 36*4882a593Smuzhiyun oe_runmake all 37*4882a593Smuzhiyun} 38*4882a593Smuzhiyun 39*4882a593Smuzhiyundo_install() { 40*4882a593Smuzhiyun install -d "${D}${includedir}" 41*4882a593Smuzhiyun oe_runmake install INSTALL_DIR=${D}${sbindir} 42*4882a593Smuzhiyun install -m 0644 "${S}"/squashfs_fs.h "${D}${includedir}" 43*4882a593Smuzhiyun} 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunARM_INSTRUCTION_SET:armv4 = "arm" 46*4882a593SmuzhiyunARM_INSTRUCTION_SET:armv5 = "arm" 47*4882a593SmuzhiyunARM_INSTRUCTION_SET:armv6 = "arm" 48*4882a593Smuzhiyun 49*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 50*4882a593Smuzhiyun 51*4882a593SmuzhiyunCVE_PRODUCT = "squashfs" 52