diff options
| -rw-r--r-- | meta/recipes-rt/rt-tests/files/0001-Makefile-Set-CC-AR-variable-only-if-it-doesn-t-have-.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-rt/rt-tests/rt-tests_0.96.bb | 3 |
2 files changed, 32 insertions, 1 deletions
diff --git a/meta/recipes-rt/rt-tests/files/0001-Makefile-Set-CC-AR-variable-only-if-it-doesn-t-have-.patch b/meta/recipes-rt/rt-tests/files/0001-Makefile-Set-CC-AR-variable-only-if-it-doesn-t-have-.patch new file mode 100644 index 0000000000..00fcc7d722 --- /dev/null +++ b/meta/recipes-rt/rt-tests/files/0001-Makefile-Set-CC-AR-variable-only-if-it-doesn-t-have-.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 9640dde4241e1314b8e8ea35b0c8dab0b30ae51f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 3 Jan 2016 10:50:56 -0800 | ||
| 4 | Subject: [PATCH] Makefile: Set CC/AR variable only if it doesn't have a value | ||
| 5 | |||
| 6 | This helps it compile with clang or any other compilers besides gcc | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | --- | ||
| 10 | Upstream-Status: Submitted | ||
| 11 | |||
| 12 | Makefile | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/Makefile b/Makefile | ||
| 16 | index 1e4b7d1..2c2d396 100644 | ||
| 17 | --- a/Makefile | ||
| 18 | +++ b/Makefile | ||
| 19 | @@ -1,6 +1,6 @@ | ||
| 20 | VERSION = 0.96 | ||
| 21 | -CC=$(CROSS_COMPILE)gcc | ||
| 22 | -AR=$(CROSS_COMPILE)ar | ||
| 23 | +CC?=$(CROSS_COMPILE)gcc | ||
| 24 | +AR?=$(CROSS_COMPILE)ar | ||
| 25 | |||
| 26 | OBJDIR = bld | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.6.4 | ||
| 30 | |||
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.96.bb b/meta/recipes-rt/rt-tests/rt-tests_0.96.bb index 7d703925a8..2f96fea9b5 100644 --- a/meta/recipes-rt/rt-tests/rt-tests_0.96.bb +++ b/meta/recipes-rt/rt-tests/rt-tests_0.96.bb | |||
| @@ -10,7 +10,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | |||
| 10 | require rt-tests.inc | 10 | require rt-tests.inc |
| 11 | inherit ptest | 11 | inherit ptest |
| 12 | 12 | ||
| 13 | SRC_URI += "file://run-ptest \ | 13 | SRC_URI += "file://0001-Makefile-Set-CC-AR-variable-only-if-it-doesn-t-have-.patch \ |
| 14 | file://run-ptest \ | ||
| 14 | file://rt_bmark.py \ | 15 | file://rt_bmark.py \ |
| 15 | " | 16 | " |
| 16 | # Do not install hwlatdetect | 17 | # Do not install hwlatdetect |
