summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-09-04 20:05:04 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-09-04 20:05:04 +0000
commite3112666840c08c242b36d5047fab2ff44c496b6 (patch)
tree6821ea6ef34be86cb2927d0c4d7415167d853ce5 /packages
parentbc42c0a4948678f89fb28bfe0391a9cf91f49420 (diff)
parentae1d344c4d4aaa25a812cbbff2f816d8167eda8d (diff)
merge of 865901d3478c57c034f017d899de72e3a1d305be
and ff8482dffaa2fde2376b39d9666e0598a8beae83
Diffstat (limited to 'packages')
-rw-r--r--packages/upslug/upslug2-native_3.bb3
-rw-r--r--packages/upslug/upslug2.inc41
-rw-r--r--packages/upslug/upslug2_3.bb1
3 files changed, 45 insertions, 0 deletions
diff --git a/packages/upslug/upslug2-native_3.bb b/packages/upslug/upslug2-native_3.bb
new file mode 100644
index 0000000000..c3744f3cf6
--- /dev/null
+++ b/packages/upslug/upslug2-native_3.bb
@@ -0,0 +1,3 @@
+include upslug2.inc
+
+inherit native
diff --git a/packages/upslug/upslug2.inc b/packages/upslug/upslug2.inc
new file mode 100644
index 0000000000..0be0883cc9
--- /dev/null
+++ b/packages/upslug/upslug2.inc
@@ -0,0 +1,41 @@
+# This package builds the 'upslug2' binary upload/flash tool
+# for the NSLU2. It is not useful for anything else.
+PR = "r0"
+DESCRIPTION = "NSLU2 binary upload tool (version 2)"
+HOMEPAGE = "http://www.nslu2-linux.org/wiki/Main/UpSlug2"
+MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
+SECTION = "console/network"
+PRIORITY = "optional"
+LICENSE = "GPL-2"
+
+# On Linux libpcap does not work. Using libpcap is sub-optimal - it
+# is intended for packet capture not management of a new protocol
+# stream - so you may want to try the linux options on other operating
+# systems.
+LIBPCAP_OECONF = "--with-libpcap"
+LIBPCAP_OECONF_linux = ""
+LIBPCAP_OECONF_linux-uclibc = ""
+LIBPCAP_RDEPENDS = "libpcap"
+LIBPCAP_RDEPENDS_linux = ""
+LIBPCAP_RDEPENDS_linux-uclibc = ""
+
+RDEPENDS += "${LIBPCAP_RDEPENDS}"
+
+SRC_TAG = "upslug2_${@'_'.join(bb.data.getVar('PV',d,1).split('.'))}"
+SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/nslu;method=pserver;module=upslug2;tag=${SRC_TAG}"
+# For testing use this (tags and other changes take a day to
+# propogate on sourceforge). Change 'jbowler' to your login name!
+#SRC_URI = "cvs://jbowler@cvs.sourceforge.net/cvsroot/nslu;method=ext;rsh=ssh;module=upslug2;tag=${SRC_TAG}"
+
+inherit autotools
+
+S = "${WORKDIR}/upslug2"
+PACKAGES = "${PN}"
+EXTRA_OECONF += "${LIBPCAP_OECONF}"
+
+python () {
+ # Don't build upslug2 unless we're targeting an nslu2
+ mach = bb.data.getVar("MACHINE", d, 1)
+ if mach != 'nslu2':
+ raise bb.parse.SkipPackage("upslug2 only builds for the Linksys NSLU2")
+}
diff --git a/packages/upslug/upslug2_3.bb b/packages/upslug/upslug2_3.bb
new file mode 100644
index 0000000000..de9c427303
--- /dev/null
+++ b/packages/upslug/upslug2_3.bb
@@ -0,0 +1 @@
+include upslug2.inc