added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
From f9e50aba10f9d2c58e5d88f51810ca7143f4372b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 1 Sep 2022 13:20:01 -0700
Subject: [PATCH] configure: Fix AC_CHECK_LIB test for gpg-error
Use check function which is found in libgpg-error
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
etc/configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/configure.ac b/etc/configure.ac
index d4ae290..ea0936d 100644
--- a/etc/configure.ac
+++ b/etc/configure.ac
@@ -30,7 +30,7 @@ AC_CHECK_PROGS(SOELIM, gsoelim soelim roffpp)
AC_CHECK_FUNCS(snprintf vsnprintf)
dnl! This is needed for MingGW build, but not for Unix or Linux, etc.
-AC_CHECK_LIB(gpg-error, main)
+AC_CHECK_LIB(gpg-error, gpg_strerror_r)
dnl! @synopsis AC_ADD_CFLAGS
dnl!
--
2.37.3

View File

@@ -0,0 +1,57 @@
Add option to build this utility without a documentation.
For full documentation building are necessary utilities like
groff and ps2pdf. Full documentation can takes a lot of space.
So it can be disabled by overloading makefile variable WITHOUT_DOC.
Upstream-Status: Inappropriate [Other]
Workaround specific to our build system.
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
diff --git a/Makefile.in b/Makefile.in
index 9bdd8f1..a2b5494 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -141,6 +141,14 @@ GROFF = @GROFF@
#
SOELIM = @SOELIM@
+# Option to build this utility without building and installing the documentation.
+WITHOUT_DOC ?= 0
+ifeq ($(WITHOUT_DOC),0)
+ BUILD_DOC = all-doc
+ INST_DOC = install-doc
+ CLR_DOC = clean-doc
+endif
+
# ---------------------------------------------------------
# You should not need to change anything below this line.
@@ -4090,7 +4098,7 @@ bin/test_url_decode: $(test_url_decode_obj) .bin srecord/libsrecord.la
$(LIBTOOL) --mode=link --tag=CXX $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ \
$(test_url_decode_obj) srecord/libsrecord.la $(LDFLAGS) $(LIBS)
-all: all-bin all-doc
+all: all-bin $(BUILD_DOC)
all-bin: bin/srec_cat bin/srec_cmp bin/srec_info bin/test_arglex_ambiguous \
bin/test_crc16 bin/test_fletcher16 bin/test_gecos \
@@ -4156,7 +4164,7 @@ test_files = t0001a t0002a t0003a t0004a t0005a t0006a t0007a t0008a t0009a \
sure: $(test_files)
@echo Passed All Tests
-clean: clean-bin clean-doc clean-misc clean-obj
+clean: clean-bin $(CLR_DOC) clean-misc clean-obj
clean-bin:
rm -f bin/srec_cat bin/srec_cmp bin/srec_info bin/test_arglex_ambiguous
@@ -4443,7 +4451,7 @@ distclean-directories:
rm -rf test/fletcher16/.libs test/gecos/.libs test/hyphen/.libs
rm -rf test/url_decode/.libs
-install: install-bin install-doc install-include install-libdir install-man
+install: install-bin $(INST_DOC) install-include install-libdir install-man
install-bin: $(bindir)/srec_cat $(bindir)/srec_cmp $(bindir)/srec_info

View File

@@ -0,0 +1,67 @@
Instead of just looking for a libtool binary, actually configure libtool.
As the build doesn't use automake we need to manually set top_builddir in the Makefile.
Upstream-Status: Inactive-Upstream [2014]
Signed-off-by: Ross Burton <ross.burton@arm.com>
diff --git a/Makefile.in b/Makefile.in
index a2b5494..aa0b8ca 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -36,6 +36,7 @@
#
srcdir = @srcdir@
VPATH = @srcdir@
+top_builddir = @srcdir@
#
# the name of the install program to use
diff --git a/etc/configure.ac b/etc/configure.ac
index e444543..b137443 100644
--- a/etc/configure.ac
+++ b/etc/configure.ac
@@ -161,42 +161,7 @@ AS_IF([test "x$with_gcrypt" != xno], AC_GCRYPT_SETUP())
dnl!
dnl! Now look for libtool.
dnl!
-AC_CHECK_PROGS(LIBTOOL, libtool)
-if test -z "$LIBTOOL"
-then
- AC_MSG_RESULT([
- You must have GNU Libtool installed to build srecord.
- Homepage: http://www.gnu.org/software/libtool/])
- OK=no
- if apt-get --version > /dev/null 2> /dev/null; then
- AC_MSG_RESULT([
- The following command may be used to install it:
- sudo apt-get install libtool
- ])
- OK=yes
- fi
- if yum --version > /dev/null 2> /dev/null; then
- AC_MSG_RESULT([
- The following command may be used to install it:
- sudo yum install libtool
- ])
- OK=yes
- fi
- if pkg_info -a > /dev/null 2> /dev/null; then
- AC_MSG_RESULT([
- The following command may be used to install it:
- sudo pkg_add -r libtool
- ])
- OK=yes
- fi
- if test "$OK" != "yes"; then
- AC_MSG_RESULT([
- If you are using a package based install, you will need the
- libtool package.
- ])
- fi
- exit 1
-fi
+LT_INIT
dnl
dnl If the soelim program exists, and understands the -I option,

View File

@@ -0,0 +1,34 @@
SUMMARY = "A collection of powerful tools for manipulating EPROM load files."
SECTION = "devel"
LICENSE = "GPL-3.0-or-later & LGPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8dfcbf2f0a144b97f0931b6394debea7"
SRC_URI = " \
http://srecord.sourceforge.net/srecord-${PV}.tar.gz \
file://add-option-to-remove-docs.patch \
file://libtool.patch \
file://0001-configure-Fix-AC_CHECK_LIB-test-for-gpg-error.patch \
"
SRC_URI[md5sum] = "4de4a7497472d7972645c2af91313769"
SRC_URI[sha256sum] = "49a4418733c508c03ad79a29e95acec9a2fbc4c7306131d2a8f5ef32012e67e2"
UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/srecord/files/releases"
DEPENDS = "boost groff-native"
inherit autotools-brokensep
do_configure:prepend() {
# To autoreconf we need the script in ${S}, we can't tell autotools to use
# etc/ because then it can't find the Makefile.in
ln -sf ${S}/etc/configure.ac ${S}
}
PACKAGECONFIG ??= "gcrypt"
PACKAGECONFIG[gcrypt] = "--with-gcrypt,--without-gcrypt,libgcrypt"
# Set variable WITHOUT_DOC=0 to enable documentation generation
EXTRA_OEMAKE = "WITHOUT_DOC=1"
BBCLASSEXTEND = "native"