From: Joe MacDonald <Joe_MacDonald@mentor.com>
To: Bian Naimeng <biannm@cn.fujitsu.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH v2] linux-atm: add recipe.
Date: Wed, 7 Jan 2015 14:11:56 -0500 [thread overview]
Message-ID: <20150107191156.GH10013@mentor.com> (raw)
In-Reply-To: <1420448513-21578-1-git-send-email-biannm@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 5441 bytes --]
Merged, I changed DESCRIPTION to SUMMARY in the recipe since it was just
a one-liner, but that's it. Thanks.
-J.
[[oe] [meta-networking][PATCH v2] linux-atm: add recipe.] On 15.01.05 (Mon 17:01) 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..4c0345b
> --- /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"
> +
> +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
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]
prev parent reply other threads:[~2015-01-07 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 9:01 [meta-networking][PATCH v2] linux-atm: add recipe Bian Naimeng
2015-01-07 19:11 ` Joe MacDonald [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=20150107191156.GH10013@mentor.com \
--to=joe_macdonald@mentor.com \
--cc=biannm@cn.fujitsu.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.