添加基础指令解析和运行
This commit is contained in:
7
make.py
7
make.py
@@ -23,9 +23,9 @@ CC = 'gcc'
|
||||
# HEX = 'C:\\ARM_GCC\\bin\\arm-none-eabi-objcopy' + ' -O ihex'
|
||||
# BIN = 'C:\\ARM_GCC\\bin\\arm-none-eabi-objcopy' + ' -O binary -S'
|
||||
|
||||
CSRC = []
|
||||
CSRC = ["main.c"]
|
||||
|
||||
CINC = ['-Isoft']
|
||||
CINC = ['-Isoft',"-Icpu"]
|
||||
|
||||
CDEF = ["-DTEST","-DLINUX"]
|
||||
|
||||
@@ -184,7 +184,8 @@ def build_target(src:list[str]):
|
||||
def main():
|
||||
global CSRC
|
||||
global ASRC
|
||||
CSRC+=find_type('.\\',['c','C'])
|
||||
CSRC+=find_type('.\\soft',['c','C'])
|
||||
CSRC+=find_type('.\\cpu',['c','C'])
|
||||
# ASRC+=find_type('./',['s','S','asm','ASM'])
|
||||
|
||||
if(not os.path.exists(BUILD_DIR)):
|
||||
|
Reference in New Issue
Block a user