cleanup makefiles

SVN-Revision: 3656
This commit is contained in:
Mike Baker 2006-04-14 22:13:32 +00:00
parent c89d6bd29f
commit 600db0aea6
6 changed files with 50 additions and 69 deletions

View file

@ -32,6 +32,9 @@ config BR2_armeb
# Unsupported architectures # Unsupported architectures
if CONFIG_DEVEL if CONFIG_DEVEL
config BR2_mips64
tristate
select BR2_BIG_ENDIAN
config BR2_arm config BR2_arm
tristate tristate
@ -76,6 +79,7 @@ config BR2_ARCH
default "m68k" if BR2_m68k default "m68k" if BR2_m68k
default "mips" if BR2_mips default "mips" if BR2_mips
default "mipsel" if BR2_mipsel || !CONFIG_DEVEL default "mipsel" if BR2_mipsel || !CONFIG_DEVEL
default "mips64" if BR2_mips64
default "powerpc" if BR2_powerpc default "powerpc" if BR2_powerpc
default "sh3" if BR2_sh3 default "sh3" if BR2_sh3
default "sh3eb" if BR2_sh3eb default "sh3eb" if BR2_sh3eb

View file

@ -27,6 +27,8 @@ config BR2_mipsel
# Unsupported architectures # Unsupported architectures
if CONFIG_DEVEL if CONFIG_DEVEL
config BR2_mips64
tristate
config BR2_arm config BR2_arm
tristate tristate
@ -69,6 +71,7 @@ config BR2_ARCH
default "m68k" if BR2_m68k default "m68k" if BR2_m68k
default "mips" if BR2_mips default "mips" if BR2_mips
default "mipsel" if BR2_mipsel || !CONFIG_DEVEL default "mipsel" if BR2_mipsel || !CONFIG_DEVEL
default "mips64" if BR2_mips64
default "powerpc" if BR2_powerpc default "powerpc" if BR2_powerpc
default "sh3" if BR2_sh3 default "sh3" if BR2_sh3
default "sh3eb" if BR2_sh3eb default "sh3eb" if BR2_sh3eb
@ -99,6 +102,6 @@ config BR2_JLEVEL
endmenu endmenu
source "toolchain/Config.in.devel" source "toolchain/Config.in"
source "package/Config.in" source "package/Config.in"
source "target/linux/Config.in" source "target/linux/Config.in"

View file

@ -34,7 +34,7 @@ CONFIG_DEFCONFIG = .defconfig
CONFIG = package/config CONFIG = package/config
noconfig_targets := menuconfig config oldconfig randconfig \ noconfig_targets := menuconfig config oldconfig randconfig \
defconfig allyesconfig allnoconfig release tags defconfig allyesconfig allnoconfig tags
# Pull in the user's configuration file # Pull in the user's configuration file
ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
@ -47,6 +47,7 @@ include $(TOPDIR)/rules.mk
all: world all: world
.NOTPARALLEL: .NOTPARALLEL:
.PHONY: all world clean dirclean distclean image_clean target_clean source configtest
############################################################# #############################################################
# #
@ -62,8 +63,6 @@ world: $(DL_DIR) $(BUILD_DIR) configtest
$(MAKE) toolchain/install target/compile package/compile root_clean package/install target/install package_index $(MAKE) toolchain/install target/compile package/compile root_clean package/install target/install package_index
@$(TRACE) Build complete. @$(TRACE) Build complete.
.PHONY: all world clean dirclean distclean image_clean target_clean source configtest
configtest: configtest:
-cp .config .config.test -cp .config .config.test
-scripts/configtest.pl -scripts/configtest.pl
@ -177,7 +176,3 @@ defconfig: $(CONFIG)/conf
-./scripts/configtest.pl -./scripts/configtest.pl
endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
.PHONY: dummy subdirs release distclean clean config oldconfig \
menuconfig tags check test depend

View file

@ -79,6 +79,10 @@ config BR2_LINUX_2_6_X86
if CONFIG_DEVEL if CONFIG_DEVEL
config BR2_LINUX_2_6_MIPS64
bool "UNSUPPORTED mips64 platform"
select BR2_mips64
config BR2_LINUX_2_6_ARM config BR2_LINUX_2_6_ARM
bool "UNSUPPORTED little-endian arm platform" bool "UNSUPPORTED little-endian arm platform"
select BR2_arm select BR2_arm

