Fixed make dependency definition 80/25880/1
authorRiku Nomoto <riku.nomoto@woven-planet.global>
Fri, 8 Jan 2021 07:11:55 +0000 (16:11 +0900)
committerRiku Nomoto <riku.nomoto@woven-planet.global>
Fri, 8 Jan 2021 07:11:55 +0000 (16:11 +0900)
Removed RPC_APIDEF because to build rpc_apidef is defined
for rpc_library/tool.
And make-target for RPC_APIDEF is just defined in
service/other/rpc_library/tool/Makefile.

Signed-off-by: Riku Nomoto <riku.nomoto@woven-planet.global>
Change-Id: I8dd870f8c919d85b9ce235f80858db64d7d6ddf0

agl-basefiles/share/rpc_rule.mk

index f5db71d..84c238f 100644 (file)
@@ -19,7 +19,7 @@
 #
 
 #rpc_apidef directory path must be added
-RPC_APIDEF := $(OECORE_NATIVE_SYSROOT)/usr/bin/rpc_apidef
+RPC_APIDEF := rpc_apidef
 
 RPC_API_RULES := $(RPC_API:%=.%.api.rule)
 rpc_api := $(shell echo $(RPC_API) | tr A-Z a-z)
@@ -28,7 +28,7 @@ RPC_API_DEPS := $(rpc_api:%=%_api_stub.d) $(rpc_api:%=%_srvr_stub.d)
 
 .%.api.rule:
        @echo 'rpc_name:=$(shell echo $* | tr A-Z a-z)' > $@
-       @echo '$$(rpc_name)_api.h $$(rpc_name)_api_stub.c $$(rpc_name)_srvr.h $$(rpc_name)_srvr_stub.c: $*.api $$(RPC_APIDEF)' >> $@
+       @echo '$$(rpc_name)_api.h $$(rpc_name)_api_stub.c $$(rpc_name)_srvr.h $$(rpc_name)_srvr_stub.c: $*.api' >> $@
        @echo ' $$(RPC_APIDEF) $$(CPPFLAGS) $$(RPC_APIDEF_FLAGS) $$<' >> $@
        @echo >> $@
        @echo '$*.api:' >> $@