X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6db7ad74f61eeaae0c8ecb08d483599d9d80c53f..fc91d8b69ab8294956ce45efcbfd7daac6a8603b:/include/kernel-defaults.mk diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 88f1c3675..7e475660a 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -5,12 +5,22 @@ # See /LICENSE for more information. # -# For target profile selection - the default set -DEFAULT_PACKAGES:=base-files libgcc uclibc bridge busybox dnsmasq dropbear iptables mtd ppp ppp-mod-pppoe mtd kmod-ipt-nathelper +# default device type +DEVICE_TYPE?=router + +# Default packages - the really basic set +DEFAULT_PACKAGES:=base-files libgcc uclibc busybox dropbear mtd mtd +# For router targets +DEFAULT_PACKAGES.router:=dnsmasq iptables ppp ppp-mod-pppoe iptables kmod-ipt-nathelper bridge + +# Additional packages for Linux 2.6 ifneq ($(KERNEL),2.4) - DEFAULT_PACKAGES+=udevtrigger hotplug2 + DEFAULT_PACKAGES += udevtrigger hotplug2 endif +# Add device specific packages +DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE)) + KERNELNAME= ifneq (,$(findstring x86,$(BOARD))) KERNELNAME="bzImage" @@ -51,8 +61,6 @@ define Kernel/Configure/Default $(SCRIPT_DIR)/kconfig.pl 'm+' $(LINUX_DIR)/.config.target $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config $(call Kernel/Configure/$(KERNEL)) rm -rf $(KERNEL_BUILD_DIR)/modules - @rm -f $(BUILD_DIR)/linux - ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux endef define Kernel/CompileModules/Default