X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f4d24919d49f2c25d0ec3f7658a93f6170580db7..85dc32ec9fd38484f20e0c377c24b4c4ee8bf847:/include/kernel-build.mk?ds=sidebyside diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 6d9c9d978..1ac847e93 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -21,12 +21,15 @@ 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 @@ -66,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) @@ -206,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))