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
f3ef7fc4
Commit
f3ef7fc4
authored
Sep 04, 2020
by
黄振令
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】增加make package命令 生产发布包
【提交人】huang.zhenling
parent
89a95333
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
run.sh
run.sh
+7
-0
tools/build-rules/_rules-top.mk
tools/build-rules/_rules-top.mk
+26
-1
No files found.
run.sh
0 → 100644
View file @
f3ef7fc4
#! /bin/bash
export
LD_LIBRARY_PATH
=
$(
LD_LIBRARY_PATH
)
:./lib/
./midware &
./kcloud &
./Z3GatewayHost &
tools/build-rules/_rules-top.mk
View file @
f3ef7fc4
.PHONY
:
doc detect config reconfig toolchain sub-mods final-out env cmake one help
.PHONY
:
doc detect config reconfig toolchain sub-mods final-out env cmake one help
package
all
:
detect config toolchain sub-mods final-out
$(TOP_Q)
\
...
...
@@ -192,6 +192,31 @@ distclean:
rm
-rf
$$
(
ls
-I
$(CONFIG_TOOLCHAIN_NAME)
)
;
\
fi
\
fi
buildDate
=
$(
shell
date
"+%Y.%m.%d"
)
releaseDir
=
release
$(buildDate)
package
:
@
echo
"
$(buildDate)
"
echo
"
$(releaseDir)
"
rm
-rf
$(releaseDir)
mkdir
$(releaseDir)
mkdir
$(releaseDir)
/lib
mkdir
$(releaseDir)
/tsl
cp
zlog.conf
$(TOP_DIR)
/
$(releaseDir)
-
cp
-rf
$(TOP_DIR)
/tsl
$(TOP_DIR)
/
$(releaseDir)
/tsl
cp
-rf
$(TOP_DIR)
/output/release/lib/
*
.so
$(TOP_DIR)
/
$(releaseDir)
/lib
cp
-rf
$(TOP_DIR)
/output/release/bin/
*
$(TOP_DIR)
/
$(releaseDir)
/
cp
-rf
$(TOP_DIR)
/run.sh
$(TOP_DIR)
/
$(releaseDir)
/
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/ev/libev_ubuntu.so
$(TOP_DIR)
/
$(releaseDir)
/lib
else
cp
-rf
$(TOP_DIR)
/common/nanomsg/libnanomsg.so
$(TOP_DIR)
/
$(releaseDir)
/lib
cp
-rf
$(TOP_DIR)
/common/ev/libev.so
$(TOP_DIR)
/
$(releaseDir)
/lib
endif
cp
-rf
$(TOP_DIR)
/platform/zigbee/app/builder/Z3GatewayHost/build/exe/Z3GatewayHost
$(TOP_DIR)
/
$(releaseDir)
/
echo
$(PWD)
ifeq
($(shell uname),Darwin)
KCONFIG_MCONF
:=
tools/prebuilt/macos/kconfig-frontends-mac/kconfig-mconf
...
...
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