lua-rs232: fix compilation with GCC13
[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:=2023-01-16
16 PKG_SOURCE_VERSION:=d4c2910981ff99b983734426dfa99632fb81ac6b
17 PKG_MIRROR_HASH:=b124409d3482db1e63822a7860b7e4a0dfe6c3545da967283979fe805a287893
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))