summaryrefslogtreecommitdiffstats
path: root/packages/nslu2-binary-only/nslu2-switchbox-firmware.bb
blob: e8c7a0765ce922c0df0844f7861527ecf8f46d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SECTION = "base"
DEPENDS = ""
PACKAGES = ""
LICENSE = "BSD"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r18"

SRC_URI = "http://nslu.sf.net/downloads/switchbox-4.10.tar.gz"
S = "${WORKDIR}"

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

do_compile () {
	install -d ${STAGING_LIBDIR}/nslu2-binaries
	install -m 0755 switchbox.ext2.gz ${STAGING_LIBDIR}/nslu2-binaries/switchbox.ext2.gz
}