Skip to content

Commit c109fec

Browse files
committed
Address latest requested changes
- Fixes GitHub Action path to build script - Compiles with the preprocessor flags shown in log.do_compile step - README.md updated to pointed to centralized documentation in build_tools_workflows
1 parent 24f5aab commit c109fec

4 files changed

Lines changed: 167 additions & 9 deletions

File tree

.github/workflows/native-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ jobs:
1919

2020
- name: native build
2121
run: |
22-
git submodule update --init --recursive
22+
# Pull the latest changes for the native build system
23+
git submodule update --init --recursive --remote
24+
25+
# Build and install dependencies
2326
chmod +x build_tools_workflows/cov_docker_script/setup_dependencies.sh
24-
./build_tools_workflows/cov_docker_script/setup_dependencies.sh ./config/native_build_config.json
25-
chmod +x build_tools_workflows/cov_docker_script/setup_native_build.sh
26-
./build_tools_workflows/cov_docker_script/common_external_build.sh ./config/native_build_config.json $(pwd)
27+
./build_tools_workflows/cov_docker_script/setup_dependencies.sh ./config/component_config.json
28+
29+
# Build component
30+
chmod +x build_tools_workflows/cov_docker_script/common_external_build.sh
31+
./build_tools_workflows/cov_docker_script/common_external_build.sh ./config/component_config.json "$(pwd)"
2732
env:
2833
GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }}

