Package for sensors building

pull/623/head
Sergey Sharshunov 2023-01-28 23:28:30 +05:00
parent a49d27fc41
commit bd7db728f1
No known key found for this signature in database
GPG Key ID: 2264F99B7F48FE11
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))