projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system refactoring in preparation for allowing packages to do host-build steps
[openwrt-10.03/.git]
/
toolchain
/
binutils
/
Makefile
diff --git
a/toolchain/binutils/Makefile
b/toolchain/binutils/Makefile
index dba6d456884ed76cd1a9355f5a62ce9fe156b865..b0b65f381baa08a560cd2a59eeafb543e1102803 100644
(file)
--- a/
toolchain/binutils/Makefile
+++ b/
toolchain/binutils/Makefile
@@
-61,30
+61,30
@@
ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX)
endif
--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-$(TARGET_SUFFIX)
endif
-define
Build
/Prepare
- $(call
Build
/Prepare/Default)
+define
Host
/Prepare
+ $(call
Host
/Prepare/Default)
ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
- $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(
PKG
_BUILD_DIR)/
+ $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(
HOST
_BUILD_DIR)/
endef
endef
-define
Build
/Configure
- (cd $(
PKG
_BUILD_DIR); \
+define
Host
/Configure
+ (cd $(
HOST
_BUILD_DIR); \
$(BINUTILS_CONFIGURE) \
);
endef
$(BINUTILS_CONFIGURE) \
);
endef
-define
Build
/Compile
- $(MAKE) -C $(
PKG
_BUILD_DIR) all
+define
Host
/Compile
+ $(MAKE) -C $(
HOST
_BUILD_DIR) all
endef
endef
-define
Build
/Install
- $(MAKE) -C $(
PKG
_BUILD_DIR) install
+define
Host
/Install
+ $(MAKE) -C $(
HOST
_BUILD_DIR) install
$(CP) $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-readelf $(REAL_STAGING_DIR_HOST)/bin/readelf
endef
$(CP) $(TOOLCHAIN_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-readelf $(REAL_STAGING_DIR_HOST)/bin/readelf
endef
-define
Build
/Clean
+define
Host
/Clean
rm -rf \
rm -rf \
- $(
PKG
_BUILD_DIR) \
+ $(
HOST
_BUILD_DIR) \
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
endef
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
endef