Skip to content

Commit ce8e3f9

Browse files
more edits
1 parent 77c9e61 commit ce8e3f9

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
config BR2_PACKAGE_OPENHD
2+
bool "openhd"
3+
select BR2_PACKAGE_LIBPCAP
4+
select BR2_PACKAGE_POCO
5+
select BR2_PACKAGE_LIBSODIUM
6+
select BR2_PACKAGE_GSTREAMER1
7+
select BR2_PACKAGE_GST1_PLUGINS_BASE
8+
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
9+
depends on BR2_PACKAGE_POCO_VERSION_1_13_2
10+
help
11+
OpenHD package
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
################################################################################
2+
#
3+
# OpenHD
4+
#
5+
################################################################################
6+
7+
# The Git repository from which to clone the source code
8+
OPENHD_SITE = https://github.com/openhd/OpenHD.git
9+
OPENHD_SITE_METHOD = git
10+
OPENHD_GIT_SUBMODULES = YES
11+
12+
# Set the version to the latest commit of the default branch
13+
OPENHD_VERSION = 2.6-evo
14+
15+
# Enable Git submodules if the project requires them
16+
OPENHD_GIT_SUBMODULES = YES
17+
18+
# Subdirectory inside the Git repo, if needed (if OpenHD is not in the root)
19+
OPENHD_SUBDIR = OpenHD
20+
21+
# Install to both the staging directory and target, for linking and runtime
22+
OPENHD_INSTALL_STAGING = YES
23+
OPENHD_INSTALL_TARGET = YES
24+
25+
# List of dependencies that must be built before OpenHD
26+
OPENHD_DEPENDENCIES = poco libsodium gstreamer1 gst1-plugins-base libpcap host-pkgconf
27+
28+
# Additional configuration options for the CMake build
29+
OPENHD_CONF_OPTS = \
30+
-DENABLE_USB_CAMERAS=OFF \
31+
-DCMAKE_TOOLCHAIN_FILE=$(BR2_TOOLCHAIN_FILE) \
32+
-DCMAKE_SYSROOT=$(STAGING_DIR) \
33+
-DCMAKE_PREFIX_PATH=$(STAGING_DIR)/usr \
34+
-DCMAKE_BUILD_TYPE=Release \
35+
-DCMAKE_INSTALL_PREFIX=/usr
36+
37+
# Use Buildroot's CMake package infrastructure to handle the build
38+
$(eval $(cmake-package))

external/setenv.sh

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function rsync_dir()
1313
###################################
1414
# updating packages before sync
1515
###################################
16+
echo "patching openhd into config.in"
17+
sed -i '/menu "Audio and video applications"/a\ source "package/openhd/Config.in"' "$BUILDROOT_DIR/package/Config.in"
1618
echo "updating poco"
1719
rm -Rf buildroot-2021.05/package/poco/*
1820
mv -v external/updates/* buildroot-2021.05/package/poco/

0 commit comments

Comments
 (0)