Skip to content

Commit

Permalink
more edits
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Oct 12, 2024
1 parent 77c9e61 commit ce8e3f9
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
11 changes: 11 additions & 0 deletions external/buildroot/package/openhd/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
config BR2_PACKAGE_OPENHD
bool "openhd"
select BR2_PACKAGE_LIBPCAP
select BR2_PACKAGE_POCO
select BR2_PACKAGE_LIBSODIUM
select BR2_PACKAGE_GSTREAMER1
select BR2_PACKAGE_GST1_PLUGINS_BASE
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
depends on BR2_PACKAGE_POCO_VERSION_1_13_2
help
OpenHD package
38 changes: 38 additions & 0 deletions external/buildroot/package/openhd/openhd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
################################################################################
#
# OpenHD
#
################################################################################

# The Git repository from which to clone the source code
OPENHD_SITE = https://github.com/openhd/OpenHD.git
OPENHD_SITE_METHOD = git
OPENHD_GIT_SUBMODULES = YES

# Set the version to the latest commit of the default branch
OPENHD_VERSION = 2.6-evo

# Enable Git submodules if the project requires them
OPENHD_GIT_SUBMODULES = YES

# Subdirectory inside the Git repo, if needed (if OpenHD is not in the root)
OPENHD_SUBDIR = OpenHD

# Install to both the staging directory and target, for linking and runtime
OPENHD_INSTALL_STAGING = YES
OPENHD_INSTALL_TARGET = YES

# List of dependencies that must be built before OpenHD
OPENHD_DEPENDENCIES = poco libsodium gstreamer1 gst1-plugins-base libpcap host-pkgconf

# Additional configuration options for the CMake build
OPENHD_CONF_OPTS = \
-DENABLE_USB_CAMERAS=OFF \
-DCMAKE_TOOLCHAIN_FILE=$(BR2_TOOLCHAIN_FILE) \
-DCMAKE_SYSROOT=$(STAGING_DIR) \
-DCMAKE_PREFIX_PATH=$(STAGING_DIR)/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr

# Use Buildroot's CMake package infrastructure to handle the build
$(eval $(cmake-package))
2 changes: 2 additions & 0 deletions external/setenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function rsync_dir()
###################################
# updating packages before sync
###################################
echo "patching openhd into config.in"
sed -i '/menu "Audio and video applications"/a\ source "package/openhd/Config.in"' "$BUILDROOT_DIR/package/Config.in"
echo "updating poco"
rm -Rf buildroot-2021.05/package/poco/*
mv -v external/updates/* buildroot-2021.05/package/poco/
Expand Down

0 comments on commit ce8e3f9

Please sign in to comment.