Package for sensors building (#623)

pull/627/head
SSharshunov 2023-01-29 02:47:41 +05:00 committed by GitHub
parent a49d27fc41
commit 58777718f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1 @@
../../general/package/hisilicon-osdrv1-sources/

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_HISILICON_OSDRV1_SOURCES
bool "hisilicon-osdrv1-sources"
help
hisilicon-osdrv1-sources - Hisilicon kernel modules
and libs.
https://openipc.org

View File

@ -0,0 +1,22 @@
################################################################################
#
# hisilicon-osdrv1-sources package
#
################################################################################
HISILICON_OSDRV1_SOURCES_VERSION = 1.0
HISILICON_OSDRV1_SOURCES_SOURCE = mpp2-v1.tar.bz2
HISILICON_OSDRV1_SOURCES_SITE = https://github.com/SSharshunov/scrapyard/releases/download/some100
HISILICON_OSDRV1_SOURCES_SITE_METHOD = wget
define HISILICON_OSDRV1_SOURCES_BUILD_CMDS
$(MAKE) -C $(@D)/mpp2-v1/mpp2/component/isp2/sensor/ all
endef
define HISILICON_OSDRV1_SOURCES_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib/sensors
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/sensors $(@D)/mpp2-v1/mpp2/component/isp2/lib/*.so
endef
$(eval $(generic-package))