]> code.ossystems Code Review - meta-freescale.git/commitdiff
crconf: add recipes
authorChunrong Guo <chunrong.guo@nxp.com>
Fri, 5 Jul 2019 06:09:22 +0000 (14:09 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 12 Jul 2019 20:18:34 +0000 (17:18 -0300)
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>
recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch [new file with mode: 0644]
recipes-extended/crconf/crconf_git.bb [new file with mode: 0644]

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 (file)
index 0000000..4459c37
--- /dev/null
@@ -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 (file)
index 0000000..7dc9277
--- /dev/null
@@ -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}/*"