From patchwork Mon Feb 8 19:52:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pushpal Sidhu X-Patchwork-Id: 580486 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0C43C1402D6 for ; Tue, 9 Feb 2016 06:52:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gateworks-com.20150623.gappssmtp.com header.i=@gateworks-com.20150623.gappssmtp.com header.b=uBa1sqKq; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 88ADA284E27; Mon, 8 Feb 2016 20:52:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 008552848D8 for ; Mon, 8 Feb 2016 20:52:38 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gateworks. - helo: .mail-pa0-f43.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=1; rate: -5.5 Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 8 Feb 2016 20:52:34 +0100 (CET) Received: by mail-pa0-f43.google.com with SMTP id uo6so79742023pac.1 for ; Mon, 08 Feb 2016 11:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=a0VMiO6g5467xrbhckWRsqwdxfTuJ0LCoxqBuih0AE0=; b=uBa1sqKqCWNMLFuYkYOkoLTltircxp1I6Xe1VdHtVxVcEwYxy0VBDRG7re+1QL3MSn dNtvASIJhWp87HeEARH1YLoQBEd6nMzn7G3hTDCuj6+9fmCVOxSxiRCCVDzBJSF3hqTF 7/WqKGoNGKJJRgciIX24olw5BKle3bPbdWnp3lTucjojFkNaFTd3ExpenNOLN6OfnTPG K6OooY+qYZ03ClCxqq2C1ENBbAaKUgcEmfpCm4jtfFABvNPrfEYSk4ZDgV+SmsydXpWB V57TCkD8WJwgiQ0+NS2Fz9p5IyMN2z6k9RXNIPI3RbqiOf97uRz9ixlm3fhDWjd33oJO Q/Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=a0VMiO6g5467xrbhckWRsqwdxfTuJ0LCoxqBuih0AE0=; b=hBgYTE1cwTvLnqC4+JVH+LGijZ+2RkUeLRljR5LURaWYBbAOBPJ0tfH3Iw5hEtoqJW 9b74pBXFEnom+zymVqHHBDkiMm/f4YdgHnjPeFUWnhsf7KPhUl8DlkKm1p72Ilm+2ZPI lGpKisH5Clc7HchiyK2tW9wNmpJFW55OpO2zihZ29hatFIetxVolCTV1FJctY3K03QNc w/2yiEezYA5cmD+58+GwCWOHv1gmOF3SR0FT+nctEpWOB7YHqwLS4VEhqBRekvIdU8aQ JsbgNK2nmXWdbBaTPPHBS3nS14onykric0GIv/WknE7JJjl4lJ72HGbiB5LU17GPQT0M jWWg== X-Gm-Message-State: AG10YORy0V3SEccuU/2c3W3fUAT6vg/i9N+Bm2EYHwGyvp25RsODp5hlimROR/TgCG1V8Q== X-Received: by 10.66.150.170 with SMTP id uj10mr783613pab.73.1454961156864; Mon, 08 Feb 2016 11:52:36 -0800 (PST) Received: from psidhu.gw (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id i23sm45249427pfj.68.2016.02.08.11.52.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Feb 2016 11:52:35 -0800 (PST) From: Pushpal Sidhu To: Date: Mon, 8 Feb 2016 11:52:13 -0800 Message-Id: <1454961133-7162-1-git-send-email-psidhu@gateworks.com> X-Mailer: git-send-email 2.7.0 Subject: [OpenWrt-Devel] [PATCH v2] kernel: crypto: add fsl CAAM package X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Kernel package enables the Freescale CAAM (crypto accelerator and assurance module, aka SEC4). Sets kernel defaults for ringsize, intc, and debug. Signed-off-by: Pushpal Sidhu --- v2 changes: - Move package location up before crypto-hw-talitos for alphabetical reasons - added TARGET_mpc85xx to depends list - renamed package from crypto-fsl-caam to crypto-hw-caam package/kernel/linux/modules/crypto.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index a47a1b6..ce3191f 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -145,6 +145,32 @@ endef $(eval $(call KernelPackage,crypto-seqiv)) +define KernelPackage/crypto-hw-caam + TITLE:=Freescale CAAM driver (SEC4) + DEPENDS:=@TARGET_imx6||TARGET_mpc85xx +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-hash +kmod-random-core + KCONFIG:= \ + CONFIG_CRYPTO_HW=y \ + CONFIG_CRYPTO_DEV_FSL_CAAM \ + CONFIG_CRYPTO_DEV_FSL_CAAM_JR \ + CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 \ + CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=n \ + CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=n + FILES:= \ + $(LINUX_DIR)/drivers/crypto/caam/caam.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamalg.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamhash.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caam_jr.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamrng.ko + AUTOLOAD:=$(call AutoLoad,09,caam caamalg caamhash caam_jr caamrng) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-hw-caam)) + + define KernelPackage/crypto-hw-talitos TITLE:=Freescale integrated security engine (SEC) driver DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc