Skip to content

Commit

Permalink
Reinit package and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zalatov committed Jun 9, 2018
1 parent c9b3e05 commit 4247e10
Show file tree
Hide file tree
Showing 99 changed files with 59 additions and 63 deletions.
122 changes: 59 additions & 63 deletions hisi-osdrv2/Makefile
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 added hisi-osdrv2/binary/hijpg
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 added hisi-osdrv2/lib/lib_hiae.so
Binary file not shown.
Binary file added hisi-osdrv2/lib/lib_hiaf.so
Binary file not shown.
Binary file added hisi-osdrv2/lib/lib_hiawb.so
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 added hisi-osdrv2/lib/libisp.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added hisi-osdrv2/lib/libmpi.so
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed hisi-osdrv2/libs/lib_hiae.so
Binary file not shown.
Binary file removed hisi-osdrv2/libs/lib_hiaf.so
Binary file not shown.
Binary file removed hisi-osdrv2/libs/lib_hiawb.so
Binary file not shown.
Binary file removed hisi-osdrv2/libs/libisp.so
Binary file not shown.
Binary file removed hisi-osdrv2/libs/libmpi.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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
File renamed without changes.
File renamed without changes.

0 comments on commit 4247e10

Please sign in to comment.