소스 검색

Build system: Fix a bug with embedding binaries in object files

Sometimes paths were generated absolute, need to keep those as-is
Angus Gratton 9 년 전
부모
커밋
ed0612c56b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      make/component_wrapper.mk

+ 1 - 1
make/component_wrapper.mk

@@ -204,7 +204,7 @@ embed_txt/$$(notdir $(1)): $(call resolvepath,$(1),$(COMPONENT_PATH)) | embed_tx
 # full path passed to OBJCOPY makes it into the name of the symbols in the .o file
 $(1).$(2).o: embed_$(2)/$$(notdir $(1)) | $$(dir $(1))
 	$(summary) EMBED $$@
-	cd embed_$(2); $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) ../$$@
+	cd embed_$(2); $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) $$(call resolvepath,$$@,../)
 
 CLEAN_FILES += embed_$(2)/$$(notdir $(1))
 endef