From 222b76f37d9d8e546529394a7ab65fa705cfd7f4 Mon Sep 17 00:00:00 2001 From: Yangyu Chen Date: Fri, 10 May 2024 17:49:32 +0800 Subject: [PATCH] allow CROSS_COMPILE override --- apps/before_workload/Makefile | 2 +- apps/hello/Makefile | 2 +- apps/qemu_trap/Makefile | 2 +- apps/trap/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/before_workload/Makefile b/apps/before_workload/Makefile index 9145380..7139e41 100644 --- a/apps/before_workload/Makefile +++ b/apps/before_workload/Makefile @@ -1,5 +1,5 @@ NAME = before_workload SRCS = before_workload.c -CROSS_COMPILE = riscv64-unknown-linux-gnu- +CROSS_COMPILE ?= riscv64-unknown-linux-gnu- include $(RISCV_ROOTFS_HOME)/Makefile.compile diff --git a/apps/hello/Makefile b/apps/hello/Makefile index 66b21c3..db68e4c 100644 --- a/apps/hello/Makefile +++ b/apps/hello/Makefile @@ -1,5 +1,5 @@ NAME = hello SRCS = hello.c -CROSS_COMPILE = riscv64-unknown-elf- +CROSS_COMPILE ?= riscv64-unknown-linux-gnu- include $(RISCV_ROOTFS_HOME)/Makefile.compile diff --git a/apps/qemu_trap/Makefile b/apps/qemu_trap/Makefile index 50b7afc..f66f993 100644 --- a/apps/qemu_trap/Makefile +++ b/apps/qemu_trap/Makefile @@ -1,5 +1,5 @@ NAME = qemu_trap SRCS = qemu_trap.c -CROSS_COMPILE = riscv64-unknown-linux-gnu- +CROSS_COMPILE ?= riscv64-unknown-linux-gnu- include $(RISCV_ROOTFS_HOME)/Makefile.compile diff --git a/apps/trap/Makefile b/apps/trap/Makefile index b4b7285..b4e5fe3 100644 --- a/apps/trap/Makefile +++ b/apps/trap/Makefile @@ -1,5 +1,5 @@ NAME = trap SRCS = trap.c -CROSS_COMPILE = riscv64-unknown-linux-gnu- +CROSS_COMPILE ?= riscv64-unknown-linux-gnu- include $(RISCV_ROOTFS_HOME)/Makefile.compile