Skip to content

Commit

Permalink
Package: build venc-openipc from source (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Oct 18, 2023
1 parent 7d821b6 commit b97316d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions general/package/venc-openipc/venc-openipc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@
#
################################################################################

ifdef $(BR2_CONFIG_VENDOR, hisilicon)
VENDOR = hisi
VENC_OPENIPC_SITE = https://github.com/openipc/silicon_research/archive
VENC_OPENIPC_SOURCE = master.tar.gz
VENC_OPENIPC_LICENSE = MIT

ifeq ($(OPENIPC_SOC_VENDOR),hisilicon)
VENC_OPENIPC_TARGET = venc-hisi
VENC_OPENIPC_OSDRV = $(HISILICON_OSDRV_HI3516EV200_PKGDIR)/files/lib
else
VENDOR = goke
VENC_OPENIPC_TARGET = venc-goke
VENC_OPENIPC_OSDRV = $(GOKE_OSDRV_GK7205V200_PKGDIR)/files/lib
endif

VENC_OPENIPC_SITE = https://github.com/OpenIPC/silicon_research/releases/download/latest/venc-$(VENDOR)

VENC_OPENIPC_LICENSE = MIT
define VENC_OPENIPC_BUILD_CMDS
$(MAKE) CC=$(TARGET_CC) DRV=$(VENC_OPENIPC_OSDRV) TARGET=$(VENC_OPENIPC_TARGET) FILE=venc -C $(@D)
endef

define VENC_OPENIPC_INSTALL_TARGET_CMDS
curl -k -L -o $(@D)/venc $(VENC_OPENIPC_SITE)
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/venc

$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
cp $(VENC_OPENIPC_PKGDIR)/files/S98venc $(TARGET_DIR)/etc/init.d/S98venc
$(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(VENC_OPENIPC_PKGDIR)/files/S98venc

$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/output/venc
endef

$(eval $(generic-package))

0 comments on commit b97316d

Please sign in to comment.