Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
430e719a
Commit
430e719a
authored
Sep 27, 2020
by
黄振令
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】1. 程序运行工作目录定在/usr/kk, tsl和dev_config_table配置文件也放在该文件下;2.启动脚本判断该目录是否存在,没存在创建且从/home/kk拷贝配置文件
parent
740f213d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
app.sh
app.sh
+19
-10
tools/build-rules/_rules-top.mk
tools/build-rules/_rules-top.mk
+1
-1
No files found.
app.sh
View file @
430e719a
...
@@ -3,32 +3,41 @@ nanomsg_File="/home/kk/lib/libnanomsg.so.5"
...
@@ -3,32 +3,41 @@ nanomsg_File="/home/kk/lib/libnanomsg.so.5"
ev_File
=
"/home/kk/lib/libev.so.4"
ev_File
=
"/home/kk/lib/libev.so.4"
sqlite_File
=
"/home/kk/lib/libsqlite3.so.0"
sqlite_File
=
"/home/kk/lib/libsqlite3.so.0"
run_Dir
=
"/"
run_Dir
=
"/usr/kk"
dev_cfg_Dir
=
"
${
run_Dir
}
/ZB/dev_config_table"
tsl_Dir
=
"
${
run_Dir
}
/tsl"
dev_cfg_Dir
=
"
${
run_Dir
}
/dev_config_table"
cd
/sbin/
cd
/sbin/
insmod /sbin/ssd1306-revision.ko
insmod /sbin/ssd1306-revision.ko
/sbin/oled
>
/dev/null 2>&1 &
/sbin/oled
>
/dev/null 2>&1 &
sleep
1
sleep
1
if
[
!
-d
"
$run_Dir
"
]
;
then
mkdir
${
run_Dir
}
fi
if
[
!
-d
"
$tsl_Dir
"
]
;
then
cp
-rf
/home/kk/tsl
${
run_Dir
}
/
fi
if
[
!
-d
"
$dev_cfg_Dir
"
]
;
then
if
[
!
-d
"
$dev_cfg_Dir
"
]
;
then
mkdir
/ZB
cp
-rf
/home/kk/dev_config_table
${
run_Dir
}
cp
-rf
/home/kk/dev_config_table /ZB
sleep
1
cp
-rf
/home/kk/dev_map_table.json /ZB
fi
fi
sleep
1
export
LD_LIBRARY_PATH
=
/home/kk/lib
export
LD_LIBRARY_PATH
=
/home/kk/lib
cd
/home/kk/lib
cd
/home/kk/lib
if
[
!
-f
"
$nanomsg_File
"
]
;
then
if
[
!
-f
"
$nanomsg_File
"
]
;
then
ln
-s
libnanomsg.so /lib/libnanomsg.so.5
ln
-s
f
/home/kk/lib/
libnanomsg.so /lib/libnanomsg.so.5
fi
fi
if
[
!
-f
"
$ev_File
"
]
;
then
if
[
!
-f
"
$ev_File
"
]
;
then
ln
-s
libev.so /lib/libev.so.4
ln
-s
f
/home/kk/lib/
libev.so /lib/libev.so.4
fi
fi
if
[
!
-f
"
$sqlite_File
"
]
;
then
if
[
!
-f
"
$sqlite_File
"
]
;
then
ln
-s
libsqlite3.so /lib/libsqlite3.so.0
ln
-s
f
/home/kk/lib/
libsqlite3.so /lib/libsqlite3.so.0
fi
fi
...
@@ -41,9 +50,9 @@ export LD_LIBRARY_PATH=/home/kk/lib
...
@@ -41,9 +50,9 @@ export LD_LIBRARY_PATH=/home/kk/lib
cd
${
run_Dir
}
cd
${
run_Dir
}
/home/kk/kk_midware
>
/dev/null 2>&1 &
/home/kk/kk_midware
>
/dev/null 2>&1 &
sleep
1
/home/kk/kcloud
>
/dev/null 2>&1 &
/home/kk/kcloud
>
/dev/null 2>&1 &
/home/kk/Z3GatewayHost
-f
x
-p
/dev/ttyS0
>
/dev/null 2>&1 &
/home/kk/Z3GatewayHost
-f
x
-p
/dev/ttyS0
>
/dev/null 2>&1 &
sleep
5
/home/kk/process_check.sh
>
/dev/null 2>&1 &
/home/kk/process_check.sh
>
/dev/null 2>&1 &
...
...
tools/build-rules/_rules-top.mk
View file @
430e719a
...
@@ -208,7 +208,7 @@ package:
...
@@ -208,7 +208,7 @@ package:
cp
-rf
$(TOP_DIR)/process_check.sh
$(TOP_DIR)/$(releaseDir)/
cp
-rf
$(TOP_DIR)/process_check.sh
$(TOP_DIR)/$(releaseDir)/
cp
-rf
$(TOP_DIR)/platform/zigbee/app/builder/Z3GatewayHost/ZB/dev_config_table
$(TOP_DIR)/$(releaseDir)/
cp
-rf
$(TOP_DIR)/platform/zigbee/app/builder/Z3GatewayHost/ZB/dev_config_table
$(TOP_DIR)/$(releaseDir)/
cp
-rf
$(TOP_DIR)/platform/zigbee/app/builder/Z3GatewayHost/ZB/dev_map_table.json
$(TOP_DIR)/$(releaseDir)/
cp
-rf
$(TOP_DIR)/platform/zigbee/app/builder/Z3GatewayHost/ZB/dev_map_table.json
$(TOP_DIR)/$(releaseDir)/
dev_config_table/
ifeq
($(CONFIG_VENDOR),ubuntu)
ifeq
($(CONFIG_VENDOR),ubuntu)
cp
-rf
$(TOP_DIR)/common/nanomsg/libnanomsg_ubuntu.so
$(TOP_DIR)/$(releaseDir)/lib/libnanomsg.so.5
cp
-rf
$(TOP_DIR)/common/nanomsg/libnanomsg_ubuntu.so
$(TOP_DIR)/$(releaseDir)/lib/libnanomsg.so.5
cp
-rf
$(TOP_DIR)/common/ev/libev_ubuntu.so
$(TOP_DIR)/$(releaseDir)/lib
cp
-rf
$(TOP_DIR)/common/ev/libev_ubuntu.so
$(TOP_DIR)/$(releaseDir)/lib
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment