mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 16:43:09 +02:00
[toolchain] move common variables to a dedicated include file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14648 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f5f32ee3f5
commit
8acca98ded
13
include/toolchain-build.mk
Normal file
13
include/toolchain-build.mk
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2009 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
override CONFIG_AUTOREBUILD=
|
||||||
|
|
||||||
|
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
||||||
|
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
@ -28,12 +28,8 @@ endif
|
|||||||
PATCH_DIR:=./patches/$(PKG_VERSION)
|
PATCH_DIR:=./patches/$(PKG_VERSION)
|
||||||
|
|
||||||
REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
|
REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
|
|
||||||
override CONFIG_AUTOREBUILD=
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
BINUTILS_CONFIGURE:= \
|
BINUTILS_CONFIGURE:= \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -33,13 +33,9 @@ endif
|
|||||||
|
|
||||||
PATCH_DIR:=./patches/$(PKG_VERSION)
|
PATCH_DIR:=./patches/$(PKG_VERSION)
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_SOURCE_SUBDIR)
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_SOURCE_SUBDIR)
|
|
||||||
|
|
||||||
override CONFIG_AUTOREBUILD=
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.eglibc_built
|
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.eglibc_built
|
||||||
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.eglibc_installed
|
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.eglibc_installed
|
||||||
|
@ -47,12 +47,7 @@ endif
|
|||||||
|
|
||||||
PATCH_DIR=./patches/$(PKG_VERSION)
|
PATCH_DIR=./patches/$(PKG_VERSION)
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
|
|
||||||
override CONFIG_AUTOREBUILD=
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.gcc-initial_installed
|
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.gcc-initial_installed
|
||||||
|
|
||||||
|
@ -14,10 +14,8 @@ PKG_MD5SUM:=05b928f41fa5b482e49ca2c24762a0ae
|
|||||||
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gdb
|
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gdb
|
||||||
PKG_CAT:=bzcat
|
PKG_CAT:=bzcat
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
|
|
||||||
define Host/Configure
|
define Host/Configure
|
||||||
(cd $(HOST_BUILD_DIR); \
|
(cd $(HOST_BUILD_DIR); \
|
||||||
|
@ -24,12 +24,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|||||||
|
|
||||||
PATCH_DIR:=./patches/$(PKG_VERSION)
|
PATCH_DIR:=./patches/$(PKG_VERSION)
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
|
|
||||||
override CONFIG_AUTOREBUILD=
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_built
|
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_built
|
||||||
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_installed
|
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_installed
|
||||||
|
@ -24,12 +24,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|||||||
|
|
||||||
PATCH_DIR:=./patches/$(PKG_VERSION)
|
PATCH_DIR:=./patches/$(PKG_VERSION)
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
|
|
||||||
override CONFIG_AUTOREBUILD=
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.glibc_built
|
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.glibc_built
|
||||||
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.glibc_installed
|
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.glibc_installed
|
||||||
|
@ -9,12 +9,8 @@ include $(TOPDIR)/rules.mk
|
|||||||
KERNEL_BUILD_DIR := $(BUILD_DIR_TOOLCHAIN)
|
KERNEL_BUILD_DIR := $(BUILD_DIR_TOOLCHAIN)
|
||||||
BUILD_DIR := $(KERNEL_BUILD_DIR)
|
BUILD_DIR := $(KERNEL_BUILD_DIR)
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
|
|
||||||
override QUILT:=
|
override QUILT:=
|
||||||
override HOST_QUILT:=
|
override HOST_QUILT:=
|
||||||
override CONFIG_AUTOREBUILD=
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
@ -26,7 +22,7 @@ HOST_BUILD_DIR:=$(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)
|
|||||||
PKG_MD5SUM:=$(LINUX_KERNEL_MD5SUM)
|
PKG_MD5SUM:=$(LINUX_KERNEL_MD5SUM)
|
||||||
LINUX_DIR := $(HOST_BUILD_DIR)
|
LINUX_DIR := $(HOST_BUILD_DIR)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
include $(INCLUDE_DIR)/kernel-defaults.mk
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
||||||
|
|
||||||
ifeq ($(strip $(BOARD)),uml)
|
ifeq ($(strip $(BOARD)),uml)
|
||||||
|
@ -51,17 +51,13 @@ ifeq ($(PKG_VERSION_SNAPSHOT),y)
|
|||||||
PKG_MD5SUM:=
|
PKG_MD5SUM:=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
|
||||||
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
||||||
ifeq ($(PKG_VERSION_SNAPSHOT),y)
|
ifeq ($(PKG_VERSION_SNAPSHOT),y)
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/uClibc-$(PKG_EXTRAVERSION)
|
HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/uClibc-$(PKG_EXTRAVERSION)
|
||||||
else
|
else
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/uClibc-$(PKG_VERSION)$(PKG_EXTRAVERSION)
|
HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/uClibc-$(PKG_VERSION)$(PKG_EXTRAVERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
override CONFIG_AUTOREBUILD=
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.uclibc_installed
|
STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.uclibc_installed
|
||||||
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc-utils_installed
|
STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc-utils_installed
|
||||||
|
Loading…
Reference in New Issue
Block a user