Files
rpi-buildroot/package/mmc-utils/mmc-utils.mk
Dario Binacchi e339bef04b package/mmc-utils: bump version to 1.0
This is the first tagged version of the package, so replace commit SHA
with version tag.

Change log since last version bump:

  d8a8358a7207 mmc-utils: Pass key_mac buffer to rpmb_get_key()
  a23ad7875b89 mmc-utils: Start to use the generic print_usage function
  e769d44ecb77 mmc-utils: Introduce a generic print_usage function
  6586fa5535dc mmc-utils: Simplify and streamline print_help function
  ec75d4b3b671 mmc-utils: Remove unused adv_help member from struct Command

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2025-06-25 15:54:46 +02:00

37 lines
1.3 KiB
Makefile

################################################################################
#
# mmc-utils
#
################################################################################
MMC_UTILS_VERSION = 1.0
MMC_UTILS_SITE = https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot
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. Starting from commit:
# https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/commit/?id=958227890690290ee766aaad1b92f3413f67048c
# they use AM_CFLAGS to set VERSION to first 6 digit of git SHA1, so
# let's do this here otherwise it won't be automatically set and build
# will fail
define MMC_UTILS_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) C=0 \
CFLAGS="$(MMC_UTILS_CFLAGS)" \
AM_CFLAGS='-DVERSION=\"$(shell echo $(MMC_UTILS_VERSION) | head -c 6)\"'
endef
define MMC_UTILS_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
endef
$(eval $(generic-package))