Merge pull request #8518 from neheb/i
[feed/packages.git] / utils / mmc-utils / Makefile
1 #
2 # Copyright (C) 2015-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mmc-utils
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
15 PKG_SOURCE_DATE:=2018-12-09
16 PKG_SOURCE_VERSION:=aef913e31b659462fe6b9320d241676cba97f67b
17 PKG_MIRROR_HASH:=8c3d872be1392b7a140a36ce75ed48ef300ee6b6f1ce1b37dad1ad263d338dc3
18
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=
21
22 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/mmc-utils
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=Userspace tools for MMC/SD devices
30 URL:=http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
31 endef
32
33 define Package/mmc-utils/description
34 This package contains the userspace mmc utils, the userspace
35 counterpart to the Linux MMC/SD subsystem.
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" \
44 mmc
45 endef
46
47 define Package/mmc-utils/install
48 $(INSTALL_DIR) $(1)/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mmc $(1)/sbin
50 endef
51
52 $(eval $(call BuildPackage,mmc-utils))