targets.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --- a/include/target.mk
  2. +++ b/include/target.mk
  3. @@ -10,7 +10,7 @@ __target_inc=1
  4. DEVICE_TYPE?=router
  5. # Default packages - the really basic set
  6. -DEFAULT_PACKAGES:=\
  7. +DEFAULT_PACKAGES:=luci-app-advanced luci-app-firewall luci-app-gpsysupgrade luci-app-opkg luci-app-upnp luci-app-autoreboot luci-app-wizard luci-base luci-compat luci-lib-ipkg luci-lib-fs coremark wget-ssl curl htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr bash openssh-sftp-server block-mount resolveip ds-lite swconfig \
  8. base-files \
  9. ca-bundle \
  10. dropbear \
  11. @@ -46,28 +46,31 @@ DEFAULT_PACKAGES.router:=\
  12. dnsmasq-full \
  13. firewall \
  14. iptables \
  15. - ipv6helper \
  16. + ip6tables \
  17. + kmod-ipt-nat \
  18. + kmod-ipt-nat6 \
  19. + kmod-ipt-offload \
  20. + odhcp6c \
  21. + odhcpd-ipv6only \
  22. ppp \
  23. ppp-mod-pppoe
  24. -# For easy usage
  25. -DEFAULT_PACKAGES.tweak:=\
  26. - block-mount \
  27. - default-settings-chn \
  28. - kmod-ipt-raw \
  29. - kmod-nf-nathelper \
  30. - kmod-nf-nathelper-extra \
  31. - luci \
  32. - luci-app-filetransfer \
  33. - luci-app-turboacc \
  34. - luci-compat \
  35. - luci-lib-base \
  36. - luci-lib-fs \
  37. - luci-lib-ipkg
  38. ifneq ($(DUMP),)
  39. all: dumpinfo
  40. endif
  41. +ifeq ($(ARCH),arm)
  42. + DEFAULT_PACKAGES+=autocore-arm luci-app-cpufreq
  43. +endif
  44. +
  45. +ifeq ($(ARCH),aarch64)
  46. + DEFAULT_PACKAGES+=autocore-arm luci-app-cpufreq
  47. +endif
  48. +
  49. +ifneq ($(CONFIG_USB_SUPPORT),)
  50. + DEFAULT_PACKAGES+=automount
  51. +endif
  52. +
  53. target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
  54. ifeq ($(DUMP),)
  55. PLATFORM_DIR:=$(TOPDIR)/target/linux/$(BOARD)
  56. @@ -205,7 +208,7 @@ LINUX_RECONF_DIFF = $(SCRIPT_DIR)/kconfig.pl - '>' $(call __linux_confcmd,$(filt
  57. ifeq ($(DUMP),1)
  58. BuildTarget=$(BuildTargets/DumpCurrent)
  59. - CPU_CFLAGS = -Os -pipe
  60. + CPU_CFLAGS = -O2 -pipe
  61. ifneq ($(findstring mips,$(ARCH)),)
  62. ifneq ($(findstring mips64,$(ARCH)),)
  63. CPU_TYPE ?= mips64