cov_docker_script/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 🔧 Coverity Native Build System for RDK-B Components
2+
3+
The documentation and source for the RDK-B native build system has been centralized in [rdkcentral/build_tools_workflows](https://github.com/rdkcentral/build_tools_workflows/blob/develop/cov_docker_script/README.md)
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,7 @@
9999

100100
"build": {
101101
"type": "autotools",
102-
"configure_options": [
103-
"CPPFLAGS=-I$HOME/usr/include/rdkb -I/usr/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/lib/aarch64-linux-gnu/dbus-1.0/include -I$HOME/usr/include/rdkb/rtmessage",
104-
"CFLAGS=-DSAFEC_DUMMY_API -D_ANSC_USE_OPENSSL_ -D_NO_PKI_KB5_SUPPORT",
105-
"LDFLAGS=-L$HOME/usr/lib -L$HOME/usr/lib/x86_64-linux-gnu -L$HOME/usr/lib/aarch64-linux-gnu"
106-
]
102+
"configure_options_file": "cov_docker_script/configure_options.conf"
107103
}
108104
}
109105
}
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# Common Library Agent Configure Options
2+
# This file contains autotools configure options for the common-library component
3+
# Each section can be edited independently for better maintainability
4+
5+
# ============================================================================
6+
# CPPFLAGS - Preprocessor flags (includes and defines)
7+
# ============================================================================
8+
[CPPFLAGS]
9+
10+
# Include Paths
11+
-I/usr/include
12+
-I/usr/include/dbus-1.0
13+
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
14+
-I/usr/lib/aarch64-linux-gnu/dbus-1.0/include
15+
-I$HOME/usr/include/rdkb
16+
-I$HOME/usr/include/rdkb/rtmessage
17+
-I$HOME/usr/include/rdkb
18+
19+
# Build System & Configuration
20+
-DHAVE_CONFIG_H
21+
-DPIC
22+
-D_DEBUG
23+
24+
# Platform & Architecture
25+
-D_ANSC_LINUX
26+
-D_ANSC_USER
27+
-D_ANSC_LITTLE_ENDIAN_
28+
-D_GNU_SOURCE
29+
-D__USE_XOPEN
30+
-D_NO_EXECINFO_H_
31+
32+
# COSA Framework Core
33+
-D_COSA_HAL_
34+
-U_COSA_SIM_
35+
-D_COSA_BCM_ARM_
36+
-D_COSA_INTEL_USG_ARM_
37+
-D_COSA_FOR_COMCAST_
38+
39+
# ANSC Framework (Security & Networking)
40+
-D_ANSC_USE_OPENSSL_
41+
-D_ANSC_AES_USED_
42+
-D_NO_ANSC_ZLIB_
43+
-U_ANSC_IPV6_COMPATIBLE_
44+
45+
# CCSP Framework
46+
-DCCSP_SUPPORT_ENABLED
47+
-D_CCSP_CWMP_TCP_CONNREQ_HANDLER
48+
-D_DSLH_STUN_
49+
-D_BBHM_SSE_FILE_IO
50+
-D_NO_PKI_KB5_SUPPORT
51+
-DUSE_NOTIFY_COMPONENT
52+
53+
# Logging & Debugging
54+
-DFEATURE_SUPPORT_RDKLOG
55+
-DFEATURE_SUPPORT_SYSLOG
56+
-DINCLUDE_BREAKPAD
57+
-DFEATURE_SUPPORT_ONBOARD_LOGGING
58+
59+
# Hardware Platforms
60+
-D_XB6_PRODUCT_REQ_
61+
-D_XB7_PRODUCT_REQ_
62+
-D_XB8_PRODUCT_REQ_
63+
64+
# MoCA (Multimedia over Coax Alliance)
65+
-DCONFIG_SYSTEM_MOCA
66+
-DMOCA_HOME_ISOLATION
67+
-DMOCA_DIAGONISTIC
68+
69+
# WiFi - Basic Features
70+
-D_TRI_BAND_WIFI_
71+
-D_WIFI_AX_SUPPORT_
72+
-D_WIFI_CONSOLIDATED_STANDARDS_
73+
-DWIFI_HAL_VERSION_3
74+
-D_ENABLE_BAND_STEERING_
75+
-D_BEACONRATE_SUPPORT
76+
-DWIFI_MANAGE_SUPPORTED
77+
78+
# WiFi - Advanced Features
79+
-DFEATURE_SUPPORT_MESH
80+
-DFEATURE_SUPPORT_WEBCONFIG
81+
-DFEATURE_SUPPORT_INTERWORKING
82+
-DFEATURE_SUPPORT_PASSPOINT
83+
-DFEATURE_SUPPORT_RADIUSGREYLIST
84+
-DFEATURE_SUPPORT_ACL_SELFHEAL
85+
-DFEATURE_CSI
86+
-DFEATURE_OFF_CHANNEL_SCAN_5G
87+
-DWIFI_STATS_DISABLE_SPEEDTEST_RUNNING
88+
-DRDK_ONEWIFI
89+
90+
# WAN Management
91+
-DAUTOWAN_ENABLE
92+
-DFEATURE_RDKB_WAN_MANAGER
93+
-DENABLE_WANMODECHANGE_NOREBOOT
94+
-DWAN_FAILOVER_SUPPORTED
95+
-DGATEWAY_FAILOVER_SUPPORTED
96+
-DFEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE
97+
-DWAN_MANAGER_UNIFICATION_ENABLED
98+
99+
# Ethernet & Network Interfaces
100+
-DENABLE_ETH_WAN
101+
-DETH_4_PORTS
102+
-D_2_5G_ETHERNET_SUPPORT_
103+
-D_BRIDGE_UTILS_BIN_
104+
105+
# Cable Modem & DOCSIS
106+
-D_CM_HIGHSPLIT_SUPPORTED_
107+
-D_MACSEC_SUPPORT_
108+
109+
# MAP-T / NAT46 (IPv4/IPv6 Translation)
110+
-DFEATURE_SUPPORT_MAPT_NAT46
111+
-DMAPT_UNIFICATION_ENABLED
112+
113+
# DHCP Management
114+
-DFEATURE_RDKB_DHCP_MANAGER
115+
-DEROUTER_DHCP_OPTION_MTA
116+
117+
# RDK-B Services & Components
118+
-DRBUS_BUILD_FLAG_ENABLE
119+
-DFEATURE_RDKB_INTER_DEVICE_MANAGER
120+
-D_PSM_TRANS_RDK_TRIGG_
121+
122+
# Time & DNS Services
123+
-DNTPD_ENABLE
124+
-DUTC_ENABLE
125+
-DUTC_ENABLE_ATOM
126+
-DXDNS_ENABLE
127+
128+
# Security & Encryption
129+
-DENABLE_SA_KEY
130+
131+
# Web & UI
132+
-DBUILD_WEB
133+
134+
# Additional Features
135+
-DSPEED_BOOST_SUPPORTED
136+
-DAMENITIES_NETWORK_ENABLED
137+
-DCOLUMBO_HWTEST
138+
139+
# ============================================================================
140+
# CFLAGS - Compiler flags
141+
# ============================================================================
142+
[CFLAGS]
143+
-ffunction-sections
144+
-fdata-sections
145+
-fomit-frame-pointer
146+
-fno-strict-aliasing
147+
148+
# ============================================================================
149+
# LDFLAGS - Linker flags
150+
# ============================================================================
151+
[LDFLAGS]
152+
-L$HOME/usr/local/lib/
153+
-Wl,--allow-shlib-undefined
154+
-Wl,--unresolved-symbols=ignore-all

0 commit comments

Comments
 (0)