X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Ftarget.mk;h=4f10a3db2bf19a2606b7d2487f550295649e261c;hb=daf7bbdedbe5fdf7d16acd075966d974251906c3;hp=757d178ab3937551244c6dd45e36b89dd8b98d3a;hpb=b8bd973764aef108dc049807b32ed61ccf5694bc;p=openwrt-10.03%2F.git diff --git a/include/target.mk b/include/target.mk index 757d178ab..4f10a3db2 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 uci +# 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