From: Chunrong Guo Date: Fri, 5 Jul 2019 06:09:22 +0000 (+0800) Subject: crconf: add recipes X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ce845fff088da3f4bc8e4a8019e6725bd291a98b;p=meta-freescale.git crconf: add recipes 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 --- 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 00000000..4459c370 --- /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 +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 +--- + 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 00000000..7dc92776 --- /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}/*"