Skip to content

Commit 19a3e44

Browse files
authored
Merge pull request #93 from hnez/bcu
meta-lxatac-software: bcu: add recipe for nxp board control utilities
2 parents 06d61ae + 81bdf27 commit 19a3e44

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

meta-lxatac-software/recipes-core/images/lxatac-core-image-base.bb

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ IMAGE_INSTALL:append = "\
2424
android-tools \
2525
avahi-utils \
2626
barebox-tools \
27+
bcu \
2728
blktrace \
2829
bluez5 \
2930
bmap-tools \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From ef1aaeee984ab13dab5d46c73e9b207cbdf62c55 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= <[email protected]>
3+
Date: Wed, 20 Dec 2023 14:37:20 +0100
4+
Subject: [PATCH] CMakeLists: do not use vendored libcurl
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
Upstream-Status: Inappropriate [upstream ticket https://github.com/nxp-imx/bcu/issues/17]
10+
11+
Signed-off-by: Leonard Göhrs <[email protected]>
12+
---
13+
CMakeLists.txt | 5 +++--
14+
1 file changed, 3 insertions(+), 2 deletions(-)
15+
16+
diff --git a/CMakeLists.txt b/CMakeLists.txt
17+
index 3475179..bfecdb0 100644
18+
--- a/CMakeLists.txt
19+
+++ b/CMakeLists.txt
20+
@@ -17,15 +17,16 @@ pkg_check_modules(LIBFTDI REQUIRED libftdi1)
21+
pkg_check_modules(LIBYAML REQUIRED yaml-0.1)
22+
pkg_check_modules(LIBOPENSSL REQUIRED openssl)
23+
pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
24+
+pkg_check_modules(LIBCURL REQUIRED libcurl)
25+
project(bcu)
26+
-include_directories(${LIBUSB_INCLUDE_DIRS} ${LIBFTDI_INCLUDE_DIRS}include ${PROJECT_SOURCE_DIR}/libftdi/src ${LIBYAML_INCLUDEDIR} ${PROJECT_SOURCE_DIR}/libcurl/include)
27+
+include_directories(${LIBUSB_INCLUDE_DIRS} ${LIBFTDI_INCLUDE_DIRS}include ${LIBYAML_INCLUDEDIR})
28+
include_directories(${PROJECT_SOURCE_DIR})
29+
30+
message("operation system is ${CMAKE_SYSTEM}")
31+
if (LINUX)
32+
add_executable(bcu bcu.c port.c chip.c board.c bcu_parser.c bcu_yaml.c bcu_https.c bcu_ftdi_eeprom.c)
33+
link_directories(${LIBUSB_LIBRARY_DIRS} ${LIBFTDI_LIBRARY_DIRS} ${LIBYAML_LIBRARY_DIRS})
34+
- target_link_libraries (bcu ${LIBUSB_LIBRARIES} ${LIBFTDI_LIBRARIES} ${LIBYAML_LIBRARIES} ${PROJECT_SOURCE_DIR}/libcurl/build.bcu/lib/libcurl.a -lpthread -lssl -lcrypto -lm)
35+
+ target_link_libraries (bcu ${LIBUSB_LIBRARIES} ${LIBFTDI_LIBRARIES} ${LIBYAML_LIBRARIES} -lcurl -lpthread -lssl -lcrypto -lm)
36+
execute_process( COMMAND ${PROJECT_SOURCE_DIR}/create_version_h.sh ${PROJECT_SOURCE_DIR}
37+
COMMAND ${PROJECT_SOURCE_DIR}/build_libs.sh ${PROJECT_SOURCE_DIR})
38+
install(TARGETS bcu DESTINATION bin)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
LICENSE = "BSD-3-Clause"
2+
LIC_FILES_CHKSUM = "file://LICENSE;md5=884d48c2aa7b82e1ad4a33909fab24b6"
3+
4+
SRC_URI = "git://github.com/nxp-imx/bcu;protocol=https;branch=master \
5+
file://0001-CMakeLists-do-not-use-vendored-libcurl.patch \
6+
"
7+
SRCREV = "e3f9a83210260783e901d4973da8600be03bcf04"
8+
9+
S = "${WORKDIR}/git"
10+
11+
DEPENDS = "curl libyaml libusb1 openssl libftdi"
12+
13+
inherit cmake pkgconfig
14+

0 commit comments

Comments
 (0)