Files
packages/utils/mmc-utils/Makefile
Michael Heimpold 4fd9971c59 mmc-utils: update to upstream's 8f41ccbb40b8 commit
Summary of upstream's highlight changes:
- recognize ext_csd_rev 9
- fix CID manufacturing date decoding
- add ability to flush optional eMMC cache
- upcoming versioning
- RPMB handling refactoring
- improved FFU support
- doc/help refactoring/cleanups

This also requires updating our patch for fortify-ing and
we need to add a flag to disable a call to 'sparse' tool.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2026-01-21 18:54:04 +01:00

54 lines
1.4 KiB
Makefile

#
# Copyright (C) 2015-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mmc-utils
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
PKG_SOURCE_DATE:=2025-12-21
PKG_SOURCE_VERSION:=8f41ccbb40b887325f243bd73695a9e814610520
PKG_MIRROR_HASH:=89fcbf96113e9407dc0890bff71425daed73c20f8a83a8fdadcc69916a32881f
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
include $(INCLUDE_DIR)/package.mk
define Package/mmc-utils
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Userspace tools for MMC/SD devices
URL:=https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
endef
define Package/mmc-utils/description
This package contains the userspace mmc utils, the userspace
counterpart to the Linux MMC/SD subsystem.
endef
define Build/Configure
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 \
-UVERSION -DVERSION=\\\"$(shell echo $(PKG_SOURCE_VERSION) | cut -c -6)\\\"" C=0 \
mmc
endef
define Package/mmc-utils/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mmc $(1)/sbin
endef
$(eval $(call BuildPackage,mmc-utils))