Skip to content

Commit 61dbb50

Browse files
nashifAnas Nashif
authored andcommitted
Revert "xtools: get rid of warnings about wrong path"
This reverts commit 96def63. This breaks building with xtools for some reason, removing for now while we figure out what went wrong. Signed-off-by: Anas Nashif <[email protected]>
1 parent a7ebfa9 commit 61dbb50

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

scripts/Makefile.toolchain.xtools

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
ifndef XTOOLS_TOOLCHAIN_PATH
2+
3+
ifeq ($(CROSS_COMPILE),)
24
$(error XTOOLS_TOOLCHAIN_PATH is not set)
5+
else
6+
CROSS_COMPILE_TARGET = $(patsubst %-,%,${CROSS_COMPILE})
7+
CROSS_COMPILE_ROOT = $(dir $(shell which ${CROSS_COMPILE}gcc))/..
38
endif
49

5-
ifndef MAKEFILE_TOOLCHAIN_DO_PASS2
10+
else
611

7-
# arm
812
CROSS_COMPILE_TARGET_arm = arm-none-eabi
9-
10-
# x86
11-
CROSS_COMPILE_TARGET_x86 = i586-unknown-elf
13+
CROSS_COMPILE_TARGET_x86 = i586-pc-elf
1214

1315
CROSS_COMPILE_TARGET = ${CROSS_COMPILE_TARGET_${ARCH}}
1416
CROSS_COMPILE_ROOT = ${XTOOLS_TOOLCHAIN_PATH}/${CROSS_COMPILE_TARGET}
15-
16-
else
17-
1817
CROSS_COMPILE = ${CROSS_COMPILE_ROOT}/bin/${CROSS_COMPILE_TARGET}-
1918

19+
endif
20+
2021
TOOLCHAIN_CFLAGS = -I${CROSS_COMPILE_ROOT}/${CROSS_COMPILE_TARGET}/sysroot/usr/include
2122
TOOLCHAIN_LIBS = gcc
2223

2324
CROSS_COMPILE_version = $(shell $(CROSS_COMPILE)gcc -dumpversion)
2425
LIB_INCLUDE_DIR += -L ${CROSS_COMPILE_ROOT}/lib/gcc/${CROSS_COMPILE_TARGET}/${CROSS_COMPILE_version}/
2526

26-
endif
27-
2827
export CROSS_COMPILE TOOLCHAIN_LIBS LIB_INCLUDE_DIR TOOLCHAIN_CFLAGS
29-
30-
ifndef MAKEFILE_TOOLCHAIN_DO_PASS2
31-
MAKEFILE_TOOLCHAIN_DO_PASS2=true
32-
endif

0 commit comments

Comments
 (0)