summaryrefslogtreecommitdiff
path: root/packages/upslug/upslug-native_cvs.bb
blob: 040f69178c10907d8e98088f7b0cfae0907cdd14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This package builds the 'upslug' binary upload/flash tool
# for the NSLU2.  It is not useful for anything else.
PR = "r0"
DESCRIPTION = "NSLU2 binary upload tool"
HOMEPAGE = "http://www.nslu2-linux.org/wiki/Main/UpSlug"
SECTION = "console/network"
PRIORITY = "optional"
LICENSE = "GPL-2"

# Use releases in preference
DEFAULT_PREFERENCE = "-1"

SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/nslu;method=pserver;module=upslug"

inherit native

S = "${WORKDIR}/upslug"

# Dumb compile script
do_compile() {
	oe_runmake "CC=${CC}" "CFLAGS=${CFLAGS}"
}

do_stage() {
	oe_runmake "DESTDIR=${STAGING_BINDIR}" install
}

python () {
	# Don't build upslug unless we're targeting an nslu2
	mach = bb.data.getVar("MACHINE", d, 1)
	if mach != 'nslu2':
		raise bb.parse.SkipPackage("upslug only builds for the Linksys NSLU2")
}