Skip to content
Snippets Groups Projects
Commit d1dc1bfa authored by Andreas Gnau's avatar Andreas Gnau :speech_balloon:
Browse files

uci-bcm: Link against libubox from BCM SDK


Note that this only applies to build-time. For runtime a proper
DT_RUNPATH is needed on the binary.

Signed-off-by: default avatarAndreas Gnau <andreas.gnau@iopsys.eu>
parent 6c99d924
Branches
Tags
No related merge requests found
From 05915fb94045b459879d2d6ee5b4857520319a29 Mon Sep 17 00:00:00 2001 From d82b87b6338f5d448281690219210d095c6ed9f0 Mon Sep 17 00:00:00 2001
From: Lukasz Kotasa <lukasz.kotasa@iopsys.eu> From: Lukasz Kotasa <lukasz.kotasa@iopsys.eu>
Date: Fri, 10 Feb 2023 09:15:29 +0100 Date: Fri, 10 Feb 2023 09:15:29 +0100
Subject: [PATCH] Broadcom includes Subject: [PATCH] Broadcom includes
--- ---
CMakeLists.txt | 2 +- CMakeLists.txt | 4 ++--
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50e7f51..110da21 100644 index 50e7f51fe5fa..4cd784ef53e0 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -23,7 +23,7 @@ FIND_PATH(ubox_include_dir libubox/usock.h) @@ -23,11 +23,11 @@ FIND_PATH(ubox_include_dir libubox/usock.h)
CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/uci_config.h.in ${CMAKE_SOURCE_DIR}/uci_config.h ) CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/uci_config.h.in ${CMAKE_SOURCE_DIR}/uci_config.h )
...@@ -20,6 +20,11 @@ index 50e7f51..110da21 100644 ...@@ -20,6 +20,11 @@ index 50e7f51..110da21 100644
SET(LIB_SOURCES libuci.c file.c util.c delta.c parse.c blob.c) SET(LIB_SOURCES libuci.c file.c util.c delta.c parse.c blob.c)
-FIND_LIBRARY(ubox NAMES ubox)
+FIND_LIBRARY(ubox NAMES ubox HINTS "${CMAKE_PREFIX_PATH}/usr/lib/broadcom")
IF(BUILD_STATIC)
FIND_LIBRARY(ubox-static NAMES libubox.a)
ENDIF(BUILD_STATIC)
-- --
2.34.1 2.41.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment