b9db38d370
FOO_CPE_ID_VALID really ought to be an internal implementaion detail. Packages that really want to trigger their CPE defintitions really should set one of the actual variables to a meaningful value. There are two CPE-related variables that we could chose to set to replace FOO_CPE_ID_VALID: FOO_CPE_ID_VENDOR and FOO_CPE_ID_PRODUCT. Between those two, _VENDOR more often diverges from the default than _PRODUCT does, so that's what we use. ---8<------8<------8<------8<------8<--- #!/bin/bash # Replace FOO_CPE_ID_VALID = YES with FOO_CPE_ID_VENDOR = foo_project for i in $(git grep -l -E '[^)]_CPE_ID_VALID = YES' package support); do pkg="$(basename "${i%/*}")" sed -r -i -e "s/_CPE_ID_VALID = YES/_CPE_ID_VENDOR = ${pkg}_project/" "${i}" done ---8<------8<------8<------8<------8<--- Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Matthew Weber <matthew.weber@rockwellcollins.com> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Peter: update cpe-test comment to reflect pkg3 change] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
97 lines
2.4 KiB
Makefile
97 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# squashfs
|
|
#
|
|
################################################################################
|
|
|
|
SQUASHFS_VERSION = 4.4
|
|
SQUASHFS_SITE = $(call github,plougher,squashfs-tools,$(SQUASHFS_VERSION))
|
|
SQUASHFS_LICENSE = GPL-2.0+
|
|
SQUASHFS_LICENSE_FILES = COPYING
|
|
SQUASHFS_CPE_ID_VENDOR = squashfs_project
|
|
SQUASHFS_MAKE_ARGS = XATTR_SUPPORT=1
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZ4),y)
|
|
SQUASHFS_DEPENDENCIES += lz4
|
|
SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=1 COMP_DEFAULT=lz4
|
|
else
|
|
SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA),y)
|
|
SQUASHFS_DEPENDENCIES += xz
|
|
SQUASHFS_MAKE_ARGS += LZMA_XZ_SUPPORT=1 COMP_DEFAULT=lzma
|
|
else
|
|
SQUASHFS_MAKE_ARGS += LZMA_XZ_SUPPORT=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_XZ),y)
|
|
SQUASHFS_DEPENDENCIES += xz
|
|
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=1 COMP_DEFAULT=xz
|
|
else
|
|
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZO),y)
|
|
SQUASHFS_DEPENDENCIES += lzo
|
|
SQUASHFS_MAKE_ARGS += LZO_SUPPORT=1 COMP_DEFAULT=lzo
|
|
else
|
|
SQUASHFS_MAKE_ARGS += LZO_SUPPORT=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_ZSTD),y)
|
|
SQUASHFS_DEPENDENCIES += zstd
|
|
SQUASHFS_MAKE_ARGS += ZSTD_SUPPORT=1 COMP_DEFAULT=zstd
|
|
else
|
|
SQUASHFS_MAKE_ARGS += ZSTD_SUPPORT=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUASHFS_GZIP),y)
|
|
SQUASHFS_DEPENDENCIES += zlib
|
|
SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=1 COMP_DEFAULT=gzip
|
|
else
|
|
SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=0
|
|
endif
|
|
|
|
HOST_SQUASHFS_DEPENDENCIES = host-zlib host-lz4 host-lzo host-xz host-zstd
|
|
|
|
HOST_SQUASHFS_MAKE_ARGS = \
|
|
XATTR_SUPPORT=1 \
|
|
XZ_SUPPORT=1 \
|
|
GZIP_SUPPORT=1 \
|
|
LZ4_SUPPORT=1 \
|
|
LZO_SUPPORT=1 \
|
|
LZMA_XZ_SUPPORT=1 \
|
|
ZSTD_SUPPORT=1
|
|
|
|
define SQUASHFS_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) \
|
|
CC="$(TARGET_CC)" \
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) -fgnu89-inline" \
|
|
EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
$(SQUASHFS_MAKE_ARGS) \
|
|
-C $(@D)/squashfs-tools/
|
|
endef
|
|
|
|
define SQUASHFS_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(SQUASHFS_MAKE_ARGS) \
|
|
-C $(@D)/squashfs-tools/ INSTALL_DIR=$(TARGET_DIR)/usr/bin install
|
|
endef
|
|
|
|
define HOST_SQUASHFS_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) \
|
|
CC="$(HOSTCC)" \
|
|
EXTRA_CFLAGS="$(HOST_CFLAGS)" \
|
|
EXTRA_LDFLAGS="$(HOST_LDFLAGS)" \
|
|
$(HOST_SQUASHFS_MAKE_ARGS) \
|
|
-C $(@D)/squashfs-tools/
|
|
endef
|
|
|
|
define HOST_SQUASHFS_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_SQUASHFS_MAKE_ARGS) \
|
|
-C $(@D)/squashfs-tools/ INSTALL_DIR=$(HOST_DIR)/bin install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|