diff options
author | Mike Baker <mbm@openwrt.org> | 2006-08-10 19:25:26 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2006-08-10 19:25:26 +0000 |
commit | 92167e106716c86914b748fd1fa8d3a6ceee0a4c (patch) | |
tree | da39c81e5fe3d3a57dc4741eb59e4756a9f32d0d /rules.mk | |
parent | 6edd808cbdc0e32cfa5380525812d8c11d6630d2 (diff) | |
download | upstream-92167e106716c86914b748fd1fa8d3a6ceee0a4c.tar.gz upstream-92167e106716c86914b748fd1fa8d3a6ceee0a4c.tar.bz2 upstream-92167e106716c86914b748fd1fa8d3a6ceee0a4c.zip |
add secret option to use host's toolchain when native compiling
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4553 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -33,9 +33,12 @@ STAMP_DIR:=$(BUILD_DIR)/stamp TARGET_DIR:=$(BUILD_DIR)/root IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/ipkg -REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc -GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux -TARGET_CROSS:=$(OPTIMIZE_FOR_CPU)-linux-uclibc- +ifeq ($(CONFIG_NATIVE_TOOLCHAIN),) + REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc + GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux + TARGET_CROSS:=$(OPTIMIZE_FOR_CPU)-linux-uclibc- +endif + IMAGE:=$(BUILD_DIR)/root_fs_$(ARCH) TARGET_PATH:=$(STAGING_DIR)/usr/bin:$(STAGING_DIR)/bin:$(PATH) |