X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Ftarget.mk;h=a554386cd8dce5bec4d7c142edf6a7b28cd015e3;hb=c633a16d80dd764f3a452d94f4ece5ed556a99e3;hp=ace3db0ffde3e9bde5ce7504320ee1f78ac4aa05;hpb=431c9267b4016b7e712a0edf1e594bd71ac850b4;p=openwrt%2Fstaging%2Fflorian.git diff --git a/include/target.mk b/include/target.mk index ace3db0ffd..a554386cd8 100644 --- a/include/target.mk +++ b/include/target.mk @@ -15,6 +15,7 @@ DEVICE_TYPE?=router DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg # For router targets DEFAULT_PACKAGES.router:=dnsmasq iptables ppp ppp-mod-pppoe kmod-ipt-nathelper firewall +DEFAULT_PACKAGES.bootloader:= # Additional packages for Linux 2.6 ifneq ($(KERNEL),2.4) @@ -118,7 +119,13 @@ LINUX_SUBCONFIG?=$(firstword $(wildcard $(PLATFORM_SUBDIR)/config-$(KERNEL_PATCH ifeq ($(LINUX_CONFIG),$(LINUX_SUBCONFIG)) LINUX_SUBCONFIG:= endif -LINUX_CONFCMD=$(if $(LINUX_CONFIG),$(SCRIPT_DIR)/kconfig.pl + $(GENERIC_LINUX_CONFIG) $(if $(LINUX_SUBCONFIG),+ $(LINUX_CONFIG) $(LINUX_SUBCONFIG),$(LINUX_CONFIG)),true) +LINUX_CONFCMD=$(if $(LINUX_CONFIG), \ + $(if $(GENERIC_LINUX_CONFIG),,$(error The generic kernel config for your kernel version is mising)) \ + $(if $(LINUX_CONFIG),,$(error The target kernel config for your kernel version is mising)) \ + $(SCRIPT_DIR)/kconfig.pl \ + + $(GENERIC_LINUX_CONFIG) \ + $(if $(LINUX_SUBCONFIG),+ $(LINUX_CONFIG) $(LINUX_SUBCONFIG),$(LINUX_CONFIG)), \ + true) ifeq ($(DUMP),1) BuildTarget=$(BuildTargets/DumpCurrent) @@ -150,6 +157,15 @@ ifeq ($(DUMP),1) # remove duplicates FEATURES:=$(sort $(FEATURES)) endif + DEFAULT_CFLAGS_i386=-O2 -pipe -march=i486 -funit-at-a-time + DEFAULT_CFLAGS_x86_64=-O2 -pipe -march=athlon64 -funit-at-a-time + DEFAULT_CFLAGS_mips=-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time + DEFAULT_CFLAGS_mipsel=$(DEFAULT_CFLAGS_mips) + DEFAULT_CFLAGS_mips64=-Os -pipe -mips64 -mtune=mips64 -mabi=64 -funit-at-a-time + DEFAULT_CFLAGS_mips64el=$(DEFAULT_CFLAGS_mips64) + DEFAULT_CFLAGS_arm=-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time + DEFAULT_CFLAGS_armeb=$(DEFAULT_CFLAGS_arm) + DEFAULT_CFLAGS=$(if $(DEFAULT_CFLAGS_$(ARCH)),$(DEFAULT_CFLAGS_$(ARCH)),-Os -pipe -funit-at-a-time) endif define BuildTargets/DumpCurrent @@ -163,6 +179,7 @@ define BuildTargets/DumpCurrent echo 'Target-Arch: $(ARCH)'; \ echo 'Target-Features: $(FEATURES)'; \ echo 'Target-Depends: $(DEPENDS)'; \ + echo 'Target-Optimization: $(if $(CFLAGS),$(CFLAGS),$(DEFAULT_CFLAGS))'; \ echo 'Linux-Version: $(LINUX_VERSION)'; \ echo 'Linux-Release: $(LINUX_RELEASE)'; \ echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'; \