From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH] linux-atm: add recipe.
Date: Mon, 29 Dec 2014 11:01:25 +0100 [thread overview]
Message-ID: <20141229100125.GL2465@jama> (raw)
In-Reply-To: <1419218925-35226-1-git-send-email-biannm@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 5648 bytes --]
On Mon, Dec 22, 2014 at 11:28:45AM +0800, Bian Naimeng wrote:
> Drivers and tools to support ATM networking under Linux
>
> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> ---
> .../linux-atm/linux-atm/install-from-buildir.patch | 19 +++++++++++
> .../linux-atm/linux-atm/link-with-ldflags.patch | 38 ++++++++++++++++++++++
> .../recipes-support/linux-atm/linux-atm_2.5.2.bb | 22 +++++++++++++
> 3 files changed, 79 insertions(+)
> create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/install-from-buildir.patch
> create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/link-with-ldflags.patch
> create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
>
> diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/install-from-buildir.patch b/meta-networking/recipes-support/linux-atm/linux-atm/install-from-buildir.patch
> new file mode 100644
> index 0000000..d1380eb
> --- /dev/null
> +++ b/meta-networking/recipes-support/linux-atm/linux-atm/install-from-buildir.patch
> @@ -0,0 +1,19 @@
> +install binaries from builddir not srcdir.
> +
> +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> +
> +--- linux-atm-2.5.2.orig/src/extra/Makefile.am 2010-12-21 05:07:22.000000000 +0800
> ++++ linux-atm-2.5.2/src/extra/Makefile.am 2014-12-22 10:56:04.458563269 +0800
> +@@ -9,9 +9,9 @@ CLEANFILES = pca200e.bin pca200e_ecd.bin
> +
> + install-exec-hook:
> + $(MKDIR_P) $(DESTDIR)/lib/firmware
> +- $(INSTALL_DATA) $(srcdir)/pca200e.bin $(DESTDIR)/lib/firmware
> +- $(INSTALL_DATA) $(srcdir)/pca200e_ecd.bin2 $(DESTDIR)/lib/firmware
> +- $(INSTALL_DATA) $(srcdir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
> ++ $(INSTALL_DATA) $(builddir)/pca200e.bin $(DESTDIR)/lib/firmware
> ++ $(INSTALL_DATA) $(builddir)/pca200e_ecd.bin2 $(DESTDIR)/lib/firmware
> ++ $(INSTALL_DATA) $(builddir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
> +
> + %.bin %.bin2: %.data
> + objcopy -Iihex $< -Obinary $@.gz
> diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/link-with-ldflags.patch b/meta-networking/recipes-support/linux-atm/linux-atm/link-with-ldflags.patch
> new file mode 100644
> index 0000000..62fad2a
> --- /dev/null
> +++ b/meta-networking/recipes-support/linux-atm/linux-atm/link-with-ldflags.patch
> @@ -0,0 +1,38 @@
> +LDFLAGS_FOR_BUILD should be required when doing link for qgen.
> +
> +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> +
> +diff -Nurp linux-atm-2.5.2.orig/configure.in linux-atm-2.5.2/configure.in
> +--- linux-atm-2.5.2.orig/configure.in 2010-12-28 23:36:07.000000000 +0800
> ++++ linux-atm-2.5.2/configure.in 2014-12-22 10:25:23.830510932 +0800
> +@@ -66,6 +66,7 @@ else
> + fi
> + AC_SUBST(CC_FOR_BUILD)
> + AC_SUBST(CFLAGS_FOR_BUILD)
> ++AC_SUBST(LDFLAGS_FOR_BUILD)
> + dnl Add -d flag to bison/yacc to create intermediate .h files
> + YACC="$YACC -d"
> +
> +diff -Nurp linux-atm-2.5.2.orig/src/qgen/Makefile.am linux-atm-2.5.2/src/qgen/Makefile.am
> +--- linux-atm-2.5.2.orig/src/qgen/Makefile.am 2010-12-28 22:29:31.000000000 +0800
> ++++ linux-atm-2.5.2/src/qgen/Makefile.am 2014-12-22 10:23:51.914508318 +0800
> +@@ -5,7 +5,7 @@ qgen_SOURCES = common.c common.h file.c
> + qgen_LDADD = -lfl
> +
> + COMPILE = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@
> +-LINK = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ -o $@
> ++LINK = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ @LDFLAGS_FOR_BUILD@ -o $@
> +
> + #TESTS = $(check_PROGRAMS)
> +
> +diff -Nurp linux-atm-2.5.2.orig/src/qgen/Makefile.in linux-atm-2.5.2/src/qgen/Makefile.in
> +--- linux-atm-2.5.2.orig/src/qgen/Makefile.in 2010-12-29 00:06:11.000000000 +0800
> ++++ linux-atm-2.5.2/src/qgen/Makefile.in 2014-12-22 10:23:51.914508318 +0800
> +@@ -106,6 +106,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
> + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
> + LD = @LD@
> + LDFLAGS = @LDFLAGS@
> ++LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
> + LEX = @LEX@
> + LEXLIB = @LEXLIB@
> + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
> diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
> new file mode 100644
> index 0000000..a32d2a7
> --- /dev/null
> +++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
> @@ -0,0 +1,22 @@
> +DESCRIPTION = "Drivers and tools to support ATM networking under Linux"
> +HOMEPAGE = "http://linux-atm.sourceforge.net/"
> +SECTION = "libs"
> +LICENSE = "GPL-2.0 LGPL-2.0"
WARNING: Recipe linux-atm, LICENSE (GPL-2.0 LGPL-2.0) has invalid
format, LICENSES must have operator "([&|() ])" between them.
> +DEPENDS = "virtual/kernel flex flex-native"
> +
> +SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
> + file://link-with-ldflags.patch \
> + file://install-from-buildir.patch"
> +
> +SRC_URI[md5sum] = "d49499368c3cf15f73a05d9bce8824a8"
> +SRC_URI[sha256sum] = "9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a"
> +
> +LIC_FILES_CHKSUM = "\
> +file://COPYING;md5=d928de9537d846935a98af3bbc6e6ee1 \
> +file://COPYING.GPL;md5=ac2db169b9309e240555bc77be4f1a33 \
> +file://COPYING.LGPL;md5=6e29c688d912da12b66b73e32b03d812"
> +
> +inherit autotools pkgconfig
> +
> +FILES_${PN} += "${base_libdir}/firmware"
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
prev parent reply other threads:[~2014-12-29 10:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 3:28 [meta-networking][PATCH] linux-atm: add recipe Bian Naimeng
2014-12-29 10:01 ` Martin Jansa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141229100125.GL2465@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.