1################################################################################ 2# 3# upx 4# 5################################################################################ 6 7UPX_VERSION = 3.96 8UPX_SITE = https://github.com/upx/upx/releases/download/v$(UPX_VERSION) 9UPX_SOURCE = upx-$(UPX_VERSION)-src.tar.xz 10UPX_LICENSE = GPL-2.0+ 11UPX_LICENSE_FILES = COPYING 12UPX_CPE_ID_VENDOR = upx_project 13 14# 0001-Check-DT_REL-DT_RELA-DT_RELSZ-DT_RELASZ.patch 15UPX_IGNORE_CVES += CVE-2021-20285 16 17HOST_UPX_DEPENDENCIES = host-ucl host-zlib 18 19# We need to specify all, otherwise the default target only prints a message 20# stating to "please choose a target for 'make'"... :-( 21define HOST_UPX_BUILD_CMDS 22 $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ 23 UPX_UCLDIR=$(HOST_DIR) CXXFLAGS_WERROR= -C $(@D) all 24endef 25 26# UPX has no install procedure, so install it manually. 27define HOST_UPX_INSTALL_CMDS 28 $(INSTALL) -D -m 0755 $(@D)/src/upx.out $(HOST_DIR)/bin/upx 29endef 30 31$(eval $(host-generic-package)) 32