mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
build: Print real paths for 'ulp' build objects as well
Signed-off-by: Kedar Sovani <kedars@gmail.com>
This commit is contained in:
@@ -26,23 +26,23 @@ ULP_PREPROCESSOR_ARGS := \
|
|||||||
|
|
||||||
# Preprocess LD script used to link ULP program
|
# Preprocess LD script used to link ULP program
|
||||||
$(ULP_LD_SCRIPT): $(ULP_LD_TEMPLATE)
|
$(ULP_LD_SCRIPT): $(ULP_LD_TEMPLATE)
|
||||||
$(summary) CPP $(notdir $@)
|
$(summary) CPP $(patsubst $(PWD)/%,%,$(CURDIR))/$@
|
||||||
$(CC) $(CPPFLAGS) -MT $(ULP_LD_SCRIPT) -E -P -xc -o $@ $(ULP_PREPROCESSOR_ARGS) $<
|
$(CC) $(CPPFLAGS) -MT $(ULP_LD_SCRIPT) -E -P -xc -o $@ $(ULP_PREPROCESSOR_ARGS) $<
|
||||||
|
|
||||||
# Generate preprocessed assembly files.
|
# Generate preprocessed assembly files.
|
||||||
# To inspect these preprocessed files, add a ".PRECIOUS: %.ulp.pS" rule.
|
# To inspect these preprocessed files, add a ".PRECIOUS: %.ulp.pS" rule.
|
||||||
%.ulp.pS: $(COMPONENT_PATH)/ulp/%.S
|
%.ulp.pS: $(COMPONENT_PATH)/ulp/%.S
|
||||||
$(summary) CPP $(notdir $<)
|
$(summary) CPP $(patsubst $(PWD)/%,%,$<)
|
||||||
$(CC) $(CPPFLAGS) -MT $(patsubst %.ulp.pS,%.ulp.o,$@) -E -P -xc -o $@ $(ULP_PREPROCESSOR_ARGS) $<
|
$(CC) $(CPPFLAGS) -MT $(patsubst %.ulp.pS,%.ulp.o,$@) -E -P -xc -o $@ $(ULP_PREPROCESSOR_ARGS) $<
|
||||||
|
|
||||||
# Compiled preprocessed files into object files.
|
# Compiled preprocessed files into object files.
|
||||||
%.ulp.o: %.ulp.pS
|
%.ulp.o: %.ulp.pS
|
||||||
$(summary) ULP_AS $(notdir $@)
|
$(summary) ULP_AS $(patsubst $(PWD)/%,%,$(CURDIR))/$@
|
||||||
$(ULP_AS) -al=$(patsubst %.ulp.o,%.ulp.lst,$@) -o $@ $<
|
$(ULP_AS) -al=$(patsubst %.ulp.o,%.ulp.lst,$@) -o $@ $<
|
||||||
|
|
||||||
# Link object files and generate map file
|
# Link object files and generate map file
|
||||||
$(ULP_ELF): $(ULP_OBJECTS) $(ULP_LD_SCRIPT)
|
$(ULP_ELF): $(ULP_OBJECTS) $(ULP_LD_SCRIPT)
|
||||||
$(summary) ULP_LD $(notdir $@)
|
$(summary) ULP_LD $(patsubst $(PWD)/%,%,$(CURDIR))/$@
|
||||||
$(ULP_LD) -o $@ -A elf32-esp32ulp -Map=$(ULP_MAP) -T $(ULP_LD_SCRIPT) $<
|
$(ULP_LD) -o $@ -A elf32-esp32ulp -Map=$(ULP_MAP) -T $(ULP_LD_SCRIPT) $<
|
||||||
|
|
||||||
# Dump the list of global symbols in a convenient format.
|
# Dump the list of global symbols in a convenient format.
|
||||||
@@ -51,7 +51,7 @@ $(ULP_SYM): $(ULP_ELF)
|
|||||||
|
|
||||||
# Dump the binary for inclusion into the project
|
# Dump the binary for inclusion into the project
|
||||||
$(COMPONENT_BUILD_DIR)/$(ULP_BIN): $(ULP_ELF)
|
$(COMPONENT_BUILD_DIR)/$(ULP_BIN): $(ULP_ELF)
|
||||||
$(summary) ULP_BIN $(notdir $@)
|
$(summary) ULP_BIN $(patsubst $(PWD)/%,%,$@)
|
||||||
$(ULP_OBJCOPY) -O binary $< $@
|
$(ULP_OBJCOPY) -O binary $< $@
|
||||||
|
|
||||||
# Left and right side of the rule are the same, but the right side
|
# Left and right side of the rule are the same, but the right side
|
||||||
@@ -67,7 +67,7 @@ $(COMPONENT_BUILD_DIR)/$(ULP_EXPORTS_LD): $(COMPONENT_NAME)_ulp_mapgen_intermedi
|
|||||||
|
|
||||||
# Convert the symbols list into a header file and linker export script.
|
# Convert the symbols list into a header file and linker export script.
|
||||||
$(COMPONENT_NAME)_ulp_mapgen_intermediate: $(ULP_SYM)
|
$(COMPONENT_NAME)_ulp_mapgen_intermediate: $(ULP_SYM)
|
||||||
$(summary) ULP_MAPGEN $(notdir $<)
|
$(summary) ULP_MAPGEN $(patsubst $(PWD)/%,%,$(CURDIR))/$<
|
||||||
$(ULP_MAP_GEN) -s $(ULP_SYM) -o $(ULP_EXPORTS_LD:.ld=)
|
$(ULP_MAP_GEN) -s $(ULP_SYM) -o $(ULP_EXPORTS_LD:.ld=)
|
||||||
|
|
||||||
# Building the component separately from the project should result in
|
# Building the component separately from the project should result in
|
||||||
|
@@ -252,7 +252,7 @@ embed_txt/$$(notdir $(1)): $(call resolvepath,$(1),$(COMPONENT_PATH)) | embed_tx
|
|||||||
# messing about with the embed_X subdirectory then using 'cd' for objcopy is because the
|
# messing about with the embed_X subdirectory then using 'cd' for objcopy is because the
|
||||||
# full path passed to OBJCOPY makes it into the name of the symbols in the .o file
|
# full path passed to OBJCOPY makes it into the name of the symbols in the .o file
|
||||||
$$(notdir $(1)).$(2).o: embed_$(2)/$$(notdir $(1))
|
$$(notdir $(1)).$(2).o: embed_$(2)/$$(notdir $(1))
|
||||||
$(summary) EMBED $$@
|
$(summary) EMBED $$(patsubst $$(PWD)/%,%,$$(CURDIR))/$$@
|
||||||
cd embed_$(2); $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) ../$$@
|
cd embed_$(2); $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) ../$$@
|
||||||
|
|
||||||
CLEAN_FILES += embed_$(2)/$$(notdir $(1))
|
CLEAN_FILES += embed_$(2)/$$(notdir $(1))
|
||||||
|
Reference in New Issue
Block a user