diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools/0001-configure-skip-toolchain-checks.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools/0001-configure-skip-toolchain-checks.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools/0001-configure-skip-toolchain-checks.patch b/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools/0001-configure-skip-toolchain-checks.patch new file mode 100644 index 0000000..32a88b2 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools/0001-configure-skip-toolchain-checks.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 53f8a8dffa571de99b50f1a7b757cfd7d8c24d21 Mon Sep 17 00:00:00 2001 | ||
2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
3 | Date: Mon, 17 Oct 2022 15:44:16 +0800 | ||
4 | Subject: [PATCH 1/4] configure: skip toolchain checks | ||
5 | |||
6 | Current logic fetch full command line along with the tool. i.e | ||
7 | gcc -m64 -march=skylake -mtune=generic ... | ||
8 | |||
9 | Which throws ERROR: Cannot find tool -m64 | ||
10 | |||
11 | So need to re-write for loop, so it can work in cross-compilation | ||
12 | environment too. | ||
13 | |||
14 | Upstream-Status: Inappropriate | ||
15 | |||
16 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
17 | --- | ||
18 | configure | 12 ++++++------ | ||
19 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
20 | |||
21 | diff --git a/configure b/configure | ||
22 | index 70fdfdf..48d1ea5 100755 | ||
23 | --- a/configure | ||
24 | +++ b/configure | ||
25 | @@ -38,12 +38,12 @@ check_toolchain() | ||
26 | : ${EMACS=emacs} | ||
27 | : ${ARCH_INCLUDES=} | ||
28 | |||
29 | - for TOOL in $PKG_CONFIG $CC $LD $OBJCOPY $CLANG $LLC $M4; do | ||
30 | - if [ ! $(command -v ${TOOL} 2>/dev/null) ]; then | ||
31 | - echo "*** ERROR: Cannot find tool ${TOOL}" ; | ||
32 | - exit 1; | ||
33 | - fi; | ||
34 | - done | ||
35 | + #for TOOL in $PKG_CONFIG $CC $LD $OBJCOPY $CLANG $LLC $M4; do | ||
36 | + # if [ ! $(command -v ${TOOL} 2>/dev/null) ]; then | ||
37 | + # echo "*** ERROR: Cannot find tool ${TOOL}" ; | ||
38 | + # exit 1; | ||
39 | + # fi; | ||
40 | + #done | ||
41 | |||
42 | clang_version=$($CLANG --version | grep -Po '(?<=clang version )[[:digit:]]+') | ||
43 | echo "Found clang binary '$CLANG' with version $clang_version (from '$($CLANG --version | head -n 1)')" | ||
44 | -- | ||
45 | 2.25.1 | ||
46 | |||