Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
evilbinary committed Feb 11, 2022
1 parent cd3f05c commit bac45ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"system_error": "c",
"new": "c",
"assert.h": "c",
"iosfwd": "c"
"iosfwd": "c",
"common.h": "c"
}
}
16 changes: 9 additions & 7 deletions Sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,36 @@ import sys
plt = platform.system()

# board select platform,选择你要编译的平台
platform='pc'
# platform='pc'
# platform='v3s'
# platform='raspi2'
platform='raspi2'
# platform='esp32'
# platform='stm32f4xx'

# platform='raspi3'

# gcc path,这里是gcc路径配置
cc_path=''# 'D:\\app\\gcc\\bin\\'
cc_prefix='i386-elf-'
cc_lib_path='/opt/local/lib/gcc/i386-elf/9.2.0/' # D:\\app\\gcc\\lib\\gcc\\i686-elf\\7.1.0\\ D:\\Program Files\\gcc-arm-none-eabi-9\\lib\\gcc\\arm-none-eabi\\9.2.1\\ /opt/local/lib/gcc/arm-none-eabi/9.2.0/ /lib/gcc/arm-none-eabi/9.2.1/
cc_lib_path='D:\\Program Files\\gcc-arm-none-eabi-9\\lib\\gcc\\arm-none-eabi\\9.2.1\\' #/opt/local/lib/gcc/i386-elf/9.2.0/ D:\\app\\gcc\\lib\\gcc\\i686-elf\\7.1.0\\ D:\\Program Files\\gcc-arm-none-eabi-9\\lib\\gcc\\arm-none-eabi\\9.2.1\\ /opt/local/lib/gcc/arm-none-eabi/9.2.0/ /lib/gcc/arm-none-eabi/9.2.1/


# default libc 默认libc 选择
default_libc='libc'# libmusl libc

supports_archs={
'arm': ['armv5','armv6','armv7','armv7-a'],
'arm': ['armv5','armv6','armv7','armv7-a','armv8-a'],
'x86': ['x86','x86_64'],
'xtensa': ['lx6']
'xtensa': ['lx6'],
'riscv':['riscv']
}

support_platform={
'stm32f4xx':'armv7',
'pc':'x86',
'raspi2':'armv7-a',
'esp32':'xl6',
'v3s':'armv7-a'
'v3s':'armv7-a',
'raspi3':'armv8-a'
}


Expand Down

0 comments on commit bac45ec

Please sign in to comment.