diff options
author | Bian Naimeng <biannm@cn.fujitsu.com> | 2015-01-05 17:01:53 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-01-07 13:48:14 -0500 |
commit | 07d5d4d5d9a4b2102d6bec163953b69e363ec2f9 (patch) | |
tree | 85a6f0244ca037ac4a1df002bf258aada41ccd04 /meta-networking/recipes-support/linux-atm | |
parent | a86a266a4e3ffd8e715f52b9dbeac2d1e44b3d74 (diff) | |
download | meta-openembedded-07d5d4d5d9a4b2102d6bec163953b69e363ec2f9.tar.gz |
linux-atm: add recipe.
Drivers and tools to support ATM networking under Linux
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/linux-atm')
3 files changed, 79 insertions, 0 deletions
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 0000000000..d1380eb2aa --- /dev/null +++ b/meta-networking/recipes-support/linux-atm/linux-atm/install-from-buildir.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | install binaries from builddir not srcdir. | ||
2 | |||
3 | Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> | ||
4 | |||
5 | --- linux-atm-2.5.2.orig/src/extra/Makefile.am 2010-12-21 05:07:22.000000000 +0800 | ||
6 | +++ linux-atm-2.5.2/src/extra/Makefile.am 2014-12-22 10:56:04.458563269 +0800 | ||
7 | @@ -9,9 +9,9 @@ CLEANFILES = pca200e.bin pca200e_ecd.bin | ||
8 | |||
9 | install-exec-hook: | ||
10 | $(MKDIR_P) $(DESTDIR)/lib/firmware | ||
11 | - $(INSTALL_DATA) $(srcdir)/pca200e.bin $(DESTDIR)/lib/firmware | ||
12 | - $(INSTALL_DATA) $(srcdir)/pca200e_ecd.bin2 $(DESTDIR)/lib/firmware | ||
13 | - $(INSTALL_DATA) $(srcdir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware | ||
14 | + $(INSTALL_DATA) $(builddir)/pca200e.bin $(DESTDIR)/lib/firmware | ||
15 | + $(INSTALL_DATA) $(builddir)/pca200e_ecd.bin2 $(DESTDIR)/lib/firmware | ||
16 | + $(INSTALL_DATA) $(builddir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware | ||
17 | |||
18 | %.bin %.bin2: %.data | ||
19 | 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 0000000000..62fad2a54a --- /dev/null +++ b/meta-networking/recipes-support/linux-atm/linux-atm/link-with-ldflags.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | LDFLAGS_FOR_BUILD should be required when doing link for qgen. | ||
2 | |||
3 | Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> | ||
4 | |||
5 | diff -Nurp linux-atm-2.5.2.orig/configure.in linux-atm-2.5.2/configure.in | ||
6 | --- linux-atm-2.5.2.orig/configure.in 2010-12-28 23:36:07.000000000 +0800 | ||
7 | +++ linux-atm-2.5.2/configure.in 2014-12-22 10:25:23.830510932 +0800 | ||
8 | @@ -66,6 +66,7 @@ else | ||
9 | fi | ||
10 | AC_SUBST(CC_FOR_BUILD) | ||
11 | AC_SUBST(CFLAGS_FOR_BUILD) | ||
12 | +AC_SUBST(LDFLAGS_FOR_BUILD) | ||
13 | dnl Add -d flag to bison/yacc to create intermediate .h files | ||
14 | YACC="$YACC -d" | ||
15 | |||
16 | diff -Nurp linux-atm-2.5.2.orig/src/qgen/Makefile.am linux-atm-2.5.2/src/qgen/Makefile.am | ||
17 | --- linux-atm-2.5.2.orig/src/qgen/Makefile.am 2010-12-28 22:29:31.000000000 +0800 | ||
18 | +++ linux-atm-2.5.2/src/qgen/Makefile.am 2014-12-22 10:23:51.914508318 +0800 | ||
19 | @@ -5,7 +5,7 @@ qgen_SOURCES = common.c common.h file.c | ||
20 | qgen_LDADD = -lfl | ||
21 | |||
22 | COMPILE = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ | ||
23 | -LINK = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ -o $@ | ||
24 | +LINK = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ @LDFLAGS_FOR_BUILD@ -o $@ | ||
25 | |||
26 | #TESTS = $(check_PROGRAMS) | ||
27 | |||
28 | diff -Nurp linux-atm-2.5.2.orig/src/qgen/Makefile.in linux-atm-2.5.2/src/qgen/Makefile.in | ||
29 | --- linux-atm-2.5.2.orig/src/qgen/Makefile.in 2010-12-29 00:06:11.000000000 +0800 | ||
30 | +++ linux-atm-2.5.2/src/qgen/Makefile.in 2014-12-22 10:23:51.914508318 +0800 | ||
31 | @@ -106,6 +106,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
32 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
33 | LD = @LD@ | ||
34 | LDFLAGS = @LDFLAGS@ | ||
35 | +LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ | ||
36 | LEX = @LEX@ | ||
37 | LEXLIB = @LEXLIB@ | ||
38 | 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 0000000000..0a9bd8c72b --- /dev/null +++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Drivers and tools to support ATM networking under Linux" | ||
2 | HOMEPAGE = "http://linux-atm.sourceforge.net/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPL-2.0 & LGPL-2.0" | ||
5 | |||
6 | DEPENDS = "virtual/kernel flex flex-native" | ||
7 | |||
8 | SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ | ||
9 | file://link-with-ldflags.patch \ | ||
10 | file://install-from-buildir.patch" | ||
11 | |||
12 | SRC_URI[md5sum] = "d49499368c3cf15f73a05d9bce8824a8" | ||
13 | SRC_URI[sha256sum] = "9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a" | ||
14 | |||
15 | LIC_FILES_CHKSUM = "\ | ||
16 | file://COPYING;md5=d928de9537d846935a98af3bbc6e6ee1 \ | ||
17 | file://COPYING.GPL;md5=ac2db169b9309e240555bc77be4f1a33 \ | ||
18 | file://COPYING.LGPL;md5=6e29c688d912da12b66b73e32b03d812" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | FILES_${PN} += "${base_libdir}/firmware" | ||