Instead of assigning various variables ourself, rely on the common logic provided by "packaging framework". This brings this package in sync with other ones which also use git repos as source, dates and commit ids as version etc. This results also in using xz for tarballs. While at, populate the PKG_MIRROR_HASH. Thanks @diizzyy for suggesting these improvements. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
54 lines
1.3 KiB
Makefile
54 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:=2017-03-20
|
|
PKG_SOURCE_VERSION:=37c86e60c0442fef570b75cd81aeb1db4d0cbafd
|
|
PKG_MIRROR_HASH:=fc49fce4f592ffdc2a9c8f453ea96b28eb3ece0c6303ed73462cc61fb5b63318
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_LICENSE_FILES:=
|
|
|
|
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
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))
|