summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/nslu2-linksys-firmware_2.3r63.bb
blob: b8db38d3dba76bbaf4f02d24c233c53c70d60d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r1"

SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"

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

do_compile () {
	install -d ${STAGING_LIBDIR}/nslu2-binaries
	install -m 0755 ${S}/RedBoot ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/SysConf ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/vmlinuz ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/Trailer ${STAGING_LIBDIR}/nslu2-binaries/
}