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
/linux
/kernel
/git
/cjb
/mmc-utils.git
15 PKG_SOURCE_DATE
:=2017-03-20
16 PKG_SOURCE_VERSION
:=37c86e60c0442fef570b75cd81aeb1db4d0cbafd
17 PKG_MIRROR_HASH
:=652958e818d984804be6846ba504961f31c6e98414d0d34ec7a0d76d0844584a
22 PKG_MAINTAINER
:=Michael Heimpold
<mhei@heimpold.de
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/mmc-utils
31 TITLE
:=Userspace tools for MMC
/SD devices
32 URL
:=http
://git.kernel.org
/cgit
/linux
/kernel
/git
/cjb
/mmc-utils.git
35 define Package
/mmc-utils
/description
36 This package contains the userspace mmc utils
, the userspace
37 counterpart to the Linux MMC
/SD subsystem.
40 define Build
/Configure
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 $(TARGET_CONFIGURE_OPTS
) CFLAGS
="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" \
49 define Package
/mmc-utils
/install
50 $(INSTALL_DIR
) $(1)/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mmc
$(1)/sbin
54 $(eval
$(call BuildPackage
,mmc-utils
))