View file

@ -1,30 +1,61 @@
# #
menu "Toolchain Options"
source "toolchain/uClibc/Config.in" source "toolchain/uClibc/Config.in"
source "toolchain/binutils/Config.in" source "toolchain/binutils/Config.in"
source "toolchain/gcc/Config.in" source "toolchain/gcc/Config.in"
if CONFIG_DEVEL if CONFIG_DEVEL
comment "Common Toolchain Options" comment "Common Toolchain Options"
endif
if !CONFIG_DEVEL
comment "Using defaults
endif endif
config BR2_ENABLE_MULTILIB config BR2_ENABLE_MULTILIB
bool bool "Enable multilib support?" if CONFIG_DEVEL
default n default n
help
If you want multilib enabled, enable this...
config BR2_LARGEFILE config BR2_LARGEFILE
bool bool "Enable large file (files > 2 GB) support?" if CONFIG_DEVEL
depends on !BR2_cris depends on !BR2_cris
default y default y
help
Enable large file (files > 2 GB) support
config BR2_SOFT_FLOAT config BR2_SOFT_FLOAT
bool bool "Use software floating point by default" if CONFIG_DEVEL
default n default n
depends on BR2_arm || BR2_mips || BR2_powerpc depends on BR2_arm || BR2_mips || BR2_powerpc
help
If your target CPU does not have a Floating Point Unit (FPU) or a
kernel FPU emulator, but you still wish to support floating point
functions, then everything will need to be compiled with soft floating
point support (-msoft-float).
Most people will answer N.
config BR2_TARGET_OPTIMIZATION config BR2_TARGET_OPTIMIZATION
string string "Target Optimizations" if CONFIG_DEVEL
default "-Os -pipe -march=i486 -funit-at-a-time" if BR2_i386 default "-Os -pipe -march=i486 -funit-at-a-time" if BR2_i386
default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if BR2_mipsel || BR2_mips default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if BR2_mipsel || BR2_mips
default "-Os -pipe -mcpu=xscale -funit-at-a-time" if BR2_armeb default "-Os -pipe -mcpu=xscale -funit-at-a-time" if BR2_armeb
default "-Os -pipe -funit-at-a-time" default "-Os -pipe -funit-at-a-time"
help
Optimizations to use when building for the target host.
# Might be worth experimenting with for gcc 3.4.x.
#GCC_WITH_CPU:=
#GCC_WITH_ARCH:=
#GCC_WITH_TUNE:=
#GCC_WITH_CPU:=--with-cpu=
#GCC_WITH_ARCH:=--with-arch=
#GCC_WITH_TUNE:=--with-tune=
endmenu

View file

@ -1,56 +0,0 @@
#
menu "Toolchain Options"
source "toolchain/uClibc/Config.in"
source "toolchain/binutils/Config.in"
source "toolchain/gcc/Config.in"
comment "Common Toolchain Options"
config BR2_ENABLE_MULTILIB
bool "Enable multilib support?"
default n
help
If you want multilib enabled, enable this...
config BR2_LARGEFILE
bool "Enable large file (files > 2 GB) support?"
depends on !BR2_cris
default y
help
Enable large file (files > 2 GB) support
config BR2_SOFT_FLOAT
bool "Use software floating point by default"
default n
depends on BR2_arm || BR2_mips || BR2_powerpc
help
If your target CPU does not have a Floating Point Unit (FPU) or a
kernel FPU emulator, but you still wish to support floating point
functions, then everything will need to be compiled with soft floating
point support (-msoft-float).
Most people will answer N.
config BR2_TARGET_OPTIMIZATION
string "Target Optimizations"
default "-Os -pipe -march=i486 -funit-at-a-time" if BR2_i386
default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if BR2_mipsel || BR2_mips
default "-Os -pipe -funit-at-a-time"
help
Optimizations to use when building for the target host.
# Might be worth experimenting with for gcc 3.4.x.
#GCC_WITH_CPU:=
#GCC_WITH_ARCH:=
#GCC_WITH_TUNE:=
#GCC_WITH_CPU:=--with-cpu=
#GCC_WITH_ARCH:=--with-arch=
#GCC_WITH_TUNE:=--with-tune=
endmenu