Hi, the patches make sense and we will integrate. Thanks
Kuo
-----Original Message-----
From: Intel-KGT [mailto:intel-kgt-bounces@lists.01.org] On Behalf Of Michael S. Tsirkin
Sent: Tuesday, September 15, 2015 1:37 PM
To: intel-kgt(a)ml01.01.org
Subject: [iKGT] [PATCH] xmon: support cross-build
Allow cross-build by specifying CROSS_COMPILE
Change-Id: I771b9111ae7533324cd083968f6ba4b1dc4885e1
Signed-off-by: Michael S. Tsirkin <mst(a)redhat.com>
---
Makefile | 7 +++----
core/Makefile | 4 ++++
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index ce400da..9c413b6 100755
--- a/Makefile
+++ b/Makefile
@@ -39,10 +39,9 @@ else
LDFLAGS = -T core/linker.lds -pie -s -z max-page-size=4096 -z common-page-size=4096
endif
-export CC = gcc
-export AS = gcc
-export LD = ld
-export AR = ar
+export CC = ${CROSS_COMPILE}gcc
+export AS = ${CROSS_COMPILE}gcc
+export AR = ${CROSS_COMPILE}ar
XMON_ELF := xmon.elf
diff --git a/core/Makefile b/core/Makefile index b2da53c..c5424be 100755
--- a/core/Makefile
+++ b/core/Makefile
@@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and # limitations
under the License.
################################################################################
+export CC = ${CROSS_COMPILE}gcc
+export AS = ${CROSS_COMPILE}gcc
+export AR = ${CROSS_COMPILE}ar
+
CSOURCES = main.c
ASOURCES = mon_entry.S
include rule.linux
--
MST
_______________________________________________
Intel-KGT mailing list
Intel-KGT(a)lists.01.org
https://lists.01.org/mailman/listinfo/intel-kgt