diff options
Diffstat (limited to 'nslu2-binary-only/nslu2-switchbox-firmware.bb')
-rw-r--r-- | nslu2-binary-only/nslu2-switchbox-firmware.bb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nslu2-binary-only/nslu2-switchbox-firmware.bb b/nslu2-binary-only/nslu2-switchbox-firmware.bb index e69de29bb2..0f86d88dec 100644 --- a/nslu2-binary-only/nslu2-switchbox-firmware.bb +++ b/nslu2-binary-only/nslu2-switchbox-firmware.bb @@ -0,0 +1,20 @@ +SECTION = "base" +DEPENDS = "" +PACKAGES = "" +INHIBIT_DEFAULT_DEPS = "1" +PR = "r4" + +SRC_URI = "http://nslu.sf.net/downloads/switchbox-3.3.tar.gz" +S = "${WORKDIR}" + +python () { + # Don't build switchbox firmware unless we're targeting an nslu2 + mach = oe.data.getVar("MACHINE", d, 1) + if mach != 'nslu2': + raise oe.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 +} |