targets.patch 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- a/include/target.mk
  2. +++ b/include/target.mk
  3. @@ -44,29 +44,33 @@ DEFAULT_PACKAGES.nas:=\
  4. # For router targets
  5. DEFAULT_PACKAGES.router:=\
  6. dnsmasq-full \
  7. + kmod-ipt-nat \
  8. + kmod-ipt-nat6 \
  9. firewall \
  10. + ip6tables \
  11. iptables \
  12. + kmod-ipt-offload \
  13. + odhcp6c \
  14. + odhcpd-ipv6only \
  15. ppp \
  16. ppp-mod-pppoe
  17. -# For easy usage
  18. -DEFAULT_PACKAGES.tweak:=\
  19. - block-mount \
  20. - default-settings-chn \
  21. - kmod-ipt-raw \
  22. - kmod-nf-nathelper \
  23. - kmod-nf-nathelper-extra \
  24. - luci \
  25. - luci-app-filetransfer \
  26. - luci-app-turboacc \
  27. - luci-compat \
  28. - luci-lib-base \
  29. - luci-lib-fs \
  30. - luci-lib-ipkg
  31. ifneq ($(DUMP),)
  32. all: dumpinfo
  33. endif
  34. +ifeq ($(ARCH),arm)
  35. + DEFAULT_PACKAGES+=autocore-arm luci-app-cpufreq
  36. +endif
  37. +
  38. +ifeq ($(ARCH),aarch64)
  39. + DEFAULT_PACKAGES+=autocore-arm luci-app-cpufreq
  40. +endif
  41. +
  42. +ifneq ($(CONFIG_USB_SUPPORT),)
  43. + DEFAULT_PACKAGES+=automount
  44. +endif
  45. +
  46. target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
  47. ifeq ($(DUMP),)
  48. PLATFORM_DIR:=$(TOPDIR)/target/linux/$(BOARD)