lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | |
| 2 | include $(COMMON_BASE_MK) |
| 3 | |
| 4 | NAME=iproute2 |
| 5 | SRC_DIR=iproute2-3.4.0 |
| 6 | |
| 7 | ifeq ($(LIBC_TYPE),glibc) |
| 8 | #glibc for iproute2 |
| 9 | export IP_CONFIG_SETNS=y |
| 10 | endif |
| 11 | all: |
| 12 | make -C $(SRC_DIR) all |
| 13 | |
| 14 | clean: |
| 15 | -make -C $(SRC_DIR) clean |
| 16 | |
| 17 | romfs: |
| 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 |
| 24 | ifeq ($(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 |
| 27 | endif |
| 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 |
| 35 | ifeq ($(CONFIG_MIN_8M_VERSION), n) |
| 36 | $(ROMFSINST) $(SRC_DIR)/misc/rtacct /bin/rtacct |
| 37 | $(ROMFSINST) $(SRC_DIR)/ip/rtmon /bin/rtmon |
| 38 | endif |