summaryrefslogtreecommitdiff
path: root/hack/make-rules
diff options
context:
space:
mode:
authorzhangjie <iamkadisi@163.com>2020-02-05 20:37:19 +0800
committerzhangjie <iamkadisi@163.com>2020-02-18 16:54:39 +0800
commit9d540eb95d8773ba111217ac5dacb639c0175db3 (patch)
tree7f6ccd696d83b54282da929e2a9f2e3506d79aaf /hack/make-rules
parentsupport make e2e (diff)
downloadkubeedge-9d540eb95d8773ba111217ac5dacb639c0175db3.tar.gz
support make bluetoothdevice and make bluetoothdevice_imagex
Signed-off-by: zhangjie <iamkadisi@163.com> Co-Authored-By: Kevin Wang <kevinwzf0126@gmail.com>
Diffstat (limited to 'hack/make-rules')
-rwxr-xr-xhack/make-rules/bluetoothdevice.sh26
-rwxr-xr-xhack/make-rules/build.sh1
-rwxr-xr-xhack/make-rules/clean.sh30
3 files changed, 56 insertions, 1 deletions
diff --git a/hack/make-rules/bluetoothdevice.sh b/hack/make-rules/bluetoothdevice.sh
new file mode 100755
index 000000000..b8465fc87
--- /dev/null
+++ b/hack/make-rules/bluetoothdevice.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+###
+#Copyright 2020 The KubeEdge Authors.
+#
+#Licensed under the Apache License, Version 2.0 (the "License");
+#you may not use this file except in compliance with the License.
+#You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing, software
+#distributed under the License is distributed on an "AS IS" BASIS,
+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#See the License for the specific language governing permissions and
+#limitations under the License.
+###
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+KUBEEDGE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
+source "${KUBEEDGE_ROOT}/hack/lib/init.sh"
+
+kubeedge::mapper::build_bluetoothdevice
diff --git a/hack/make-rules/build.sh b/hack/make-rules/build.sh
index 63e31e9be..cc230c07e 100755
--- a/hack/make-rules/build.sh
+++ b/hack/make-rules/build.sh
@@ -24,4 +24,3 @@ KUBEEDGE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
source "${KUBEEDGE_ROOT}/hack/lib/init.sh"
kubeedge::golang::build_binaries "$@"
-kubeedge::golang::place_bins "$@"
diff --git a/hack/make-rules/clean.sh b/hack/make-rules/clean.sh
new file mode 100755
index 000000000..f800d9547
--- /dev/null
+++ b/hack/make-rules/clean.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+###
+#Copyright 2020 The KubeEdge Authors.
+#
+#Licensed under the Apache License, Version 2.0 (the "License");
+#you may not use this file except in compliance with the License.
+#You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing, software
+#distributed under the License is distributed on an "AS IS" BASIS,
+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#See the License for the specific language governing permissions and
+#limitations under the License.
+###
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+KUBEEDGE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
+source "${KUBEEDGE_ROOT}/hack/lib/init.sh"
+
+kubeedge::clean::bin(){
+ rm -rf $KUBEEDGE_OUTPUT_BINPATH/*
+}
+
+kubeedge::clean::bin