2014-05-02 19:10:33 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# upx
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-06-06 21:20:33 +02:00
|
|
|
UPX_VERSION = 3.96
|
|
|
|
UPX_SITE = https://github.com/upx/upx/releases/download/v$(UPX_VERSION)
|
|
|
|
UPX_SOURCE = upx-$(UPX_VERSION)-src.tar.xz
|
2017-03-30 15:43:32 +02:00
|
|
|
UPX_LICENSE = GPL-2.0+
|
2014-05-02 19:10:33 +02:00
|
|
|
UPX_LICENSE_FILES = COPYING
|
2021-03-05 23:27:44 +01:00
|
|
|
UPX_CPE_ID_VENDOR = upx_project
|
2014-05-02 19:10:33 +02:00
|
|
|
|
2021-03-31 23:32:47 +02:00
|
|
|
# 0001-Check-DT_REL-DT_RELA-DT_RELSZ-DT_RELASZ.patch
|
|
|
|
UPX_IGNORE_CVES += CVE-2021-20285
|
|
|
|
|
2015-01-03 17:25:07 +01:00
|
|
|
HOST_UPX_DEPENDENCIES = host-ucl host-zlib
|
2014-05-02 19:10:33 +02:00
|
|
|
|
|
|
|
# We need to specify all, otherwise the default target only prints a message
|
|
|
|
# stating to "please choose a target for 'make'"... :-(
|
|
|
|
define HOST_UPX_BUILD_CMDS
|
2020-06-06 21:20:32 +02:00
|
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
|
|
|
|
UPX_UCLDIR=$(HOST_DIR) CXXFLAGS_WERROR= -C $(@D) all
|
2014-05-02 19:10:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
# UPX has no install procedure, so install it manually.
|
|
|
|
define HOST_UPX_INSTALL_CMDS
|
2017-07-05 13:14:19 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/upx.out $(HOST_DIR)/bin/upx
|
2014-05-02 19:10:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|