Create makefile targets
Allow to change build target without modifiying the sources. In order to keep compatibilty `sim` target is built by default.
This commit is contained in:
parent
e76435c6c6
commit
64a2815544
|
@ -12,6 +12,12 @@ SRCS = $(wildcard src/*.c) \
|
||||||
|
|
||||||
LDSCRIPT = ${STANDALONE}/common/ram.ld
|
LDSCRIPT = ${STANDALONE}/common/ram.ld
|
||||||
|
|
||||||
|
sim: CFLAGS += -DSIM
|
||||||
|
sim: all
|
||||||
|
|
||||||
|
qemu: CFLAGS += -DQEMU
|
||||||
|
qemu: all
|
||||||
|
|
||||||
include ${STANDALONE}/common/riscv64-unknown-elf.mk
|
include ${STANDALONE}/common/riscv64-unknown-elf.mk
|
||||||
include ${STANDALONE}/common/standalone.mk
|
include ${STANDALONE}/common/standalone.mk
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
//#define QEMU
|
|
||||||
#define SIM
|
|
||||||
|
|
||||||
#ifndef OS_CALL
|
#ifndef OS_CALL
|
||||||
#define OS_CALL 0xC0000000
|
#define OS_CALL 0xC0000000
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue