diff options
author | Andrej Valek <andrej.valek@siemens.com> | 2017-06-05 13:25:01 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-06-12 06:56:45 +0200 |
commit | da5beadf988452baecee72daf16f46ea83661b2d (patch) | |
tree | f10e9e7a076bfd71054baa38b05aaf17332b98b0 | |
parent | 3b80f0cb3b0e3b5a9f58c1bfb7ae45f4d0e7a673 (diff) | |
download | meta-openembedded-contrib-da5beadf988452baecee72daf16f46ea83661b2d.tar.gz |
srecord: add collection of tools for manipulating EPROM load files
This collection of tools is used for EPROM data manipulation.
More info could be found on page: http://srecord.sourceforge.net/
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/srecord/files/add-option-to-remove-docs.patch | 57 | ||||
-rw-r--r-- | meta-oe/recipes-support/srecord/srecord_1.64.bb | 23 |
2 files changed, 80 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/srecord/files/add-option-to-remove-docs.patch b/meta-oe/recipes-support/srecord/files/add-option-to-remove-docs.patch new file mode 100644 index 0000000000..9b2bd99795 --- /dev/null +++ b/meta-oe/recipes-support/srecord/files/add-option-to-remove-docs.patch @@ -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 + diff --git a/meta-oe/recipes-support/srecord/srecord_1.64.bb b/meta-oe/recipes-support/srecord/srecord_1.64.bb new file mode 100644 index 0000000000..fe1af476f2 --- /dev/null +++ b/meta-oe/recipes-support/srecord/srecord_1.64.bb @@ -0,0 +1,23 @@ +SUMMARY = "A collection of powerful tools for manipulating EPROM load files." +SECTION = "devel" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8dfcbf2f0a144b97f0931b6394debea7" + +SRC_URI = " \ + http://srecord.sourceforge.net/srecord-${PV}.tar.gz \ + file://add-option-to-remove-docs.patch \ +" + +SRC_URI[md5sum] = "4de4a7497472d7972645c2af91313769" +SRC_URI[sha256sum] = "49a4418733c508c03ad79a29e95acec9a2fbc4c7306131d2a8f5ef32012e67e2" + +DEPENDS = "libtool-native boost groff-native" + +inherit autotools-brokensep + +EXTRA_OECONF = "--without-gcrypt LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool" + +# Set variable WITHOUT_DOC=0 to enable documentation generation +EXTRA_OEMAKE = "WITHOUT_DOC=1" + +BBCLASSEXTEND = "native" |