cosmetic & coherency fixes
SVN-Revision: 14397
This commit is contained in:
		| @@ -35,12 +35,30 @@ override CONFIG_AUTOREBUILD= | |||||||
|  |  | ||||||
| include $(INCLUDE_DIR)/host-build.mk | include $(INCLUDE_DIR)/host-build.mk | ||||||
|  |  | ||||||
| EXTRA_TARGET=$(if $(CONFIG_EXTRA_TARGET_ARCH),--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX)) | BINUTILS_CONFIGURE:= \ | ||||||
|  | 	./configure \ | ||||||
|  | 		--prefix=$(TOOLCHAIN_DIR)/usr \ | ||||||
|  | 		--build=$(GNU_HOST_NAME) \ | ||||||
|  | 		--host=$(GNU_HOST_NAME) \ | ||||||
|  | 		--target=$(REAL_GNU_TARGET_NAME) \ | ||||||
|  | 		--with-sysroot=$(TOOLCHAIN_DIR) \ | ||||||
|  | 		--disable-multilib \ | ||||||
|  | 		--disable-werror \ | ||||||
|  | 		--disable-nls \ | ||||||
|  | 		$(SOFT_FLOAT_CONFIG_OPTION) \ | ||||||
|  | 		$(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \ | ||||||
|  |  | ||||||
| ifneq ($(CONFIG_SSP_SUPPORT),) | ifneq ($(CONFIG_SSP_SUPPORT),) | ||||||
| 	LIB_SSP:=--enable-libssp |   BINUTILS_CONFIGURE+= \ | ||||||
|  | 		--enable-libssp | ||||||
| else | else | ||||||
| 	LIB_SSP:=--disable-libssp |   BINUTILS_CONFIGURE+= \ | ||||||
|  | 		--disable-libssp | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | ifneq ($(CONFIG_EXTRA_TARGET_ARCH),) | ||||||
|  |   BINUTILS_CONFIGURE+= \ | ||||||
|  | 		--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX) | ||||||
| endif | endif | ||||||
|  |  | ||||||
| define Build/Prepare | define Build/Prepare | ||||||
| @@ -51,19 +69,7 @@ endef | |||||||
|  |  | ||||||
| define Build/Configure | define Build/Configure | ||||||
| 	(cd $(PKG_BUILD_DIR); \ | 	(cd $(PKG_BUILD_DIR); \ | ||||||
| 		./configure \ | 		$(BINUTILS_CONFIGURE) \ | ||||||
| 		--prefix=$(TOOLCHAIN_DIR)/usr \ |  | ||||||
| 		--build=$(GNU_HOST_NAME) \ |  | ||||||
| 		--host=$(GNU_HOST_NAME) \ |  | ||||||
| 		--target=$(REAL_GNU_TARGET_NAME) \ |  | ||||||
| 		--with-sysroot=$(TOOLCHAIN_DIR) \ |  | ||||||
| 		--disable-multilib \ |  | ||||||
| 		--disable-werror \ |  | ||||||
| 		--disable-nls \ |  | ||||||
| 		$(LIB_SSP) \ |  | ||||||
| 		$(EXTRA_TARGET) \ |  | ||||||
| 		$(SOFT_FLOAT_CONFIG_OPTION) \ |  | ||||||
| 		$(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \ |  | ||||||
| 	); | 	); | ||||||
| endef | endef | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| # | # | ||||||
| # Copyright (C) 2006-2008 OpenWrt.org | # Copyright (C) 2006-2009 OpenWrt.org | ||||||
| # | # | ||||||
| # This is free software, licensed under the GNU General Public License v2. | # This is free software, licensed under the GNU General Public License v2. | ||||||
| # See /LICENSE for more information. | # See /LICENSE for more information. | ||||||
| @@ -14,6 +14,7 @@ PKG_SOURCE_PROTO:=svn | |||||||
| PKG_SOURCE_VERSION:=$(PKG_REVISION) | PKG_SOURCE_VERSION:=$(PKG_REVISION) | ||||||
| PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-r$(PKG_REVISION) | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-r$(PKG_REVISION) | ||||||
| PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.bz2 | PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.bz2 | ||||||
|  |  | ||||||
| ifeq ($(PKG_VERSION),2.6.1) | ifeq ($(PKG_VERSION),2.6.1) | ||||||
|   PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_6 |   PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_6 | ||||||
| endif | endif | ||||||
| @@ -65,9 +66,11 @@ EGLIBC_CONFIGURE:= \ | |||||||
| 		--enable-add-ons \ | 		--enable-add-ons \ | ||||||
|  |  | ||||||
| ifeq ($(CONFIG_SOFT_FLOAT),) | ifeq ($(CONFIG_SOFT_FLOAT),) | ||||||
|   EGLIBC_CONFIGURE+= --with-fp |   EGLIBC_CONFIGURE+= \ | ||||||
|  | 	--with-fp | ||||||
| else | else | ||||||
|   EGLIBC_CONFIGURE+= --without-fp |   EGLIBC_CONFIGURE+= \ | ||||||
|  | 	--without-fp | ||||||
| endif | endif | ||||||
|  |  | ||||||
| EGLIBC_MAKE:= \ | EGLIBC_MAKE:= \ | ||||||
|   | |||||||
| @@ -63,7 +63,7 @@ PKG_BUILD_DIR2:=$(PKG_BUILD_DIR)-final | |||||||
| SEP:=, | SEP:=, | ||||||
| TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)" | TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)" | ||||||
|  |  | ||||||
| GCC_CONFIGURE_COMMON:= \ | GCC_CONFIGURE:= \ | ||||||
| 	SHELL="$(BASH)" \ | 	SHELL="$(BASH)" \ | ||||||
| 	$(PKG_BUILD_DIR)/configure \ | 	$(PKG_BUILD_DIR)/configure \ | ||||||
| 		--prefix=$(TOOLCHAIN_DIR)/usr \ | 		--prefix=$(TOOLCHAIN_DIR)/usr \ | ||||||
| @@ -80,37 +80,37 @@ GCC_CONFIGURE_COMMON:= \ | |||||||
| 		$(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \ | 		$(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \ | ||||||
|  |  | ||||||
| ifneq ($(CONFIG_GCC_VERSION_4_3),) | ifneq ($(CONFIG_GCC_VERSION_4_3),) | ||||||
| 	GCC_BUILD_TARGET_LIBGCC:=y |   GCC_BUILD_TARGET_LIBGCC:=y | ||||||
| 	GCC_CONFIGURE_COMMON+= \ |   GCC_CONFIGURE+= \ | ||||||
| 		--with-gmp=$(TOPDIR)/staging_dir/host \ | 		--with-gmp=$(TOPDIR)/staging_dir/host \ | ||||||
| 		--with-mpfr=$(TOPDIR)/staging_dir/host \ | 		--with-mpfr=$(TOPDIR)/staging_dir/host \ | ||||||
| 		--disable-decimal-float | 		--disable-decimal-float | ||||||
| endif | endif | ||||||
|  |  | ||||||
| ifneq ($(CONFIG_SSP_SUPPORT),) | ifneq ($(CONFIG_SSP_SUPPORT),) | ||||||
| 	GCC_CONFIGURE_COMMON+= \ |   GCC_CONFIGURE+= \ | ||||||
| 		--enable-libssp | 		--enable-libssp | ||||||
| else | else | ||||||
| 	GCC_CONFIGURE_COMMON+= \ |   GCC_CONFIGURE+= \ | ||||||
| 		--disable-libssp | 		--disable-libssp | ||||||
| endif | endif | ||||||
|  |  | ||||||
| ifneq ($(CONFIG_EXTRA_TARGET_ARCH),) | ifneq ($(CONFIG_EXTRA_TARGET_ARCH),) | ||||||
| 	GCC_CONFIGURE_COMMON+= \ |   GCC_CONFIGURE+= \ | ||||||
| 		--enable-biarch \ | 		--enable-biarch \ | ||||||
| 		--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX) | 		--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX) | ||||||
| endif | endif | ||||||
|  |  | ||||||
| ifeq ($(LIBC),uClibc) | ifeq ($(LIBC),uClibc) | ||||||
| 	GCC_CONFIGURE_COMMON+= \ |   GCC_CONFIGURE+= \ | ||||||
| 		--disable-__cxa_atexit | 		--disable-__cxa_atexit | ||||||
| else | else | ||||||
| 	GCC_CONFIGURE_COMMON+= \ |   GCC_CONFIGURE+= \ | ||||||
| 		--enable-__cxa_atexit | 		--enable-__cxa_atexit | ||||||
| endif | endif | ||||||
|  |  | ||||||
| GCC_CONFIGURE_STAGE0:= \ | GCC_CONFIGURE_STAGE0:= \ | ||||||
| 	$(GCC_CONFIGURE_COMMON) \ | 	$(GCC_CONFIGURE) \ | ||||||
| 		--with-newlib \ | 		--with-newlib \ | ||||||
| 		--without-headers \ | 		--without-headers \ | ||||||
| 		--enable-languages=c \ | 		--enable-languages=c \ | ||||||
| @@ -119,7 +119,7 @@ GCC_CONFIGURE_STAGE0:= \ | |||||||
| 		--disable-threads \ | 		--disable-threads \ | ||||||
|  |  | ||||||
| GCC_CONFIGURE_STAGE1:= \ | GCC_CONFIGURE_STAGE1:= \ | ||||||
| 	$(GCC_CONFIGURE_COMMON) \ | 	$(GCC_CONFIGURE) \ | ||||||
| 		--with-newlib \ | 		--with-newlib \ | ||||||
| 		--with-sysroot=$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev \ | 		--with-sysroot=$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev \ | ||||||
| 		--enable-languages=c \ | 		--enable-languages=c \ | ||||||
| @@ -127,7 +127,7 @@ GCC_CONFIGURE_STAGE1:= \ | |||||||
| 		--disable-threads \ | 		--disable-threads \ | ||||||
|  |  | ||||||
| GCC_CONFIGURE_STAGE2:= \ | GCC_CONFIGURE_STAGE2:= \ | ||||||
| 	$(GCC_CONFIGURE_COMMON) \ | 	$(GCC_CONFIGURE) \ | ||||||
| 		--enable-languages=$(TARGET_LANGUAGES) \ | 		--enable-languages=$(TARGET_LANGUAGES) \ | ||||||
| 		--enable-shared \ | 		--enable-shared \ | ||||||
| 		--enable-threads \ | 		--enable-threads \ | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| # | # | ||||||
| # Copyright (C) 2006-2008 OpenWrt.org | # Copyright (C) 2006-2009 OpenWrt.org | ||||||
| # | # | ||||||
| # This is free software, licensed under the GNU General Public License v2. | # This is free software, licensed under the GNU General Public License v2. | ||||||
| # See /LICENSE for more information. | # See /LICENSE for more information. | ||||||
| @@ -21,7 +21,6 @@ endif | |||||||
|  |  | ||||||
| PKG_SOURCE_URL:=@GNU/glibc/ | PKG_SOURCE_URL:=@GNU/glibc/ | ||||||
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | ||||||
| PKG_CAT:=bzcat |  | ||||||
|  |  | ||||||
| PATCH_DIR:=./patches/$(PKG_VERSION) | PATCH_DIR:=./patches/$(PKG_VERSION) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| # | # | ||||||
| # Copyright (C) 2006-2008 OpenWrt.org | # Copyright (C) 2006-2009 OpenWrt.org | ||||||
| # | # | ||||||
| # This is free software, licensed under the GNU General Public License v2. | # This is free software, licensed under the GNU General Public License v2. | ||||||
| # See /LICENSE for more information. | # See /LICENSE for more information. | ||||||
| @@ -21,7 +21,6 @@ endif | |||||||
|  |  | ||||||
| PKG_SOURCE_URL:=@GNU/glibc/ | PKG_SOURCE_URL:=@GNU/glibc/ | ||||||
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | ||||||
| PKG_CAT:=bzcat |  | ||||||
|  |  | ||||||
| PATCH_DIR:=./patches/$(PKG_VERSION) | PATCH_DIR:=./patches/$(PKG_VERSION) | ||||||
|  |  | ||||||
| @@ -51,7 +50,7 @@ endif | |||||||
| # http://sourceware.org/bugzilla/show_bug.cgi?id=5203 | # http://sourceware.org/bugzilla/show_bug.cgi?id=5203 | ||||||
| GLIBC_CFLAGS:=$(subst -Os,-O2,$(TARGET_CFLAGS)) | GLIBC_CFLAGS:=$(subst -Os,-O2,$(TARGET_CFLAGS)) | ||||||
|  |  | ||||||
| GLIBC_CONFIGURE_COMMON:= \ | GLIBC_CONFIGURE:= \ | ||||||
| 	BUILD_CC="$(HOSTCC)" \ | 	BUILD_CC="$(HOSTCC)" \ | ||||||
| 	$(TARGET_CONFIGURE_OPTS) \ | 	$(TARGET_CONFIGURE_OPTS) \ | ||||||
| 	CFLAGS="$(GLIBC_CFLAGS)" \ | 	CFLAGS="$(GLIBC_CFLAGS)" \ | ||||||
| @@ -70,20 +69,20 @@ GLIBC_CONFIGURE_COMMON:= \ | |||||||
| 		--without-cvs \ | 		--without-cvs \ | ||||||
|  |  | ||||||
| ifeq ($(CONFIG_SOFT_FLOAT),) | ifeq ($(CONFIG_SOFT_FLOAT),) | ||||||
|   GLIBC_CONFIGURE_COMMON+= \ |   GLIBC_CONFIGURE+= \ | ||||||
| 		--with-fp | 		--with-fp | ||||||
| else | else | ||||||
|   GLIBC_CONFIGURE_COMMON+= \ |   GLIBC_CONFIGURE+= \ | ||||||
| 		--without-fp | 		--without-fp | ||||||
| endif | endif | ||||||
|  |  | ||||||
| GLIBC_CONFIGURE_STAGE1:= \ | GLIBC_CONFIGURE_STAGE1:= \ | ||||||
| 	$(GLIBC_CONFIGURE_COMMON) \ | 	$(GLIBC_CONFIGURE) \ | ||||||
| 		--disable-sanity-checks \ | 		--disable-sanity-checks \ | ||||||
| 		--enable-hacker-mode \ | 		--enable-hacker-mode \ | ||||||
| 	 | 	 | ||||||
| GLIBC_CONFIGURE_STAGE2:= \ | GLIBC_CONFIGURE_STAGE2:= \ | ||||||
| 	$(GLIBC_CONFIGURE_COMMON) \ | 	$(GLIBC_CONFIGURE) \ | ||||||
|  |  | ||||||
| GLIBC_MAKE:= \ | GLIBC_MAKE:= \ | ||||||
| 	$(MAKE) \ | 	$(MAKE) \ | ||||||
|   | |||||||
| @@ -32,6 +32,10 @@ ifeq ($(strip $(BOARD)),uml) | |||||||
|   LINUX_KARCH:=$(ARCH) |   LINUX_KARCH:=$(ARCH) | ||||||
| endif | endif | ||||||
|  |  | ||||||
|  | ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.18)),1) | ||||||
|  |   LINUX_HAS_HEADERS_INSTALL:=y | ||||||
|  | endif | ||||||
|  |  | ||||||
| KMAKE := $(MAKE) -C $(PKG_BUILD_DIR) \ | KMAKE := $(MAKE) -C $(PKG_BUILD_DIR) \ | ||||||
| 	ARCH=$(LINUX_KARCH) \ | 	ARCH=$(LINUX_KARCH) \ | ||||||
| 	KBUILD_HAVE_NLS=no \ | 	KBUILD_HAVE_NLS=no \ | ||||||
| @@ -50,7 +54,7 @@ define Build/Prepare/pre/powerpc | |||||||
| 	fi | 	fi | ||||||
| endef | endef | ||||||
|  |  | ||||||
| ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.18)),1) | ifneq ($(LINUX_HAS_HEADERS_INSTALL),) | ||||||
|   define Build/Prepare/all |   define Build/Prepare/all | ||||||
| 	mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr | 	mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr | ||||||
| 	$(KMAKE) \ | 	$(KMAKE) \ | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| # | # | ||||||
| # Copyright (C) 2006-2008 OpenWrt.org | # Copyright (C) 2006-2009 OpenWrt.org | ||||||
| # | # | ||||||
| # This is free software, licensed under the GNU General Public License v2. | # This is free software, licensed under the GNU General Public License v2. | ||||||
| # See /LICENSE for more information. | # See /LICENSE for more information. | ||||||
| @@ -51,8 +51,6 @@ ifeq ($(PKG_VERSION_SNAPSHOT),y) | |||||||
|   PKG_MD5SUM:= |   PKG_MD5SUM:= | ||||||
| endif | endif | ||||||
|  |  | ||||||
| PKG_CAT:=bzcat |  | ||||||
|  |  | ||||||
| STAGING_DIR_HOST:=$(TOOLCHAIN_DIR) | STAGING_DIR_HOST:=$(TOOLCHAIN_DIR) | ||||||
| BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) | BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) | ||||||
| ifeq ($(PKG_VERSION_SNAPSHOT),y) | ifeq ($(PKG_VERSION_SNAPSHOT),y) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicolas Thill
					Nicolas Thill