targets.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- a/include/target.mk
  2. +++ b/include/target.mk
  3. @@ -17,7 +17,7 @@ DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg netifd fs
  4. # For nas targets
  5. DEFAULT_PACKAGES.nas:=block-mount fdisk lsblk mdadm
  6. # For router targets
  7. -DEFAULT_PACKAGES.router:=dnsmasq-full iptables ip6tables ppp ppp-mod-pppoe firewall odhcpd-ipv6only odhcp6c luci luci-lib-ipkg
  8. +DEFAULT_PACKAGES.router:=dnsmasq-full iptables ip6tables ppp ppp-mod-pppoe firewall odhcpd-ipv6only odhcp6c luci luci-lib-ipkg kmod-ipt-offload kmod-ipt-nat kmod-ipt-nat6
  9. DEFAULT_PACKAGES.bootloader:=
  10. ifneq ($(DUMP),)
  11. @@ -55,6 +55,22 @@ ifneq ($(filter 4.9,$(KERNEL_PATCHVER)),)
  12. DEFAULT_PACKAGES.router:=$(filter-out kmod-ipt-offload,$(DEFAULT_PACKAGES.router))
  13. endif
  14. +ifneq ($(CONFIG_SMALL_FLASH),)
  15. + DEFAULT_PACKAGES+=-coremark -htop -bash -openssh-sftp-server
  16. +endif
  17. +
  18. +ifeq ($(ARCH),arm)
  19. + DEFAULT_PACKAGES+=autocore-arm luci-app-cpufreq
  20. +endif
  21. +
  22. +ifeq ($(ARCH),aarch64)
  23. + DEFAULT_PACKAGES+=autocore-arm luci-app-cpufreq
  24. +endif
  25. +
  26. +ifneq ($(CONFIG_USB_SUPPORT),)
  27. + DEFAULT_PACKAGES+=automount
  28. +endif
  29. +
  30. # Add device specific packages (here below to allow device type set from subtarget)
  31. DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))