summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyanZhaoXB <zhaoran11@huawei.com>2022-07-02 16:54:21 +0800
committerRyanZhaoXB <zhaoran11@huawei.com>2022-09-19 17:50:53 +0800
commit7c6ae5255a23ab1461001cef857dc6fb3804a9cd (patch)
tree32d5eee7557176c2068994c5e24d45b8c1d1422a /Makefile
parentdistribute device model to meta storage (diff)
downloadkubeedge-7c6ae5255a23ab1461001cef857dc6fb3804a9cd.tar.gz
add dmi api, proto, services, server and dmi module in devicetwin
fix device twin UT and review comment. update device model crd. add mutex lock for MapperRegister add rate limiter for DMI server make dmiclients as a map and generate a new client when a new mapper registers update api.pb.go modify dmi client move deviceList to the server struct make DMIcache mv edge/pkg/apis/dmi to pkg/apis/dmi add some mutex and fix some comment optimized the v1alpha1 of DMI proto and add some comments update api.pb.go generate crd fix review comments Signed-off-by: RyanZhaoXB <zhaoran11@huawei.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 02094d454..14b32cf0e 100644
--- a/Makefile
+++ b/Makefile
@@ -223,6 +223,28 @@ generate:
chmod a+x hack/generate-crds.sh && ./hack/generate-crds.sh $(foreach p, $(listCRDParams),--$(p)=$($(p)) )
endif
+DMI_VERSION=v1alpha1
+listDMIParams := DMI_VERSION
+define GENERATE_DMI_HELP_INFO
+# generate dmi api.pb.go from api.proto.
+#
+# Args:
+# DMI_VERSIONS, default: v1alpha1
+#
+# Example:
+# make dmi-proto
+# make dmi-proto -e DMI_VERSION=v1alpha1
+#
+endef
+.PHONY: dmi-proto
+ifeq ($(HELP),y)
+dmi-proto:
+ @echo "$$GENERATE_DMI_HELP_INFO"
+else
+dmi-proto:
+ chmod a+x hack/generate-dmi-proto.sh && ./hack/generate-dmi-proto.sh $(foreach p, $(listDMIParams),--$(p)=$($(p)) )
+endif
+
SMALLBUILD_COMPONENTS=edgecore
define SMALLBUILD_HELP_INFO
# small build components.