We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29919c4 commit 1d77416Copy full SHA for 1d77416
GNUmakefile
@@ -17,11 +17,18 @@ endif
17
# Default user QEMU flags. These are appended to the QEMU command calls.
18
QEMUFLAGS := -m 2G
19
20
+# User controllable cross compiler prefix.
21
+CROSS_PREFIX :=
22
+
23
# User controllable C compiler command.
-CC := cc
24
+ifneq ($(CROSS_PREFIX),)
25
+ CC := $(CROSS_PREFIX)gcc
26
+else
27
+ CC := cc
28
+endif
29
30
# User controllable objcopy command.
-OBJCOPY := objcopy
31
+OBJCOPY := $(CROSS_PREFIX)objcopy
32
33
# User controllable C flags.
34
CFLAGS := -g -O2 -pipe
0 commit comments