2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=https
://git.kernel.org
/pub
/scm
/utils
/mmc
/mmc-utils.git
15 PKG_SOURCE_DATE
:=2023-01-16
16 PKG_SOURCE_VERSION
:=d4c2910981ff99b983734426dfa99632fb81ac6b
17 PKG_MIRROR_HASH
:=b124409d3482db1e63822a7860b7e4a0dfe6c3545da967283979fe805a287893
19 PKG_LICENSE
:=GPL-2.0
-only
22 PKG_MAINTAINER
:=Michael Heimpold
<mhei@heimpold.de
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/mmc-utils
29 TITLE
:=Userspace tools for MMC
/SD devices
30 URL
:=https
://git.kernel.org
/pub
/scm
/utils
/mmc
/mmc-utils.git
33 define Package
/mmc-utils
/description
34 This package contains the userspace mmc utils
, the userspace
35 counterpart to the Linux MMC
/SD subsystem.
38 define Build
/Configure
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 $(TARGET_CONFIGURE_OPTS
) CFLAGS
="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" \
47 define Package
/mmc-utils
/install
48 $(INSTALL_DIR
) $(1)/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mmc
$(1)/sbin
52 $(eval
$(call BuildPackage
,mmc-utils
))