2003-06-04 20:36:51 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# iproute2
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
IPROUTE2_VERSION:=2.6.18
|
2006-11-22 16:23:31 +01:00
|
|
|
IPROUTE2_STAMP:=061002
|
2007-07-11 16:06:06 +02:00
|
|
|
IPROUTE2_SOURCE:=iproute2-$(IPROUTE2_VERSION)-$(IPROUTE2_STAMP).tar.gz
|
2004-10-08 20:20:15 +02:00
|
|
|
IPROUTE2_SITE:=http://developer.osdl.org/dev/iproute2/download/
|
2007-07-11 16:06:06 +02:00
|
|
|
IPROUTE2_DIR:=$(BUILD_DIR)/iproute2-$(IPROUTE2_VERSION)-$(IPROUTE2_STAMP)
|
2006-10-01 17:17:52 +02:00
|
|
|
IPROUTE2_CAT:=$(ZCAT)
|
2004-10-08 20:20:15 +02:00
|
|
|
IPROUTE2_BINARY:=tc/tc
|
|
|
|
IPROUTE2_TARGET_BINARY:=sbin/tc
|
2003-06-04 20:36:51 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(IPROUTE2_SOURCE):
|
2004-10-14 04:59:44 +02:00
|
|
|
$(WGET) -P $(DL_DIR) $(IPROUTE2_SITE)$(IPROUTE2_SOURCE)
|
2003-06-14 07:56:59 +02:00
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
iproute2-source: $(DL_DIR)/$(IPROUTE2_SOURCE)
|
|
|
|
|
2004-10-08 20:20:15 +02:00
|
|
|
$(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(IPROUTE2_CAT) $(DL_DIR)/$(IPROUTE2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-06-14 07:56:59 +02:00
|
|
|
touch $(IPROUTE2_DIR)/.unpacked
|
2003-06-04 20:36:51 +02:00
|
|
|
|
2003-06-14 07:56:59 +02:00
|
|
|
$(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
|
2004-10-08 20:20:15 +02:00
|
|
|
(cd $(IPROUTE2_DIR); \
|
|
|
|
./configure; \
|
2004-10-09 20:49:09 +02:00
|
|
|
$(SED) '/TC_CONFIG_ATM/s:=.*:=n:' Config; \
|
|
|
|
$(SED) '/^CCOPTS/s:-O2.*:$(TARGET_CFLAGS):' Makefile)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(IPROUTE2_DIR)/.configured
|
2003-06-04 20:36:51 +02:00
|
|
|
|
2004-10-08 20:20:15 +02:00
|
|
|
$(IPROUTE2_DIR)/$(IPROUTE2_BINARY): $(IPROUTE2_DIR)/.configured
|
|
|
|
$(MAKE) \
|
|
|
|
-C $(IPROUTE2_DIR) \
|
|
|
|
KERNEL_INCLUDE=$(LINUX_SOURCE_DIR)/include \
|
|
|
|
CC=$(TARGET_CC) \
|
|
|
|
AR=$(TARGET_CROSS)ar \
|
|
|
|
NETEM_DIST="" \
|
2005-01-23 11:38:49 +01:00
|
|
|
SUBDIRS="lib tc ip"
|
2003-06-04 20:36:51 +02:00
|
|
|
|
2004-10-08 20:20:15 +02:00
|
|
|
$(TARGET_DIR)/$(IPROUTE2_TARGET_BINARY): $(IPROUTE2_DIR)/$(IPROUTE2_BINARY)
|
2005-01-23 11:38:49 +01:00
|
|
|
install -Dc $(IPROUTE2_DIR)/ip/ip $(TARGET_DIR)/sbin/ip
|
2004-10-08 20:20:15 +02:00
|
|
|
install -Dc $(IPROUTE2_DIR)/$(IPROUTE2_BINARY) $(TARGET_DIR)/$(IPROUTE2_TARGET_BINARY)
|
2003-06-04 20:36:51 +02:00
|
|
|
|
2004-10-08 20:20:15 +02:00
|
|
|
iproute2: $(TARGET_DIR)/$(IPROUTE2_TARGET_BINARY)
|
2003-06-04 20:36:51 +02:00
|
|
|
|
|
|
|
iproute2-clean:
|
2004-10-08 20:20:15 +02:00
|
|
|
rm -f $(TARGET_DIR)/$(IPROUTE2_TARGET_BINARY)
|
2003-06-14 07:56:59 +02:00
|
|
|
-$(MAKE) -C $(IPROUTE2_DIR) clean
|
2003-06-04 20:36:51 +02:00
|
|
|
|
|
|
|
iproute2-dirclean:
|
2003-06-14 07:56:59 +02:00
|
|
|
rm -rf $(IPROUTE2_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_IPROUTE2)),y)
|
|
|
|
TARGETS+=iproute2
|
|
|
|
endif
|