blob: 46a48f80fa9baf38bd403c19a42fa1fbb466e9ec [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2include $(COMMON_BASE_MK)
3
4NAME=iproute2
5SRC_DIR=iproute2-3.4.0
6
7ifeq ($(LIBC_TYPE),glibc)
8#glibc for iproute2
9export IP_CONFIG_SETNS=y
10endif
11all:
12 make -C $(SRC_DIR) all
13
14clean:
15 -make -C $(SRC_DIR) clean
16
17romfs:
18 cp $(SRC_DIR)/ip/ifcfg $(SRC_DIR)/ip/ifcfg.elf
19 cp $(SRC_DIR)/ip/ip $(SRC_DIR)/ip/ip.elf
20 cp $(SRC_DIR)/ip/routef $(SRC_DIR)/ip/routef.elf
21 cp $(SRC_DIR)/ip/routel $(SRC_DIR)/ip/routel.elf
22 cp $(SRC_DIR)/ip/rtpr $(SRC_DIR)/ip/rtpr.elf
23 cp $(SRC_DIR)/tc/tc $(SRC_DIR)/ip/tc.elf
24ifeq ($(CONFIG_MIN_8M_VERSION), n)
25 cp $(SRC_DIR)/misc/rtacct $(SRC_DIR)/ip/rtacct.elf
26 cp $(SRC_DIR)/ip/rtmon $(SRC_DIR)/ip/rtmon.elf
27endif
28 #$(ROMFSINST) $(INSTALL_DIR)/sbin/openvpn /sbin/openvpn
29 $(ROMFSINST) $(SRC_DIR)/ip/ifcfg /bin/ifcfg
30 $(ROMFSINST) $(SRC_DIR)/ip/ip /bin/ip
31 $(ROMFSINST) $(SRC_DIR)/ip/routef /bin/routef
32 $(ROMFSINST) $(SRC_DIR)/ip/routel /bin/routel
33 $(ROMFSINST) $(SRC_DIR)/ip/rtpr /bin/rtpr
34 $(ROMFSINST) $(SRC_DIR)/tc/tc /bin/tc
35ifeq ($(CONFIG_MIN_8M_VERSION), n)
36 $(ROMFSINST) $(SRC_DIR)/misc/rtacct /bin/rtacct
37 $(ROMFSINST) $(SRC_DIR)/ip/rtmon /bin/rtmon
38endif