forked from ZigFisher/glutinium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Zalatov
committed
Jun 9, 2018
1 parent
c9b3e05
commit 4247e10
Showing
99 changed files
with
59 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,110 @@ | ||
# | ||
# Copyright (C) 2007-2018 OpenWrt.org | ||
# Copyright (C) 2006-2018 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=hisi-osdrv2 | ||
PKG_VERSION:=3.4.35 | ||
PKG_RELEASE:=0.1 | ||
PKG_MAINTAINER:=Igor Zalatov <[email protected]> | ||
|
||
PKG_LICENSE:=MIT | ||
PKG_LICENSE_FILES:=HISILICON COPYING | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
|
||
PKG_INSTALL:=1 | ||
|
||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/hisi-osdrv2/Default | ||
define Package/hisi-osdrv2/default | ||
SECTION:=multimedia | ||
CATEGORY:=Multimedia | ||
TITLE+=Hisilicon osdrv2 | ||
URL:=http://zftlab.org/ | ||
MAINTAINER:=Igor Zalatov <[email protected]> | ||
#TITLE:=Hisilicon OSDRV kernel modules, drivers, libs and tools | ||
TITLE:=Hisilicon OSDRV | ||
#SUBMENU:=Hisilicon OSDRV (1) for HI35_16C_18E_V200 with kernel 3.0.8 | ||
SUBMENU:=Hisilicon OSDRV (2) for HI35_16C_18E_V200 with kernel 3.4.35 | ||
#SUBMENU:=Hisilicon OSDRV (3)for HI35_16C_18E_V200 with kernel 3.18.20 | ||
URL:=http://zftlab.org | ||
DEPENDS:=+busybox +dropbear | ||
endef | ||
|
||
define Package/hisi-osdrv2/Default/description | ||
Hisilicon kernel modules, drivers and tools | ||
define Package/hisi-osdrv2-base | ||
$(call Package/hisi-osdrv2/default) | ||
TITLE+= - base package | ||
endef | ||
|
||
define Package/hisi-osdrv2-binary | ||
$(call Package/hisi-osdrv2/default) | ||
TITLE+= - binary package | ||
endef | ||
|
||
define Package/hisi-osdrv2-tools | ||
$(call Package/hisi-osdrv2/Default) | ||
SECTION:=multimedia | ||
CATEGORY:=Multimedia | ||
DEPENDS:=+busybox +dropbear | ||
TITLE+= (tools) | ||
SUBMENU:=Hisilicon | ||
define Package/hisi-osdrv2-kmod | ||
$(call Package/hisi-osdrv2/default) | ||
TITLE+= - kmod package | ||
endef | ||
|
||
define Package/hisi-osdrv2-tools/description | ||
$(call Package/hisi-osdrv2/Default/description) | ||
This package contains the... | ||
define Package/hisi-osdrv2-lib | ||
$(call Package/hisi-osdrv2/default) | ||
TITLE+= - lib package | ||
endef | ||
|
||
define Package/hisi-osdrv2-libs | ||
$(call Package/hisi-osdrv2/Default) | ||
SECTION:=multimedia | ||
CATEGORY:=Multimedia | ||
TITLE+= (library) | ||
DEPENDS:=+busybox +dropbear | ||
SUBMENU:=Hisilicon | ||
define Package/hisi-osdrv2-sensor | ||
$(call Package/hisi-osdrv2/default) | ||
TITLE+= - sensor package | ||
endef | ||
|
||
define Package/hisi-osdrv2-libs/description | ||
$(call Package/hisi-osdrv2/Default/description) | ||
This package contains the... | ||
define Package/hisi-osdrv2-tool | ||
$(call Package/hisi-osdrv2/default) | ||
TITLE+= - tool package | ||
endef | ||
|
||
define Package/hisi-osdrv2-sensors | ||
$(call Package/hisi-osdrv2/Default) | ||
SECTION:=multimedia | ||
CATEGORY:=Multimedia | ||
TITLE+= (sensors) | ||
DEPENDS:=+busybox +dropbear | ||
SUBMENU:=Hisilicon | ||
#PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) | ||
|
||
define Build/Configure | ||
endef | ||
|
||
define Package/hisi-osdrv2-sensors/description | ||
$(call Package/hisi-osdrv2/Default/description) | ||
This package contains the... | ||
define Build/Compile | ||
endef | ||
|
||
|
||
define Build/Prepare | ||
$(INSTALL_DIR) $(PKG_BUILD_DIR) | ||
$(CP) ./tools/* $(PKG_BUILD_DIR)/ | ||
endef | ||
#define Build/InstallDev | ||
# $(INSTALL_DIR) $(1)/usr/include/hisi-osdrv2 | ||
# $(CP) ./include/* $(1)/usr/include/hisi-osdrv2/ | ||
#endef | ||
|
||
define Build/Compile | ||
$(TARGET_CC) $(TARGET_CFLAGS) -Os $(PKG_BUILD_DIR)/himm.c -o $(PKG_BUILD_DIR)/$(PKG_NAME) | ||
define Package/hisi-osdrv2-base/install | ||
$(INSTALL_DIR) $(1)/etc $(1)/etc/config | ||
#$(INSTALL_BIN) ./files/etc/rc.local.example $(1)/etc/ | ||
endef | ||
|
||
define Package/hisi-osdrv2-binary/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
endef | ||
|
||
define Build/InstallDev | ||
$(INSTALL_DIR) $(1)/usr/include/hisi-osdrv2 | ||
$(CP) ./include/* $(1)/usr/include/hisi-osdrv2/ | ||
define Package/hisi-osdrv2-kmod/install | ||
$(INSTALL_DIR) $(1)/lib/modules/$(PKG_VERSION) | ||
$(CP) ./kmod/*.ko $(1)/lib/modules/$(PKG_VERSION) | ||
endef | ||
|
||
define Package/hisi-osdrv2-libs/install | ||
define Package/hisi-osdrv2-lib/install | ||
$(INSTALL_DIR) $(1)/usr/lib | ||
$(CP) ./libs/*.so $(1)/usr/lib/ | ||
$(CP) ./lib/lib*.so $(1)/usr/lib/ | ||
endef | ||
|
||
define Package/hisi-osdrv2-sensors/install | ||
define Package/hisi-osdrv2-sensor/install | ||
$(INSTALL_DIR) $(1)/usr/lib | ||
$(CP) ./sensors/libsns_*.so $(1)/usr/lib/ | ||
$(CP) ./sensor/libsns_*.so $(1)/usr/lib/ | ||
endef | ||
|
||
define Package/hisi-osdrv2-tools/install | ||
$(INSTALL_DIR) $(1)/usr/sbin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hisi-osdrv2-tools/himm $(1)/usr/sbin/ | ||
define Package/hisi-osdrv2-tool/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hisi-osdrv2-tool/himm $(1)/usr/bin/ | ||
endef | ||
|
||
$(eval $(call BuildPackage,hisi-osdrv2-libs)) | ||
$(eval $(call BuildPackage,hisi-osdrv2-sensors)) | ||
$(eval $(call BuildPackage,hisi-osdrv2-tools)) | ||
#$(eval $(call BuildPackage,hisi-osdrv2-base)) | ||
#$(eval $(call BuildPackage,hisi-osdrv2-binary)) | ||
$(eval $(call BuildPackage,hisi-osdrv2-kmod)) | ||
$(eval $(call BuildPackage,hisi-osdrv2-lib)) | ||
$(eval $(call BuildPackage,hisi-osdrv2-sensor)) | ||
#$(eval $(call BuildPackage,hisi-osdrv2-tool)) |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+29.7 KB
hisi-osdrv2/sensors/libsns_9m034.so → hisi-osdrv2/sensor/libsns_9m034.so
Binary file not shown.
Binary file renamed
BIN
+30.5 KB
hisi-osdrv2/sensors/libsns_ar0130.so → hisi-osdrv2/sensor/libsns_ar0130.so
Binary file not shown.
Binary file renamed
BIN
+42.5 KB
hisi-osdrv2/sensors/libsns_ar0230.so → hisi-osdrv2/sensor/libsns_ar0230.so
Binary file not shown.
Binary file renamed
BIN
+49.6 KB
hisi-osdrv2/sensors/libsns_imx222.so → hisi-osdrv2/sensor/libsns_imx222.so
Binary file not shown.
Binary file renamed
BIN
+29.6 KB
hisi-osdrv2/sensors/libsns_mn34222.so → hisi-osdrv2/sensor/libsns_mn34222.so
Binary file not shown.
Binary file renamed
BIN
+87.1 KB
hisi-osdrv2/sensors/libsns_ov2718.so → hisi-osdrv2/sensor/libsns_ov2718.so
Binary file not shown.
Binary file renamed
BIN
+38.8 KB
hisi-osdrv2/sensors/libsns_ov9712.so → hisi-osdrv2/sensor/libsns_ov9712.so
Binary file not shown.
Binary file renamed
BIN
+29.4 KB
hisi-osdrv2/sensors/libsns_ov9732.so → hisi-osdrv2/sensor/libsns_ov9732.so
Binary file not shown.
Binary file renamed
BIN
+31.7 KB
hisi-osdrv2/sensors/libsns_ov9750.so → hisi-osdrv2/sensor/libsns_ov9750.so
Binary file not shown.
Binary file renamed
BIN
+29.5 KB
hisi-osdrv2/sensors/libsns_ov9752.so → hisi-osdrv2/sensor/libsns_ov9752.so
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.