-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.mu4
44 lines (34 loc) · 1.33 KB
/
build.mu4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| This file is part of muforth: https://muforth.dev/
|
| Copyright 2002-2024 David Frech. (Read the LICENSE for details.)
( Load the 8051 build environment.)
ld target/common/serial.mu4 ( needed for chat and serial bootloader)
ld lib/host-prompt.mu4 ( helpful prompt when in host mode)
| If we are loading build.mu4 without having loaded a device-specific
| equates file, load a basic equates file containing the original 8051
| SFRs.
.ifndef .equates.
ld target/8051/core-equates.mu4
.then
ld target/common/chains.mu4 ( common metacompiler chains and token consumers)
ld target/8051/memory.mu4 ( basic target memory management)
ld target/8051/asm.mu4 ( assembler)
ld target/8051/disasm.mu4 ( disassembler)
ld target/8051/compiler.mu4 ( target compiler, baby!)
ld target/8051/interact.mu4 ( interaction with target)
ld target/8051/intel-hex.mu4 ( reading and writing hex files)
.ifdef /page
ld target/8051/flash.mu4 ( programming and verifying the flash)
.then
.ifdef via-disco
ld target/ARM/debug/stlink-v2.mu4
.ifdef stlink ( found an ST-LINK)
-d at89lp-ss
ld target/ARM/stm32/atmel-spi-programming-host.mu4
.then
.then
ld target/8051/chat-host.mu4 ( talking to the chat code)
( These settings will stick around if we're loaded with ld!)
__meta
hex
flash