rules_mk: don't include wrapped bin with external toolchains
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 3 Jul 2022 00:06:21 +0000 (02:06 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 3 Oct 2022 15:40:26 +0000 (17:40 +0200)
Don't add wrapped bin to the TARGET_PATH as it does cause compilation
error.

cmake.mk will use the "command -v" and will use the wrapped bin instead
of the external toolchain bin as they have the same name and command
will select the first result.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit a90eabf60255773231ed0259e5da5eb6a36fe9ce)

rules.mk

index 5bc63e34d219f5efb109072008f2ffb959801bc8..c893f61b0f702ba8696a6132567e6f6c1f6ce763 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -208,7 +208,6 @@ ifndef DUMP
       ifneq ($(TOOLCHAIN_LIB_DIRS),)
         TARGET_LDFLAGS+= $(patsubst %,-L%,$(TOOLCHAIN_LIB_DIRS))
       endif
-      TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH)
     endif
   endif
 endif