49 lines
1.1 KiB
Makefile
Executable File
49 lines
1.1 KiB
Makefile
Executable File
#
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ocf-crypto-headers
|
|
PKG_VERSION:=20110720
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=cryptodev.h
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
ifeq ("$(strip ${ZCFG_PLATFORM})","QUALCOMM")
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
HDR_SRC_DIR:=$(LINUX_DIR)/crypto/ocf
|
|
endif
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ocf-crypto-headers
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=OCF-Linux cryptodev header
|
|
PKGARCH:=all
|
|
URL:=http://ocf-linux.sourceforge.net/
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
mkdir -p $(1)/usr/include/crypto
|
|
ifeq ("$(strip ${ZCFG_PLATFORM})","QUALCOMM")
|
|
$(CP) $(HDR_SRC_DIR)/cryptodev.h $(1)/usr/include/crypto || true
|
|
$(CP) $(HDR_SRC_DIR)/ocf-compat.h $(1)/usr/include/crypto || true
|
|
else
|
|
$(CP) ./src/cryptodev.h $(1)/usr/include/crypto
|
|
endif
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ocf-crypto-headers))
|