Merge pull request #19372 from cotequeiroz/libgd
[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-09-20
16 PKG_SOURCE_VERSION:=2a934139cfeef1249e46f50fbec548f11c2dd8ca
17 PKG_MIRROR_HASH:=3ddf26ca9ddf5bb02a749e7dbc8455a924a0340e3fa7dd4e17fac0c4ff1d5883
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))