af31c309e7
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
912 B
Makefile
37 lines
912 B
Makefile
################################################################################
|
|
#
|
|
# kexec
|
|
#
|
|
################################################################################
|
|
|
|
KEXEC_VERSION = 2.0.14
|
|
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
|
|
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
|
|
KEXEC_LICENSE = GPL-2.0
|
|
KEXEC_LICENSE_FILES = COPYING
|
|
|
|
# Makefile expects $STRIP -o to work, so needed for BR2_STRIP_none
|
|
KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
|
|
|
|
ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
|
|
KEXEC_CONF_OPTS += --with-zlib
|
|
KEXEC_DEPENDENCIES = zlib
|
|
else
|
|
KEXEC_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
KEXEC_CONF_OPTS += --with-lzma
|
|
KEXEC_DEPENDENCIES += xz
|
|
else
|
|
KEXEC_CONF_OPTS += --without-lzma
|
|
endif
|
|
|
|
define KEXEC_REMOVE_LIB_TOOLS
|
|
rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
|
|
endef
|
|
|
|
KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
|
|
|
|
$(eval $(autotools-package))
|