summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/nslu2-linksys-firmware_2.3r63.bb
blob: c90bcd6fe3d737acc8b476fe8cfb346714635679 (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
DEFAULT_PREFERENCE_unslung = "-1"

SECTION = "base"
DEPENDS = "slugimage-native unzip-native"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r0"

SRC_URI = "http://www.you-need-to-get-this-one-yourself.com/NSLU2_V23R63.zip"
S = "${WORKDIR}"

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 () {
	slugimage -u -i NSLU2_V23R63.bin -k vmlinuz -b RedBoot -s SysConf -r ramdisk.ext2.gz -t Trailer
	install -d ${STAGING_LIBDIR}/nslu2-binaries
	install -m 0755 RedBoot ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 SysConf ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 vmlinuz ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ramdisk.ext2.gz ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 Trailer ${STAGING_LIBDIR}/nslu2-binaries/
}