mirror of https://github.com/ARMmbed/mbed-os.git
Add config file inculde directory when present
parent
fed50f8f18
commit
209cf9f167
|
@ -197,6 +197,7 @@ class Exporter(object):
|
||||||
self.config_header = self.toolchain.MBED_CONFIG_FILE_NAME
|
self.config_header = self.toolchain.MBED_CONFIG_FILE_NAME
|
||||||
config.get_config_data_header(join(trg_path, self.config_header))
|
config.get_config_data_header(join(trg_path, self.config_header))
|
||||||
self.config_macros = []
|
self.config_macros = []
|
||||||
|
self.resources.inc_dirs.append(".")
|
||||||
else:
|
else:
|
||||||
# And add the configuration macros to the toolchain
|
# And add the configuration macros to the toolchain
|
||||||
self.config_macros = config.get_config_data_macros()
|
self.config_macros = config.get_config_data_macros()
|
||||||
|
|
|
@ -89,13 +89,13 @@ all: $(PROJECT).bin $(PROJECT).hex size
|
||||||
|
|
||||||
.asm.o:
|
.asm.o:
|
||||||
+@$(call MAKEDIR,$(dir $@))
|
+@$(call MAKEDIR,$(dir $@))
|
||||||
$(CC) $(CPU) -c $(ASM_FLAGS) -o $@ $<
|
$(CC) $(CPU) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $<
|
||||||
.s.o:
|
.s.o:
|
||||||
+@$(call MAKEDIR,$(dir $@))
|
+@$(call MAKEDIR,$(dir $@))
|
||||||
$(CC) $(CPU) -c $(ASM_FLAGS) -o $@ $<
|
$(CC) $(CPU) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $<
|
||||||
.S.o:
|
.S.o:
|
||||||
+@$(call MAKEDIR,$(dir $@))
|
+@$(call MAKEDIR,$(dir $@))
|
||||||
$(CC) $(CPU) -c $(ASM_FLAGS) -o $@ $<
|
$(CC) $(CPU) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $<
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
+@$(call MAKEDIR,$(dir $@))
|
+@$(call MAKEDIR,$(dir $@))
|
||||||
|
|
Loading…
Reference in New Issue