0f417e2898
Let's also switch to a _SITE that can be accessed from a web browser and results to be the official one for mmc-utils. The license file we use is a header, so it changes every now and then, even when the licenins terms do not. Switch to using README instead, as it identifies the license (albeit just by name, b ut that's enough for us), which is still GPL-2.0 (only). Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> [yann.morin.1998@free.fr: switch to README] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
34 lines
1022 B
Makefile
34 lines
1022 B
Makefile
################################################################################
|
|
#
|
|
# mmc-utils
|
|
#
|
|
################################################################################
|
|
|
|
MMC_UTILS_VERSION = d4c2910981ff99b983734426dfa99632fb81ac6b
|
|
MMC_UTILS_SITE = https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
|
MMC_UTILS_SITE_METHOD = git
|
|
MMC_UTILS_LICENSE = GPL-2.0
|
|
MMC_UTILS_LICENSE_FILES = README
|
|
|
|
MMC_UTILS_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_PACKAGE_MMC_UTILS_ENABLE_DANGEROUS_COMMANDS),y)
|
|
MMC_UTILS_CFLAGS += -DDANGEROUS_COMMANDS_ENABLED
|
|
endif
|
|
|
|
# override AM_CFLAGS as the project Makefile uses it to pass
|
|
# -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2, and the latter conflicts
|
|
# with the _FORTIFY_SOURCE that we pass when hardening options are
|
|
# enabled.
|
|
define MMC_UTILS_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
|
CFLAGS="$(MMC_UTILS_CFLAGS)" \
|
|
AM_CFLAGS=
|
|
endef
|
|
|
|
define MMC_UTILS_INSTALL_TARGET_CMDS
|
|
$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|