Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f4f9a1b authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Ethan Chen
Browse files

binary: Don't run protobuf header relocations if origin/target are the same

REF: KIPPER-524 CRACKLING-831
Change-Id: I3746746bdf1526674f345d884e2eccef85e946ef
parent ccec9dbe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -540,10 +540,11 @@ proto_generated_objects := $(addprefix $(proto_generated_obj_dir)/, \

define copy-proto-files
$(if $(PRIVATE_PROTOC_OUTPUT), \
   $(if $(call streq,$(PRIVATE_PROTOC_INPUT),$(PRIVATE_PROTOC_OUTPUT)),, \
   $(eval proto_generated_path := $(dir $(subst $(PRIVATE_PROTOC_INPUT),$(PRIVATE_PROTOC_OUTPUT),$@)))
   @mkdir -p $(dir $(proto_generated_path))
   @echo "Protobuf relocation: $@ => $(proto_generated_path)"
   @cp -f $@ $(proto_generated_path) ,)
   @cp -f $@ $(proto_generated_path) ),)
endef