kumquat-buildroot/package/mii-diag/mii-diag.mk

36 lines
906 B
Makefile
Raw Normal View History

2008-06-26 08:43:33 +02:00
#############################################################
#
# mii-diag
#
#############################################################
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
2008-06-26 08:43:33 +02:00
define MII_DIAG_DEBIAN_PATCHES
if [ -d $(@D)/debian/patches ]; then \
toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
fi
endef
2008-06-26 08:43:33 +02:00
MII_DIAG_POST_PATCH_HOOKS = MII_DIAG_DEBIAN_PATCHES
2008-06-26 08:43:33 +02:00
define MII_DIAG_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
2008-06-26 08:43:33 +02:00
define MII_DIAG_INSTALL_TARGET_CMDS
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
endef
2008-06-26 08:43:33 +02:00
define MII_DIAG_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/sbin/mii-diag
endef
2008-06-26 08:43:33 +02:00
define MII_DIAG_CLEAN_CMDS
$(MAKE) -C $(@D) clean
endef
2008-06-26 08:43:33 +02:00
$(eval $(call GENTARGETS,package,mii-diag))