-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add coreMQTT library #80
base: master
Are you sure you want to change the base?
Conversation
Unit Test Results6 780 tests - 680 6 154 ✅ - 591 32m 26s ⏱️ - 4m 9s Results for commit 1553a5e. ± Comparison against base commit b659aa2. This pull request removes 890 and adds 210 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some remarks :)
coreMQTT/build.sh
Outdated
|
||
cp "${PREFIX_COREMQTT}/CMakeLists.txt" "${PREFIX_COREMQTT_BUILD}/CMakeLists.txt" | ||
|
||
cmake -S "$PREFIX_COREMQTT_BUILD" -B "$PREFIX_COREMQTT_INSTALL" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what? building inside install dir?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure how this should be done. Is it better now?
coreMQTT/build.sh
Outdated
|
||
mkdir -p "$PREFIX_COREMQTT_BUILD" "$PREFIX_COREMQTT_INSTALL" | ||
if [ ! -f "$PREFIX_COREMQTT/v${COREMQTT_VERSION}.tar.gz" ]; then | ||
wget "$PKG_URL" -P "${PREFIX_COREMQTT}" --no-check-certificate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using functions from #78 now, but I haven't created the mirror yet
JIRA: NIL-595, CI-339
Default version changed from 5.3.5 to 5.3.6. Added port build options: - PORTS_LUA_VERSION - version to download (must be supported by respective patches); - PORTS_LUA_STACK_SIZE - size of Lua's internal stack; - PORTS_LUA_CSTACK_SIZE - size of stack (when using linked lua binary); - PORTS_LUA_COMPAT_5_2 - backward compatibility with Lua 5.2; - PORTS_LUA_DEBUG - enable debug features, e.g. API checks; - PORTS_LUA_INSTALL_TESTS - download and install external Lua test scripts; - PORTS_LUA_RESTRAIN - disable Lua features which may be used to crash the interpreter or perform side-effects in the operating system. JIRA: NIL-595
5c4d1d7
to
74b670b
Compare
fi | ||
|
||
mycflags=( | ||
${CFLAGS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fi | ||
|
||
mycflags=( | ||
${CFLAGS} | ||
-DLUAI_MAXSTACK=${PORTS_LUA_STACK_SIZE:-2000} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [ "${PORTS_LUA_COMPAT_5_2}" = "y" ]; then mycflags+=("-DLUA_COMPAT_5_2"); fi | ||
if [ "${PORTS_LUA_DEBUG}" = "y" ]; then mycflags+=("-DLUA_USE_APICHECK"); fi | ||
|
||
myldflags=( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [ "${PORTS_LUA_DEBUG}" = "y" ]; then mycflags+=("-DLUA_USE_APICHECK"); fi | ||
|
||
myldflags=( | ||
${LDFLAGS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
myldflags=( | ||
${LDFLAGS} | ||
-Wl,-z,stack-size=${PORTS_LUA_CSTACK_SIZE:-4096} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
74b670b
to
bfc8d6e
Compare
JIRA: NIL-588
bfc8d6e
to
1553a5e
Compare
"coreMQTT" | ||
) | ||
|
||
source "${PREFIX_PROJECT}/phoenix-rtos-ports/build.subr" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Porting a lightweight MQTT client library coreMQTT
JIRA-NIL588
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment
build: Add common utility functions, tidy up build process #78