X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=include%2Ftarget.mk;h=f3826b186548b005c75dc03566c4fbb8d93c050a;hp=8b123959d32cf8061fc863248ed9519f349d6e0f;hb=d897c9a97b6b0f034a0962eace0f362c2c8875c9;hpb=59eb643d06cfdd74bc0ed8e12dc3708b138cf400 diff --git a/include/target.mk b/include/target.mk index 8b123959d3..f3826b1865 100644 --- a/include/target.mk +++ b/include/target.mk @@ -12,9 +12,11 @@ __target_inc=1 DEVICE_TYPE?=router # Default packages - the really basic set -DEFAULT_PACKAGES:=base-files libgcc uclibc busybox dropbear mtd uci +DEFAULT_PACKAGES:=base-files libgcc uclibc busybox dropbear mtd uci opkg # For router targets -DEFAULT_PACKAGES.router:=dnsmasq iptables ppp ppp-mod-pppoe kmod-ipt-nathelper bridge +DEFAULT_PACKAGES.router:=dnsmasq iptables ppp ppp-mod-pppoe kmod-ipt-nathelper bridge firewall +# LuCI +DEFAULT_PACKAGES.router+=luci-admin-full luci-admin-mini luci-i18n-english luci-app-firewall luci-sgi-cgi # Additional packages for Linux 2.6 ifneq ($(KERNEL),2.4) @@ -106,7 +108,7 @@ include $(INCLUDE_DIR)/kernel-version.mk GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic-$(KERNEL) GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/patches$(shell [ -d "$(GENERIC_PLATFORM_DIR)/patches-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true ) -GENERIC_FILES_DIR := $(GENERIC_PLATFORM_DIR)/files$(shell [ -d "$(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true ) +GENERIC_FILES_DIR := $(foreach dir,$(wildcard $(GENERIC_PLATFORM_DIR)/files $(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)),"$(dir)") GENERIC_LINUX_CONFIG?=$(firstword $(wildcard $(GENERIC_PLATFORM_DIR)/config-$(KERNEL_PATCHVER) $(GENERIC_PLATFORM_DIR)/config-default)) LINUX_CONFIG?=$(firstword $(wildcard $(foreach subdir,$(PLATFORM_DIR) $(PLATFORM_SUBDIR),$(subdir)/config-$(KERNEL_PATCHVER) $(subdir)/config-default)) $(PLATFORM_DIR)/config-$(KERNEL_PATCHVER)) @@ -133,7 +135,7 @@ ifeq ($(DUMP),1) ifneq ($(CONFIG_PCI),) FEATURES += pci endif - ifneq ($(CONFIG_USB),) + ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),) FEATURES += usb endif ifneq ($(CONFIG_PCMCIA)$(CONFIG_PCCARD),)