1 #############################################################
5 #############################################################
8 ETHTOOL_SOURCE
:=ethtool-
$(ETHTOOL_VERSION
).
tar.gz
9 ETHTOOL_SITE
:=http
://$(BR2_SOURCEFORGE_MIRROR
).dl.sourceforge.net
/sourceforge
/gkernel
/
10 ETHTOOL_DIR
:=$(BUILD_DIR
)/ethtool-
$(ETHTOOL_VERSION
)
13 $(DL_DIR
)/$(ETHTOOL_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(ETHTOOL_SITE
)/$(ETHTOOL_SOURCE
)
16 $(ETHTOOL_DIR
)/.unpacked
: $(DL_DIR
)/$(ETHTOOL_SOURCE
)
17 $(ETHTOOL_CAT
) $(DL_DIR
)/$(ETHTOOL_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
18 $(CONFIG_UPDATE
) $(@D
)
21 $(ETHTOOL_DIR
)/.configured
: $(ETHTOOL_DIR
)/.unpacked
22 (cd
$(ETHTOOL_DIR
); rm -rf config.cache
; \
23 $(AUTO_CONFIGURE_TARGET
) \
29 $(ETHTOOL_DIR
)/ethtool
: $(ETHTOOL_DIR
)/.configured
30 $(MAKE
) -C
$(ETHTOOL_DIR
)
32 $(TARGET_DIR
)/usr
/sbin
/ethtool
: $(ETHTOOL_DIR
)/ethtool
33 $(INSTALL
) -D
-m
0755 $(ETHTOOL_DIR
)/ethtool
$@
34 $(STRIPCMD
) $(STRIP_STRIP_ALL
) $@
36 ethtool
: uclibc
$(TARGET_DIR
)/usr
/sbin
/ethtool
38 ethtool-source
: $(DL_DIR
)/$(ETHTOOL_SOURCE
)
41 -$(MAKE
) -C
$(ETHTOOL_DIR
) clean
45 #############################################################
47 # Toplevel Makefile options
49 #############################################################
50 ifeq ($(BR2_PACKAGE_ETHTOOL
),y
)