From d895ddd832c3cd3b0007c276b1969d6e524d0d47 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 14 Nov 2007 23:11:07 +0000 Subject: fix the image builder git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9549 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/target.mk | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'include/target.mk') diff --git a/include/target.mk b/include/target.mk index 757d178ab..09a3f79af 100644 --- a/include/target.mk +++ b/include/target.mk @@ -5,13 +5,29 @@ # See /LICENSE for more information. # +ifneq ($(__target_inc),1) +__target_inc=1 + +# 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)) + ifneq ($(DUMP),) all: dumpinfo endif -ifneq ($(__target_inc),1) -__target_inc=1 - target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1)))) ifeq ($(DUMP),) PLATFORM_DIR:=$(TOPDIR)/target/linux/$(BOARD) @@ -39,6 +55,7 @@ define Profile/Default PACKAGES:= endef +ifndef Profile define Profile $(eval $(call Profile/Default)) $(eval $(call Profile/$(1))) @@ -62,6 +79,7 @@ define Profile PROFILE=$(1) endif endef +endif ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) define IncludeProfiles -- cgit v1.2.3