X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/77ecf7ab71e28107850ab1cdc691fc2e561a0019..143496aa4d31c79178027f9838e8cb3a659969f5:/include/kernel-build.mk diff --git a/include/kernel-build.mk b/include/kernel-build.mk index c06ca3940..b2837d1df 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -13,7 +13,7 @@ include $(INCLUDE_DIR)/prereq.mk LINUX_CONFIG ?= ./config/default --include $(GENERIC_PLATFORM_DIR)/config-template +-include $(TOPDIR)/target/linux/generic-$(KERNEL)/config-template -include $(LINUX_CONFIG) ifneq ($(CONFIG_ATM),) @@ -37,6 +37,9 @@ 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 kmod-ipt-nathelper +ifneq ($(KERNEL),2.4) + DEFAULT_PACKAGES+=udevtrigger hotplug2 +endif ifeq ($(DUMP),1) all: dumpinfo @@ -136,6 +139,7 @@ define Kernel/CompileImage/Default $(call Kernel/SetInitramfs) $(MAKE) -j$(CONFIG_JLEVEL) $(KERNEL_MAKEOPTS) CC="$(KERNEL_CC)" $(KERNELNAME) $(KERNEL_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) + $(KERNEL_CROSS)objcopy -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf endef define Kernel/CompileImage $(call Kernel/CompileImage/Default) @@ -216,15 +220,19 @@ confname=$(subst .,_,$(subst -,_,$(1))) define Profile $(eval $(call Profile/Default)) $(eval $(call Profile/$(1))) + $(eval $(call shexport,Profile/$(1)/Config)) $(eval $(call shexport,Profile/$(1)/Description)) DUMPINFO += \ echo "Target-Profile: $(1)"; \ echo "Target-Profile-Name: $(NAME)"; \ echo "Target-Profile-Packages: $(PACKAGES)"; \ - echo "Target-Profile-Description:"; \ if [ -f ./config/profile-$(1) ]; then \ echo "Target-Profile-Kconfig: yes"; \ fi; \ + echo "Target-Profile-Config: "; \ + getvar "$(call shvar,Profile/$(1)/Config)"; \ + echo "@@"; \ + echo "Target-Profile-Description:"; \ getvar "$(call shvar,Profile/$(1)/Description)"; \ echo "@@"; \ echo;