Change to using tup build system
This commit is contained in:
parent
5a0f1c7e46
commit
e49c2e2047
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,3 +1,8 @@
|
|||||||
*.bin
|
##### TUP GITIGNORE #####
|
||||||
*.elf
|
##### Lines below automatically generated by Tup.
|
||||||
*.o
|
##### Do not edit.
|
||||||
|
.tup
|
||||||
|
/.gitignore
|
||||||
|
/rom.bin
|
||||||
|
/rom.elf
|
||||||
|
/rom.o
|
||||||
|
7
Tupfile
Normal file
7
Tupfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.gitignore
|
||||||
|
LDFLAGS = -z max-page-size=1 --orphan-handling=error -T rom.ld
|
||||||
|
ASFLAGS = -m68010 --register-prefix-optional
|
||||||
|
|
||||||
|
: rom.68k |> m68k-elf-as $(ASFLAGS) -o %o %f |> rom.o
|
||||||
|
: rom.o |> m68k-elf-ld $(LDFLAGS) -o %o %f |> rom.elf
|
||||||
|
: rom.elf |> m68k-elf-objcopy -O binary %f %o |> rom.bin
|
0
Tupfile.ini
Normal file
0
Tupfile.ini
Normal file
@ -1,4 +0,0 @@
|
|||||||
#! /bin/bash -x
|
|
||||||
m68k-elf-as -m68010 --register-prefix-optional -o rom.o rom.68k
|
|
||||||
m68k-elf-ld -z max-page-size=1 -T rom.ld -o rom.elf rom.o
|
|
||||||
m68k-elf-objcopy -O binary rom.elf rom.bin
|
|
5
rom.68k
5
rom.68k
@ -1,5 +1,6 @@
|
|||||||
.long fakestack, start
|
.long fakestack, _start
|
||||||
start:
|
.global _start
|
||||||
|
_start:
|
||||||
move.w #0x1, d0 | Find the ROM card
|
move.w #0x1, d0 | Find the ROM card
|
||||||
bra.b find_first_card
|
bra.b find_first_card
|
||||||
romfindret:
|
romfindret:
|
||||||
|
Loading…
Reference in New Issue
Block a user