2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-06-26 08:43:33 +02:00
|
|
|
#
|
|
|
|
# mii-diag
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2010-12-12 22:53:48 +01:00
|
|
|
MII_DIAG_VERSION = 2.11
|
|
|
|
MII_DIAG_SOURCE = mii-diag_$(MII_DIAG_VERSION).orig.tar.gz
|
|
|
|
MII_DIAG_PATCH = mii-diag_$(MII_DIAG_VERSION)-3.diff.gz
|
|
|
|
MII_DIAG_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mii-diag
|
2012-11-13 02:05:51 +01:00
|
|
|
MII_DIAG_LICENSE = GPL # No version specified
|
|
|
|
MII_DIAG_LICENSE_FILES = mii-diag.c
|
2008-06-26 08:43:33 +02:00
|
|
|
|
2012-06-27 22:03:59 +02:00
|
|
|
MII_DIAG_MAKE_OPT = $(TARGET_CONFIGURE_OPTS)
|
|
|
|
|
2010-12-12 22:53:48 +01:00
|
|
|
define MII_DIAG_DEBIAN_PATCHES
|
|
|
|
if [ -d $(@D)/debian/patches ]; then \
|
2011-08-31 23:35:04 +02:00
|
|
|
support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
|
2010-12-12 22:53:48 +01:00
|
|
|
fi
|
|
|
|
endef
|
2008-06-26 08:43:33 +02:00
|
|
|
|
2010-12-12 22:53:48 +01:00
|
|
|
MII_DIAG_POST_PATCH_HOOKS = MII_DIAG_DEBIAN_PATCHES
|
2008-06-26 08:43:33 +02:00
|
|
|
|
2010-12-12 22:53:48 +01:00
|
|
|
define MII_DIAG_BUILD_CMDS
|
2013-02-26 23:47:19 +01:00
|
|
|
$(MAKE) $(MII_DIAG_MAKE_OPT) -C $(@D) mii-diag
|
2010-12-12 22:53:48 +01:00
|
|
|
endef
|
2008-06-26 08:43:33 +02:00
|
|
|
|
2010-12-12 22:53:48 +01:00
|
|
|
define MII_DIAG_INSTALL_TARGET_CMDS
|
2013-02-26 23:47:19 +01:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install-mii-diag
|
2010-12-12 22:53:48 +01:00
|
|
|
endef
|
2008-06-26 08:43:33 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|