mirror of
https://github.com/outbackdingo/builder.git
synced 2026-01-27 10:18:28 +00:00
Switching from binary module to source code compilation for MIS2008 sensor
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
![OpenIPC logo][logo]
|
||||
|
||||
## OpenIPC Builder
|
||||
_Experimental system for building OpenIPC firmware for known devices_
|
||||
|
||||
|
||||
### Release notes for the device
|
||||
|
||||
- This device profile contains the experimental binary component of the sensor module from the OpenIPC sensors project.
|
||||
- Currently, the sensor module works, but we are working on improvements.
|
||||
|
||||
|
||||
[logo]: https://openipc.org/assets/openipc-logo-black.svg
|
||||
Binary file not shown.
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# hisilicon-opensdk
|
||||
#
|
||||
################################################################################
|
||||
|
||||
HISILICON_OPENSDK_SITE = $(call github,openipc,openhisilicon,$(HISILICON_OPENSDK_VERSION))
|
||||
HISILICON_OPENSDK_VERSION = HEAD
|
||||
|
||||
HISILICON_OPENSDK_LICENSE = GPL-3.0
|
||||
HISILICON_OPENSDK_LICENSE_FILES = LICENSE
|
||||
|
||||
HISILICON_OPENSDK_MODULE_SUBDIRS = kernel
|
||||
HISILICON_OPENSDK_MODULE_MAKE_OPTS = \
|
||||
DISABLE_IST=1 \
|
||||
DISABLE_PM=1 \
|
||||
DISABLE_TDE=1 \
|
||||
DISABLE_VO=1 \
|
||||
CHIPARCH=$(OPENIPC_SOC_FAMILY)
|
||||
|
||||
ifeq ($(OPENIPC_SOC_FAMILY),hi3516ev200)
|
||||
HISILICON_OPENSDK_MODULE_MAKE_OPTS += DISABLE_ISP=1
|
||||
HISILICON_OPENSDK_SDK_CODE = 0x3516E200
|
||||
else ifeq ($(OPENIPC_SOC_FAMILY),gk7205v200)
|
||||
HISILICON_OPENSDK_SDK_CODE = 0x7205200
|
||||
endif
|
||||
|
||||
# for userspace libraries
|
||||
define HISILICON_OPENSDK_BUILD_CMDS
|
||||
cp -a $(HISILICON_OPENSDK_PKGDIR)/files/* $(@D)/
|
||||
#
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) CHIPARCH=$(OPENIPC_SOC_FAMILY) SDK_CODE=$(HISILICON_OPENSDK_SDK_CODE) -C $(@D)/libraries all
|
||||
endef
|
||||
|
||||
define HISILICON_OPENSDK_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib/sensors
|
||||
$(INSTALL) -D -m 0644 $(@D)/libraries/sensor/$(OPENIPC_SOC_FAMILY)/imagedesign_mis2008/libsns_mis2008.so $(TARGET_DIR)/usr/lib/sensors
|
||||
endef
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user