[16/24] crconf: add recipes

Submitted by C.R. Guo on July 5, 2019, 8:43 a.m. | Patch ID: 162804

Details

Message ID 1562316188-16744-16-git-send-email-chunrong.guo@nxp.com
State New
Headers show

Commit Message

C.R. Guo July 5, 2019, 8:43 a.m.
From: Chunrong Guo <chunrong.guo@nxp.com>

include the following changes:
7b5819e - Restructure copy_name() to follow best practice
8bd9964 - Set algorithm mask only when type is provided
81bd24f - Don't overwrite compiler env. if alredy set
0248373 - Update dependencies - Linux kernel and iproute2 headers
547b464 - Fix potential segfault when omitting type argument
274eaba - Honor max length of alg/driver name in strncpy
9d0ae95 - Improve usage information
6ab1c3c - crconf: Fix error output on crconf_del_alg.
d8a0a6f - crconf: Add a basic manpage
27a173f - crconf: Update headers to the Linux mainline
873058f - crconf - Linux crypto layer configuraton tool

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 ...001-Modify-the-Makefile-for-cross-compile.patch | 30 ++++++++++++++++++++++
 recipes-extended/crconf/crconf_git.bb              | 18 +++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch
 create mode 100644 recipes-extended/crconf/crconf_git.bb

Patch hide | download patch | download mbox

diff --git a/recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch b/recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch
new file mode 100644
index 0000000..4459c37
--- /dev/null
+++ b/recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch
@@ -0,0 +1,30 @@ 
+From 2c260c8c437c7f72f093b6c157a38b93443bde1d Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <chunrong.guo@nxp.com>
+Date: Mon, 11 Dec 2017 15:45:05 +0800
+Subject: [PATCH] Modify the Makefile for cross compile
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index c7bfee2..d6421f3 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,8 +4,8 @@ LIBDIR=/usr/lib
+ SBINDIR=/sbin
+ MANDIR=/share/man
+ 
+-CC = gcc
+-HOSTCC = gcc
++CC ?= gcc
++HOSTCC ?= gcc
+ CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
+ CFLAGS = $(CCOPTS) -I../include
+ 
+-- 
+2.7.4
+
diff --git a/recipes-extended/crconf/crconf_git.bb b/recipes-extended/crconf/crconf_git.bb
new file mode 100644
index 0000000..7dc9277
--- /dev/null
+++ b/recipes-extended/crconf/crconf_git.bb
@@ -0,0 +1,18 @@ 
+SUMMARY = "crconf -Linux crypto layer configuraton tool"
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=5;md5=0f77fc44eb5911007ae4ac9f6736e111"
+
+SRC_URI = "git://github.com/Thermi/crconf.git;protocol=https;nobranch=1"
+
+EXTRA_OEMAKE = "'CC=${CC}' 'HOSTCC=${CC}'"
+
+SRCREV = "7b5819e7638e471d41dd2dca71f012d5a022f014"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+       oe_runmake install  DESTDIR=${D}
+}
+
+FILES_${PN} += "/share/man/*  ${libdir}/* ${sbindir}/*"