]> granicus.if.org Git - esp-idf/commitdiff
build: Print real paths for generated build objects
authorKedar Sovani <kedars@gmail.com>
Thu, 3 Aug 2017 11:27:43 +0000 (16:57 +0530)
committerKedar Sovani <kedars@gmail.com>
Thu, 10 Aug 2017 04:04:44 +0000 (09:34 +0530)
make/component_wrapper.mk
make/project.mk

index 77c679c815758af0db9df99a97a1c71ddc9729c1..63773b5fe3db53f915d744007c30851c911c01c2 100644 (file)
@@ -164,7 +164,7 @@ build: $(COMPONENT_LIBRARY)
 # Build the archive. We remove the archive first, otherwise ar will get confused if we update
 # an archive when multiple filenames have the same name (src1/test.o and src2/test.o)
 $(COMPONENT_LIBRARY): $(COMPONENT_OBJS) $(COMPONENT_EMBED_OBJS)
-       $(summary) AR $@
+       $(summary) AR $(patsubst $(PWD)/%,%,$(CURDIR))/$@
        rm -f $@
        $(AR) cru $@ $^
 endif
@@ -198,17 +198,17 @@ define GenerateCompileTargets
 # $(1) - directory containing source files, relative to $(COMPONENT_PATH) - one of $(COMPONENT_SRCDIRS)
 #
 $(1)/%.o: $$(COMPONENT_PATH)/$(1)/%.c $(COMMON_MAKEFILES) $(COMPONENT_MAKEFILE) | $(COMPONENT_SRCDIRS)
-       $$(summary) CC $$@
+       $$(summary) CC $$(patsubst $$(PWD)/%,%,$$(CURDIR))/$$@
        $$(CC) $$(CFLAGS) $$(CPPFLAGS) $$(addprefix -I ,$$(COMPONENT_INCLUDES)) $$(addprefix -I ,$$(COMPONENT_EXTRA_INCLUDES)) -I$(1) -c $$< -o $$@
        $(call AppendSourceToDependencies,$$<,$$@)
 
 $(1)/%.o: $$(COMPONENT_PATH)/$(1)/%.cpp $(COMMON_MAKEFILES) $(COMPONENT_MAKEFILE) | $(COMPONENT_SRCDIRS)
-       $$(summary) CXX $$@
+       $$(summary) CXX $$(patsubst $$(PWD)/%,%,$$(CURDIR))/$$@
        $$(CXX) $$(CXXFLAGS) $$(CPPFLAGS) $$(addprefix -I,$$(COMPONENT_INCLUDES)) $$(addprefix -I,$$(COMPONENT_EXTRA_INCLUDES)) -I$(1) -c $$< -o $$@
        $(call AppendSourceToDependencies,$$<,$$@)
 
 $(1)/%.o: $$(COMPONENT_PATH)/$(1)/%.S $(COMMON_MAKEFILES) $(COMPONENT_MAKEFILE) | $(COMPONENT_SRCDIRS)
-       $$(summary) AS $$@
+       $$(summary) AS $$(patsubst $$(PWD)/%,%,$$(CURDIR))/$$@
        $$(CC) $$(CPPFLAGS) $$(DEBUG_FLAGS) $$(addprefix -I ,$$(COMPONENT_INCLUDES)) $$(addprefix -I ,$$(COMPONENT_EXTRA_INCLUDES)) -I$(1) -c $$< -o $$@
        $(call AppendSourceToDependencies,$$<,$$@)
 
index f6c958f2f6f366e87ae52a10601041575de552e6..d2f3cfcd5af6dce3b2199f4e92b42764440513fd 100644 (file)
@@ -326,7 +326,7 @@ endif
 # also depends on additional dependencies (linker scripts & binary libraries)
 # stored in COMPONENT_LINKER_DEPS, built via component.mk files' COMPONENT_ADD_LINKER_DEPS variable
 $(APP_ELF): $(foreach libcomp,$(COMPONENT_LIBRARIES),$(BUILD_DIR_BASE)/$(libcomp)/lib$(libcomp).a) $(COMPONENT_LINKER_DEPS) $(COMPONENT_PROJECT_VARS)
-       $(summary) LD $(notdir $@)
+       $(summary) LD $(patsubst $(PWD)/%,%,$@)
        $(CC) $(LDFLAGS) -o $@ -Wl,-Map=$(APP_MAP)
 
 app: $(APP_BIN)