X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Fkernel-build.mk;h=1ac847e93c4a4fc14df7c6669781b56bd4b9fbe0;hb=23afac1288774a87ffbaffc86041fc8148498a01;hp=061d60492708608f59f054b9ffdb2a78389816bc;hpb=4a17097247411d8676dc707ed4acd9e4907fa51f;p=openwrt%2Fopenwrt.git diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 061d604927..1ac847e93c 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -21,20 +21,23 @@ endif ifneq ($(CONFIG_PCMCIA),) FEATURES += pcmcia endif +ifneq ($(CONFIG_VIDEO_DEV),) + FEATURES += video +endif # remove duplicates FEATURES:=$(sort $(FEATURES)) # For target profile selection - the default set -DEFAULT_PACKAGES:=base-files libgcc uclibc bridge busybox dnsmasq dropbear iptables mtd ppp ppp-mod-pppoe mtd +DEFAULT_PACKAGES:=base-files libgcc uclibc bridge busybox dnsmasq dropbear iptables mtd ppp ppp-mod-pppoe mtd kmod-ipt-nathelper ifeq ($(DUMP),1) all: dumpinfo else all: compile endif -KERNEL:=2.$(word 2,$(subst ., ,$(strip $(LINUX_VERSION)))) +include $(INCLUDE_DIR)/kernel-version.mk include $(INCLUDE_DIR)/host.mk include $(INCLUDE_DIR)/kernel.mk @@ -56,6 +59,9 @@ KERNELNAME= ifneq (,$(findstring x86,$(BOARD))) KERNELNAME="bzImage" endif +ifneq (,$(findstring rdc,$(BOARD))) + KERNELNAME="bzImage" +endif ifneq (,$(findstring ppc,$(BOARD))) KERNELNAME="uImage" endif @@ -63,8 +69,9 @@ endif define Kernel/Prepare/Default bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS) - [ -d $(GENERIC_PLATFORM_DIR)/patches ] && $(PATCH) $(LINUX_DIR) $(GENERIC_PLATFORM_DIR)/patches - [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches + if [ -d $(GENERIC_PLATFORM_DIR)/patches ]; then $(PATCH) $(LINUX_DIR) $(GENERIC_PLATFORM_DIR)/patches; fi + if [ -d ./files ]; then $(CP) ./files/* $(LINUX_DIR)/; fi + if [ -d ./patches ]; then $(PATCH) $(LINUX_DIR) ./patches; fi endef define Kernel/Prepare $(call Kernel/Prepare/Default) @@ -203,10 +210,15 @@ endef define Profile $(eval $(call Profile/Default)) $(eval $(call Profile/$(1))) + $(eval $(call shexport,Profile/$(1)/Description)) DUMPINFO += \ echo "Target-Profile: $(1)"; \ echo "Target-Profile-Name: $(NAME)"; \ - echo "Target-Profile-Packages: $(PACKAGES)"; + echo "Target-Profile-Packages: $(PACKAGES)"; \ + echo "Target-Profile-Description:"; \ + getvar "$(call shvar,Profile/$(1)/Description)"; \ + echo "@@"; \ + echo; endef $(eval $(call shexport,Target/Description))