X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/957fd804f10d8ab53eb12f5d562dee3878cacae6..31d80dfaa4e63621748865e8c25525c909cfd28c:/include/kernel-defaults.mk diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 4b25f544a..55e6ccab9 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -5,22 +5,6 @@ # See /LICENSE for more information. # -# 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 -endif - -# Add device specific packages -DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE)) - KERNELNAME= ifneq (,$(findstring x86,$(BOARD))) KERNELNAME="bzImage" @@ -38,6 +22,7 @@ endif KERNEL_MAKEOPTS := -C $(LINUX_DIR) \ CROSS_COMPILE="$(KERNEL_CROSS)" \ ARCH="$(LINUX_KARCH)" \ + KBUILD_HAVE_NLS=no \ CONFIG_SHELL="$(BASH)" INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt @@ -48,11 +33,21 @@ endif # defined in quilt.mk Kernel/Patch:=$(Kernel/Patch/Default) +ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") define Kernel/Prepare/Default bzcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS) $(Kernel/Patch) $(if $(QUILT),touch $(LINUX_DIR)/.quilt_used) endef +else +define Kernel/Prepare/Default + mkdir -p $(KERNEL_BUILD_DIR) + if [ -d $(LINUX_DIR) ]; then \ + rmdir $(LINUX_DIR); \ + fi + ln -s $(CONFIG_EXTERNAL_KERNEL_TREE) $(LINUX_DIR) +endef +endif define Kernel/Configure/2.4 $(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile