[OpenWrt-Devel] compile openwrt with external toolchain
John Crispin
blogic at openwrt.org
Wed Nov 19 08:59:35 EST 2014
Hi,
i cant figure out what the actual bug is from the patch. is PREFIX not
fully populated, requiring this to be moved back ?
also your patch is whitespace broken. could you resend a fixed version
with a better description please ?
John
On 14/11/2014 04:52, sam wrote:
> Hi, all,
>
> i try to compile openwrt with external toolchain, and it fails
> when compile ther kernel.
>
> i check the TARGET_CROSS in rules.mk and make a little
> modification. and compile success.
>
> i don't know if someone has fixed this issue. the patch below works
> well on my environment.
>
>
>
> diff --git a/rules.mk b/rules.mk index 0822979..70f3afc 100644 ---
> a/rules.mk +++ b/rules.mk @@ -144,9 +144,9 @@ ifndef DUMP
> TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH) else ifeq
> ($(CONFIG_NATIVE_TOOLCHAIN),) - TARGET_CROSS:=$(call
> qstrip,$(CONFIG_TOOLCHAIN_PREFIX)) TOOLCHAIN_ROOT_DIR:=$(call
> qstrip,$(CONFIG_TOOLCHAIN_ROOT)) TOOLCHAIN_BIN_DIRS:=$(patsubst
> ./%,$(TOOLCHAIN_ROOT_DIR)/%,$(call
> qstrip,$(CONFIG_TOOLCHAIN_BIN_PATH))) + TARGET_CROSS:=$(call
> qstrip,$(TOOLCHAIN_ROOT_DIR)/bin/$(CONFIG_TOOLCHAIN_PREFIX))
> TOOLCHAIN_INC_DIRS:=$(patsubst ./%,$(TOOLCHAIN_ROOT_DIR)/%,$(call
> qstrip,$(CONFIG_TOOLCHAIN_INC_PATH)))
> TOOLCHAIN_LIB_DIRS:=$(patsubst ./%,$(TOOLCHAIN_ROOT_DIR)/%,$(call
> qstrip,$(CONFIG_TOOLCHAIN_LIB_PATH))) ifneq
> ($(TOOLCHAIN_BIN_DIRS),)
> _______________________________________________ openwrt-devel
> mailing list openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list