mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6713 from theotherjimmy/arm-no-asm-inc
Drop include paths for ARM assemblerpull/6667/merge
commit
e43d21d4ef
|
@ -22,7 +22,7 @@
|
|||
* This file is derivative of CMSIS V5.00 startup_ARMCM3.s
|
||||
*/
|
||||
|
||||
#include "memory_zones.h"
|
||||
#include "../memory_zones.h"
|
||||
|
||||
__initial_sp EQU ZBT_SSRAM23_START + ZBT_SSRAM23_SIZE ; Top of ZBT SSRAM2 and 3, used for data
|
||||
|
||||
|
|
|
@ -394,7 +394,7 @@
|
|||
<MiscControls>{{asm_flags}}</MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath>{{include_paths}}</IncludePath>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
|
|
|
@ -71,7 +71,7 @@ class ARM(mbedToolchain):
|
|||
|
||||
ARM_BIN = join(TOOLCHAIN_PATHS['ARM'], "bin")
|
||||
ARM_INC = join(TOOLCHAIN_PATHS['ARM'], "include")
|
||||
|
||||
|
||||
main_cc = join(ARM_BIN, "armcc")
|
||||
|
||||
self.flags['common'] += ["--cpu=%s" % cpu]
|
||||
|
@ -135,17 +135,18 @@ class ARM(mbedToolchain):
|
|||
def get_config_option(self, config_header):
|
||||
return ['--preinclude=' + config_header]
|
||||
|
||||
def get_compile_options(self, defines, includes, for_asm=False):
|
||||
def get_compile_options(self, defines, includes, for_asm=False):
|
||||
opts = ['-D%s' % d for d in defines]
|
||||
if for_asm:
|
||||
return opts
|
||||
if self.RESPONSE_FILES:
|
||||
opts += ['--via', self.get_inc_file(includes)]
|
||||
else:
|
||||
opts += ["-I%s" % i for i in includes]
|
||||
|
||||
if not for_asm:
|
||||
config_header = self.get_config_header()
|
||||
if config_header is not None:
|
||||
opts = opts + self.get_config_option(config_header)
|
||||
config_header = self.get_config_header()
|
||||
if config_header is not None:
|
||||
opts = opts + self.get_config_option(config_header)
|
||||
return opts
|
||||
|
||||
@hook_tool
|
||||
|
@ -154,9 +155,12 @@ class ARM(mbedToolchain):
|
|||
dir = join(dirname(object), '.temp')
|
||||
mkdir(dir)
|
||||
tempfile = join(dir, basename(object) + '.E.s')
|
||||
|
||||
|
||||
# Build preprocess assemble command
|
||||
cmd_pre = self.asm + self.get_compile_options(self.get_symbols(True), includes) + ["-E", "-o", tempfile, source]
|
||||
cmd_pre = copy(self.asm)
|
||||
cmd_pre.extend(self.get_compile_options(
|
||||
self.get_symbols(True), includes, True))
|
||||
cmd_pre.extend(["-E", "-o", tempfile, source])
|
||||
|
||||
# Build main assemble command
|
||||
cmd = self.asm + ["-o", object, tempfile]
|
||||
|
@ -164,7 +168,7 @@ class ARM(mbedToolchain):
|
|||
# Call cmdline hook
|
||||
cmd_pre = self.hook.get_cmdline_assembler(cmd_pre)
|
||||
cmd = self.hook.get_cmdline_assembler(cmd)
|
||||
|
||||
|
||||
# Return command array, don't execute
|
||||
return [cmd_pre, cmd]
|
||||
|
||||
|
@ -172,9 +176,9 @@ class ARM(mbedToolchain):
|
|||
def compile(self, cc, source, object, includes):
|
||||
# Build compile command
|
||||
cmd = cc + self.get_compile_options(self.get_symbols(), includes)
|
||||
|
||||
|
||||
cmd.extend(self.get_dep_option(object))
|
||||
|
||||
|
||||
cmd.extend(["-o", object, source])
|
||||
|
||||
# Call cmdline hook
|
||||
|
|
Loading…
Reference in New Issue