mirror of https://github.com/OpenIPC/firmware.git
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# osd-openipc
|
|
#
|
|
################################################################################
|
|
|
|
OSD_OPENIPC_SITE = $(call github,openipc,osd,$(OSD_OPENIPC_VERSION))
|
|
OSD_OPENIPC_VERSION = HEAD
|
|
|
|
OSD_OPENIPC_TARGET = osd_server
|
|
|
|
ifeq ($(OPENIPC_SOC_FAMILY),gk7205v200)
|
|
OSD_OPENIPC_FAMILY = osd-goke
|
|
OSD_OPENIPC_OSDRV = $(GOKE_OSDRV_GK7205V200_PKGDIR)/files/lib
|
|
else ifeq ($(OPENIPC_SOC_FAMILY),hi3516ev200)
|
|
OSD_OPENIPC_FAMILY = osd-hisi
|
|
OSD_OPENIPC_OSDRV = $(HISILICON_OSDRV_HI3516EV200_PKGDIR)/files/lib
|
|
else ifeq ($(OPENIPC_SOC_FAMILY),infinity6b0)
|
|
OSD_OPENIPC_FAMILY = osd-star6b0
|
|
OSD_OPENIPC_OSDRV = $(SIGMASTAR_OSDRV_INFINITY6B0_PKGDIR)/files/lib
|
|
else
|
|
OSD_OPENIPC_FAMILY = osd-star6e
|
|
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_FAMILY) -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))
|