Skip to content

Commit d0568db

Browse files
committed
Makefile: Default to LOC=ram again, print out what its value is
1 parent f1a1723 commit d0568db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ SRCDIR?= ${.CURDIR}
2323

2424
OBJ?= obj/
2525

26-
LOC?=
26+
LOC?= ram
27+
2728
.if ${LOC} == "flash"
2829
BASE_ADDR= 0x4000
2930
.elif ${LOC} == "ram"
@@ -34,6 +35,8 @@ BASE_ADDR= 0x8000
3435
@exit 1
3536
.endif
3637

38+
.BEGIN:
39+
@echo "compiling for running from ${LOC} (${BASE_ADDR})"
3740

3841
all: msterm.bin
3942

0 commit comments

Comments
 (0)