Skip to content

Commit d4f8c9b

Browse files
author
Unify Automated
committed
Release ver_1.3.1
1 parent f66742e commit d4f8c9b

File tree

10,095 files changed

+491494
-409177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,095 files changed

+491494
-409177
lines changed

.gitattributes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
2-
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
3-
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
41
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
5-
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
62
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text
3+
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
4+
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
5+
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
6+
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text

applications/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fetch dependencies if forced
22
if(FETCH_GSDK MATCHES ON)
3-
find_package(GeckoSDK 4.2.0 REQUIRED)
3+
find_package(GeckoSDK 4.2.2 REQUIRED)
44
endif()
55

66
# Build options will determine if the applications will be included and build
@@ -84,6 +84,7 @@ if(NOT APPLE )
8484
if(BUILD_CPCD MATCHES ON)
8585
add_subdirectory(cpcd)
8686
add_subdirectory(cpc-hci-bridge)
87+
add_subdirectory(bt_host_empty)
8788
message(STATUS "CPCd daemon and applications will build")
8889
else()
8990
message(STATUS "CPCd daemon and applications will NOT build")

applications/aox/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
find_package(GeckoSDK 4.2.0 REQUIRED)
1+
find_package(GeckoSDK 4.2.2 REQUIRED)
22

33
add_subdirectory(components)
44
add_subdirectory(applications)
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
find_package(GeckoSDK 4.2.0 REQUIRED)
2+
find_package(CPCD 4.2.0 REQUIRED)
3+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
4+
find_program(MAKE_EXECUTABLE NAMES make REQUIRED)
5+
6+
set(BGBUILD ${GeckoSDK_ROOT_DIR}/protocol/bluetooth/bin/gatt/bgbuild.py)
7+
8+
set(EXPORT_DIR ${CMAKE_CURRENT_BINARY_DIR}/export)
9+
set(AUTOGEN_DIR ${CMAKE_CURRENT_BINARY_DIR}/autogen)
10+
set(BTCONF_DIR ${EXPORT_DIR}/app/bluetooth/example_host/bt_host_empty/config/btconf)
11+
set(BTCONF_FILE ${BTCONF_DIR}/gatt_configuration.btconf)
12+
13+
set(BT_HOST_EMPTY_SRC_FILES
14+
${EXPORT_DIR}/app/common/util/app_log/app_log.c
15+
${EXPORT_DIR}/app/bluetooth/common_host/app_log/app_log_cli.c
16+
${EXPORT_DIR}/app/bluetooth/common_host/iostream_mock/sl_iostream_handles.c
17+
${EXPORT_DIR}/app/bluetooth/common_host/app_signal/app_signal_posix.c
18+
${EXPORT_DIR}/app/bluetooth/common_host/app_sleep/app_sleep.c
19+
${EXPORT_DIR}/app/bluetooth/common_host/host_comm/host_comm.c
20+
${EXPORT_DIR}/app/bluetooth/common_host/ncp_host/ncp_host.c
21+
${EXPORT_DIR}/app/bluetooth/common_host/tcp/tcp_posix.c
22+
${EXPORT_DIR}/app/bluetooth/common_host/uart/uart_posix.c
23+
${EXPORT_DIR}/app/bluetooth/common_host/cpc/cpc.c
24+
${EXPORT_DIR}/protocol/bluetooth/src/sl_bt_ncp_host.c
25+
${EXPORT_DIR}/protocol/bluetooth/src/sl_bt_ncp_host_api.c
26+
${EXPORT_DIR}/app/bluetooth/common_host/named_socket/named_socket.c
27+
${EXPORT_DIR}/app/bluetooth/common/ncp_gatt/sl_ncp_gatt.c
28+
${EXPORT_DIR}/app/bluetooth/common_host/ncp_version/ncp_version.c
29+
${EXPORT_DIR}/app/bluetooth/common_host/system/system.c
30+
${EXPORT_DIR}/app/bluetooth/example_host/bt_host_empty/app.c
31+
${EXPORT_DIR}/app/bluetooth/example_host/bt_host_empty/main.c
32+
)
33+
34+
set(BT_HOST_EMPTY_INCLUDES
35+
${EXPORT_DIR}/app/common/util/app_log
36+
${EXPORT_DIR}/app/bluetooth/common_host/iostream_mock
37+
${EXPORT_DIR}/app/bluetooth/common_host/app_log
38+
${EXPORT_DIR}/app/bluetooth/common_host/app_log/config
39+
${EXPORT_DIR}/app/common/util/app_assert
40+
${EXPORT_DIR}/app/bluetooth/common_host/app_assert/config
41+
${EXPORT_DIR}/app/bluetooth/common_host/app_signal
42+
${EXPORT_DIR}/app/bluetooth/common_host/app_sleep
43+
${EXPORT_DIR}/app/bluetooth/common_host/host_comm
44+
${EXPORT_DIR}/app/bluetooth/common_host/host_comm/config
45+
${EXPORT_DIR}/app/bluetooth/common_host/ncp_host
46+
${EXPORT_DIR}/app/bluetooth/common_host/ncp_host/config
47+
${EXPORT_DIR}/app/bluetooth/common_host/system
48+
${EXPORT_DIR}/app/bluetooth/common_host/tcp
49+
${EXPORT_DIR}/app/bluetooth/common_host/uart
50+
${EXPORT_DIR}/app/bluetooth/common_host/cpc
51+
${EXPORT_DIR}/platform/common/inc
52+
${EXPORT_DIR}/protocol/bluetooth/inc
53+
${EXPORT_DIR}/app/bluetooth/common_host/named_socket
54+
${EXPORT_DIR}/app/bluetooth/common/ncp_gatt
55+
${EXPORT_DIR}/app/bluetooth/common_host/ncp_version
56+
${EXPORT_DIR}/app/bluetooth/example_host/bt_host_empty
57+
)
58+
59+
add_custom_command(
60+
OUTPUT ${BT_HOST_EMPTY_SRC_FILES} ${BTCONF_FILE}
61+
COMMAND ${MAKE_EXECUTABLE} export EXPORT_DIR=${EXPORT_DIR}
62+
WORKING_DIRECTORY ${GeckoSDK_ROOT_DIR}/app/bluetooth/example_host/bt_host_empty
63+
COMMENT "Export project files"
64+
)
65+
66+
add_custom_command(
67+
OUTPUT ${AUTOGEN_DIR}/gatt_db.c
68+
COMMAND ${Python3_EXECUTABLE} ${BGBUILD} ${BTCONF_DIR} -o ${AUTOGEN_DIR}
69+
DEPENDS ${BTCONF_FILE}
70+
COMMENT "Generate GATT database"
71+
)
72+
73+
add_executable(bt_host_empty
74+
${BT_HOST_EMPTY_SRC_FILES}
75+
${AUTOGEN_DIR}/gatt_db.c
76+
)
77+
78+
add_dependencies(bt_host_empty cpc cpcd)
79+
80+
target_include_directories(bt_host_empty BEFORE PRIVATE
81+
${BT_HOST_EMPTY_INCLUDES}
82+
${cpcd_SOURCE_DIR}/lib
83+
${AUTOGEN_DIR}
84+
)
85+
86+
target_compile_definitions(bt_host_empty PRIVATE
87+
-DHOST_TOOLCHAIN
88+
-DPOSIX
89+
-DCPC
90+
-DSL_CATALOG_APP_LOG_PRESENT
91+
-DSL_CATALOG_NCP_GATT_PRESENT
92+
-DSL_CATALOG_NCP_VERSION_PRESENT
93+
)
94+
95+
set_source_files_properties(
96+
${EXPORT_DIR}/app/bluetooth/common_host/host_comm/host_comm.c
97+
PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation
98+
)
99+
100+
target_link_libraries(bt_host_empty PRIVATE pthread util cpc)
101+
target_link_directories(bt_host_empty PRIVATE ${cpcd_BINARY_DIR})
102+
103+
install(TARGETS bt_host_empty RUNTIME DESTINATION "bin" COMPONENT uic-bt-host-empty)
104+
105+
add_component_to_uic(
106+
uic-bt-host-empty # Package Name
107+
"Universal IOT controller - Bluetooth Host Empty Project"
108+
"${CMAKE_PROJECT_NAME}-bt-host-empty" # Package Debian filename
109+
"${CMAKE_PROJECT_NAME}-cpcd" # Package Depends on
110+
""
111+
""
112+
)
Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,53 @@
11
#!/bin/sh
2-
if type "systemctl" > /dev/null; then
2+
# postinst script for uic-dev-gui
3+
#
4+
# see: dh_installdeb(1)
5+
6+
set -e
7+
UIC_VAR_DIR="${CPACK_PACKAGING_INSTALL_PREFIX}/var/lib/uic/"
8+
9+
setup_uic_user() {
10+
if ! getent group uic >/dev/null; then
11+
addgroup --quiet --system uic
12+
fi
13+
14+
if ! getent passwd uic >/dev/null; then
15+
adduser --quiet --system --no-create-home --ingroup uic --home "$UIC_VAR_DIR" --shell /usr/sbin/nologin uic
16+
usermod -a -G dialout uic
17+
fi
18+
}
19+
20+
fix_permissions() {
21+
mkdir -p "$UIC_VAR_DIR"
22+
chown uic "$UIC_VAR_DIR"
23+
}
24+
25+
start_services() {
26+
if type "systemctl" > /dev/null; then
327
systemctl --system daemon-reload || true
428
systemctl enable uic-dev-gui-api.service || true
529
systemctl enable uic-dev-gui-client.service || true
630
systemctl start uic-dev-gui-api.service || true
731
systemctl start uic-dev-gui-client.service || true
8-
fi
32+
fi
33+
}
34+
35+
case "$1" in
36+
configure)
37+
setup_uic_user
38+
fix_permissions
39+
start_services
40+
;;
41+
42+
abort-upgrade|abort-remove|abort-deconfigure)
43+
;;
44+
45+
*)
46+
echo "postinst called with unknown argument \`$1'" >&2
47+
exit 1
48+
;;
49+
esac
50+
51+
#DEBHELPER#
52+
53+
exit 0
38.2 KB
Loading
45.8 KB
Loading
78.6 KB
Loading
80.5 KB
Loading
-16.4 KB
Loading

0 commit comments

Comments
 (0)