1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 21:03:56 +02:00
openwrt-packages/utils/mmc-utils/Makefile
Michael Heimpold 6aab70df4c mmc-utils: update to latest git head
Also add some valueable patches from mailing-list - upstream seems not
to care so much about, but giving them a broader audience does not hurt.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2019-04-15 21:38:41 +02:00

53 lines
1.3 KiB
Makefile

#
# Copyright (C) 2015-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mmc-utils
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
PKG_SOURCE_DATE:=2018-12-09
PKG_SOURCE_VERSION:=aef913e31b659462fe6b9320d241676cba97f67b
PKG_MIRROR_HASH:=8c3d872be1392b7a140a36ce75ed48ef300ee6b6f1ce1b37dad1ad263d338dc3
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
include $(INCLUDE_DIR)/package.mk
define Package/mmc-utils
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Userspace tools for MMC/SD devices
URL:=http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
endef
define Package/mmc-utils/description
This package contains the userspace mmc utils, the userspace
counterpart to the Linux MMC/SD subsystem.
endef
define Build/Configure
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" \
mmc
endef
define Package/mmc-utils/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mmc $(1)/sbin
endef
$(eval $(call BuildPackage,mmc-utils))