Skip to content

Remove architecture specific dependencies for L1 builds - #420

Open
shibu-kv wants to merge 6 commits into
developfrom
feature/multi-arch-build
Open

Remove architecture specific dependencies for L1 builds#420
shibu-kv wants to merge 6 commits into
developfrom
feature/multi-arch-build

Conversation

@shibu-kv

Copy link
Copy Markdown
Contributor

No description provided.

@shibu-kv
shibu-kv requested a review from a team as a code owner March 12, 2026 21:55
Copilot AI review requested due to automatic review settings March 12, 2026 21:55
@shibu-kv shibu-kv changed the title Feature/multi arch build Remove architecture specific dependencies for L1 builds Mar 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to enable multi-architecture builds by removing hard-coded GLib include paths and introducing architecture-aware library/include path handling in build scripts.

Changes:

  • Add architecture detection logic to adjust library/include paths in shell build scripts.
  • Replace a hard-coded GLib include path in mock-parodus/Makefile.am with pkg-config-derived flags.
  • Update cov_build.sh to extend LD_LIBRARY_PATH and to use arch-specific GLib include/lib directories.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/hostif/parodusClient/pal/mock-parodus/mock_parodus_build.sh Adds arch detection and attempts to patch GLib include paths before building mock parodus.
src/hostif/parodusClient/pal/mock-parodus/Makefile.am Switches GLib include flags from a hard-coded multiarch path to pkg-config --cflags glib-2.0.
cov_build.sh Adds arch detection, updates LD_LIBRARY_PATH, and replaces hard-coded x86_64 GLib paths with arch-dependent ones.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread cov_build.sh Outdated
Comment thread src/hostif/parodusClient/pal/mock-parodus/mock_parodus_build.sh Outdated
Comment thread src/hostif/parodusClient/pal/mock-parodus/mock_parodus_build.sh Outdated
Comment thread src/hostif/parodusClient/pal/mock-parodus/Makefile.am Outdated
Comment thread cov_build.sh Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread src/hostif/parodusClient/pal/mock-parodus/Makefile.am Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread cov_build.sh
./configure --enable-IPv6=yes


make AM_CXXFLAGS="-I$WORKDIR/src/unittest/stubs -I$WORKDIR/src/hostif/include -I/usr/include/cjson -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I$WORKDIR/src/hostif/handlers/include -I$WORKDIR/src/hostif/parodusClient/waldb -I$WORKDIR/src/hostif/profiles/DeviceInfo -I/usr/include/cjson -I$WORKDIR/src/hostif/profiles/Time -I$WORKDIR/src/hostif/profiles/Device -I/usr/include/libsoup-3.0 -I/usr/include/yajl -I$WORKDIR/src/hostif/profiles/STBService -I$WORKDIR/src/unittest/stubs/ds -I/usr/devicesettings/ds -I/usr/local/include -I$WORKDIR/src/hostif/profiles/IP -I$WORKDIR/src/hostif/profiles/Ethernet -I/usr/local/include/rbus -I$WORKDIR/src/hostif/parodusClient/pal -I/usr/rdk-halif-device_settings/include -I/usr/local/include/libparodus -I/usr/local/include -I/usr/rdkvhal-devicesettings-raspberrypi4 -I/usr/local/include/ -I/usr/include/yajl -I/usr/tinyxml2 -I/usr/devicesettings/ds -I/$WORKDIR/src/hostif/httpserver/include -I/usr/remote_debugger/src/ -DIPV6_SUPPORT" \
Comment thread cov_build.sh
Comment on lines +18 to +20
echo "Warning: Unsupported architecture $ARCH, defaulting to x86_64 paths"
ARCH_LIB_PATH="/usr/lib/x86_64-linux-gnu"
ARCH_LIB_PATH_ALT="/lib/x86_64-linux-gnu"
../../../handlers/src/hostIf_rbus_Dml_Provider.cpp

parodus_CPPFLAGS = -I../ -I../../../../unittest/stubs/ -I/usr/local/include/wrp-c/ -I../../waldb/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include/wdmp-c/ -I/usr/local/include/rbus -I../../../include/ -I../../../../unittest/stubs/ -I../../../handlers/src/ -I/usr/local/include/cjson/ -I/usr/local/include/libparodus/ -I./ -I../../waldb/ -I../../../handlers/include/ -I../../../profiles/Time/ -I../../../profiles/DeviceInfo/ -I../../../profiles/Device -I../../../handlers/include/ -I../../../../unittest/stubs/ds -I../../../profiles/Ethernet/ -I../../../include/ -I../../../profiles/IP/ -I../../../profiles/STBService/ -I/usr/rdk-halif-device_settings/include/ -I/usr/rdkvhal-devicesettings-raspberrypi4/ -DUSE_REMOTE_DEBUGGER -I/usr/remote_debugger/src/
MOCK_PARODUS_GLIB_CFLAGS = $(if $(strip $(GLIB_CFLAGS)),$(GLIB_CFLAGS),$(shell pkg-config --cflags glib-2.0 2>/dev/null))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants