[oe-commits] org.oe.dev upslug2: Set COMPATIBLE_MACHINE to nslu2

rwhitby commit openembedded-commits at lists.openembedded.org
Mon Nov 13 12:49:38 UTC 2006


upslug2: Set COMPATIBLE_MACHINE to nslu2

Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: 33377a667d6112fa72ea632be199100a8613e10a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=33377a667d6112fa72ea632be199100a8613e10a
Files:
1
packages/upslug/upslug2.inc
Diffs:

#
# mt diff -r9ebfa26d1a834b3ee52ebbb836458089347632e3 -r33377a667d6112fa72ea632be199100a8613e10a
#
# 
# 
# patch "packages/upslug/upslug2.inc"
#  from [093469907cf1dd81d9c34de76c6c6c4c4732ec3d]
#    to [6a020296c0ad7447218a014f92e011aa0ff27ad6]
# 
============================================================
--- packages/upslug/upslug2.inc	093469907cf1dd81d9c34de76c6c6c4c4732ec3d
+++ packages/upslug/upslug2.inc	6a020296c0ad7447218a014f92e011aa0ff27ad6
@@ -1,11 +1,12 @@
 # This package builds the 'upslug2' binary upload/flash tool
 # for the NSLU2.  It is not useful for anything else.
-PR = "r0"
+PR = "r1"
 DESCRIPTION = "NSLU2 binary upload tool (version 2)"
 HOMEPAGE = "http://www.nslu2-linux.org/wiki/Main/UpSlug2"
 SECTION = "console/network"
 PRIORITY = "optional"
 LICENSE = "MIT"
+COMPATIBLE_MACHINE = "nslu2"
 
 # On Linux libpcap does not work.  Using libpcap is sub-optimal - it
 # is intended for packet capture not management of a new protocol
@@ -28,10 +29,3 @@ EXTRA_OECONF += "${LIBPCAP_OECONF}"
 
 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")
-}






More information about the Openembedded-commits mailing list