[no ci] Package: add initial msposd version (#1566)

pull/1568/head
viktorxda 2024-10-07 16:30:54 +02:00 committed by GitHub
parent b8acbfc72c
commit 8b5f6baf21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 56 additions and 0 deletions

View File

@ -69,6 +69,7 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/microsnander/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/mini-snmpd-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/mini/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/motors/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/msposd/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/mt7601u-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/nabto/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/node-exporter/Config.in"

View File

@ -0,0 +1,4 @@
config BR2_PACKAGE_MSPOSD
bool "msposd"
help
OpenIPC implementation of MSP Displayport OSD.

View File

@ -0,0 +1,21 @@
# Get the current date and time in the format YYYYMMDD_HHMMSS
VERSION_STRING := $(shell date +"%Y%m%d_%H%M%S")
CFLAGS = -Wno-address-of-packed-member -DVERSION_STRING="\"$(VERSION_STRING)\""
SRCS := compat.c msposd.c bmp/bitmap.c bmp/region.c bmp/lib/schrift.c bmp/text.c osd/net/network.c osd/msp/msp.c osd/msp/msp_displayport.c libpng/lodepng.c
BUILD = $(CC) $(SRCS) -I $(SDK)/include -L$(DRV) $(CFLAGS) $(LIB) -levent_core -s -o msposd
goke:
$(eval SDK = ./sdk/gk7205v300)
$(eval LIB = -D__GOKE__ -ldl -ldnvqe -lgk_api -lhi_mpi -lsecurec -lupvqe -lvoice_engine -ldnvqe)
$(BUILD)
hisi:
$(eval SDK = ./sdk/hi3516ev300)
$(eval LIB = -D__GOKE__ -ldnvqe -lmpi -lsecurec -lupvqe -lVoiceEngine)
$(BUILD)
star6e:
$(eval SDK = ./sdk/infinity6)
$(eval LIB = -D__SIGMASTAR__ -D__INFINITY6__ -D__INFINITY6E__ -lcam_os_wrapper -lm -lmi_rgn -lmi_sys -lmi_venc)
$(BUILD)

View File

@ -0,0 +1,30 @@
################################################################################
#
# msposd
#
################################################################################
MSPOSD_SITE = $(call github,openipc,msposd,$(MSPOSD_VERSION))
MSPOSD_VERSION = HEAD
ifeq ($(OPENIPC_SOC_FAMILY),gk7205v200)
MSPOSD_FAMILY = goke
MSPOSD_OSDRV = $(GOKE_OSDRV_GK7205V200_PKGDIR)
else ifeq ($(OPENIPC_SOC_FAMILY),hi3516ev200)
MSPOSD_FAMILY = hisi
MSPOSD_OSDRV = $(HISILICON_OSDRV_HI3516EV200_PKGDIR)
else
MSPOSD_FAMILY = star6e
MSPOSD_OSDRV = $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)
endif
define MSPOSD_BUILD_CMDS
$(INSTALL) -m 644 -t $(@D) $(MSPOSD_PKGDIR)/files/Makefile
$(MAKE) CC=$(TARGET_CC) DRV=$(MSPOSD_OSDRV)/files/lib $(MSPOSD_FAMILY) -C $(@D)
endef
define MSPOSD_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/msposd
endef
$(eval $(generic-package))