An option to assign some variables in config.mk

上级 6600eed0
...@@ -17,3 +17,4 @@ mkfs ...@@ -17,3 +17,4 @@ mkfs
mtrace.out mtrace.out
mscan.syms mscan.syms
mscan.kern mscan.kern
config.mk
-include config.mk
OBJS = \ OBJS = \
bio.o\ bio.o\
condvar.o\ condvar.o\
...@@ -32,7 +34,7 @@ OBJS = \ ...@@ -32,7 +34,7 @@ OBJS = \
rcu.o rcu.o
# Cross-compiling (e.g., on Mac OS X) # Cross-compiling (e.g., on Mac OS X)
TOOLPREFIX = x86_64-jos-elf- TOOLPREFIX ?= x86_64-jos-elf-
# Using native tools (e.g., on X86 Linux) # Using native tools (e.g., on X86 Linux)
#TOOLPREFIX = #TOOLPREFIX =
...@@ -54,8 +56,8 @@ TOOLPREFIX := $(shell if i386-jos-elf-objdump -i 2>&1 | grep '^elf32-i386$$' >/d ...@@ -54,8 +56,8 @@ TOOLPREFIX := $(shell if i386-jos-elf-objdump -i 2>&1 | grep '^elf32-i386$$' >/d
endif endif
# The i386 ('qemu') mtrace doesn't work, but 'qemu-system-x86_64' mtrace works. # The i386 ('qemu') mtrace doesn't work, but 'qemu-system-x86_64' mtrace works.
MTRACE = ../mtrace/x86_64-softmmu/qemu-system-x86_64 MTRACE ?= ../mtrace/x86_64-softmmu/qemu-system-x86_64
QEMUSRC = ../mtrace QEMUSRC ?= ../mtrace
ifeq ($(QEMUSRC),) ifeq ($(QEMUSRC),)
$(error You need to set QEMUSRC (e.g. make QEMUSRC=~/qemu)) $(error You need to set QEMUSRC (e.g. make QEMUSRC=~/qemu))
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论