Merge pull request #18472 from sotux/master
[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/utils/mmc/mmc-utils.git
15 PKG_SOURCE_DATE:=2022-04-17
16 PKG_SOURCE_VERSION:=b7e4d5a6ae9942d26a11de9b05ae7d52c0802802
17 PKG_MIRROR_HASH:=7865294ec7619d6696bb06a6e2ad4a3803a0bfbd9754b7d0d617bfb30ab828a1
18
19 PKG_LICENSE:=GPL-2.0-only
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:=https://git.kernel.org/pub/scm/utils/mmc/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))