[no ci] Package: add osd-openipc ()

pull/1383/head
viktorxda 2024-04-05 12:10:40 +02:00 committed by GitHub
parent fc4cc42df5
commit 7baa57f63a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 36 additions and 0 deletions
general/package

View File

@ -74,6 +74,7 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/node-exporter/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/novatek-osdrv-nt9856x/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/onvif-simple-server/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/opus-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/osd-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/quirc-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/rcjoystick/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/rockchip-osdrv-rv11xx/Config.in"

View File

@ -0,0 +1,4 @@
config BR2_PACKAGE_OSD_OPENIPC
bool "osd-openipc"
help
Daemon that exposes an HTTP frontend to manage OSD regions.

View File

@ -0,0 +1,31 @@
################################################################################
#
# osd-openipc
#
################################################################################
OSD_OPENIPC_SITE = $(call github,openipc,osd,$(OSD_OPENIPC_VERSION))
OSD_OPENIPC_VERSION = HEAD
OSD_OPENIPC_TARGET = osd_server
ifeq ($(OPENIPC_SOC_VENDOR),goke)
OSD_OPENIPC_VENDOR = osd-goke
OSD_OPENIPC_OSDRV = $(GOKE_OSDRV_GK7205V200_PKGDIR)/files/lib
else ifeq ($(OPENIPC_SOC_VENDOR),hisilicon)
OSD_OPENIPC_VENDOR = osd-hisi
OSD_OPENIPC_OSDRV = $(HISILICON_OSDRV_HI3516EV200_PKGDIR)/files/lib
else
OSD_OPENIPC_VENDOR = osd-star
OSD_OPENIPC_OSDRV = $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/lib
endif
define OSD_OPENIPC_BUILD_CMDS
$(MAKE) CC=$(TARGET_CC) DRV=$(OSD_OPENIPC_OSDRV) TARGET=$(OSD_OPENIPC_TARGET) $(OSD_OPENIPC_VENDOR) -C $(@D)/osd
endef
define OSD_OPENIPC_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/osd/$(OSD_OPENIPC_TARGET)
endef
$(eval $(generic-package))