summaryrefslogtreecommitdiff
path: root/packages/meta
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meta')
-rw-r--r--packages/meta/switchbox-image.bb17
-rw-r--r--packages/meta/unslung-standard-image.bb40
2 files changed, 57 insertions, 0 deletions
diff --git a/packages/meta/switchbox-image.bb b/packages/meta/switchbox-image.bb
index e69de29bb2..31397df75b 100644
--- a/packages/meta/switchbox-image.bb
+++ b/packages/meta/switchbox-image.bb
@@ -0,0 +1,17 @@
+PR = "r2"
+
+IMAGE_LINGUAS = ""
+USE_DEVFS = "1"
+
+SWITCHBOX_BASE_DEPENDS = "switchbox"
+SWITCHBOX_BASE_PACKAGES = "switchbox"
+
+IMAGE_VARIANT = "switchbox"
+
+IMAGE_BASENAME = "${IMAGE_VARIANT}"
+
+IPKG_INSTALL = "${SWITCHBOX_BASE_PACKAGES}"
+
+DEPENDS = "${SWITCHBOX_BASE_DEPENDS}"
+
+inherit image_ipk
diff --git a/packages/meta/unslung-standard-image.bb b/packages/meta/unslung-standard-image.bb
index e69de29bb2..b0a789e41e 100644
--- a/packages/meta/unslung-standard-image.bb
+++ b/packages/meta/unslung-standard-image.bb
@@ -0,0 +1,40 @@
+PR = "r3"
+
+IMAGE_LINGUAS = ""
+USE_DEVFS = "1"
+
+UNSLUNG_BASE_DEPENDS = "glibc slingbox ipkg wget cpio findutils"
+UNSLUNG_BASE_PACKAGES = "libc6-unslung slingbox ipkg wget cpio findutils"
+
+IMAGE_VARIANT ?= "standard"
+
+export IMAGE_BASENAME = "unslung-${IMAGE_VARIANT}"
+
+IPKG_INSTALL = "unslung-${IMAGE_VARIANT}-rootfs \
+ ${UNSLUNG_BASE_PACKAGES} ${UNSLUNG_EXTRA_PACKAGES}"
+
+DEPENDS = "unslung-${IMAGE_VARIANT}-kernel unslung-${IMAGE_VARIANT}-rootfs \
+ ${UNSLUNG_BASE_DEPENDS} ${UNSLUNG_EXTRA_DEPENDS}"
+
+RDEPENDS = "${UNSLUNG_BASE_PACKAGES} ${UNSLUNG_EXTRA_RDEPENDS}"
+
+RRECOMMENDS = "${UNSLUNG_EXTRA_RRECOMMENDS}"
+
+IMAGE_PREPROCESS_COMMAND += "unslung_clean_image; "
+
+inherit image_ipk
+
+# Note that anything in this function must be repeatable without having to rebuild the rootfs
+unslung_clean_image () {
+ # Remove info from the local feed used to build the image
+ rm -f ${IMAGE_ROOTFS}/usr/lib/ipkg/lists/*
+ rm -f ${IMAGE_ROOTFS}/${sysconfdir}/version
+}
+
+python () {
+ # Don't build unslung images unless we're targeting an nslu2
+ mach = bb.data.getVar("MACHINE", d, 1)
+ dist = bb.data.getVar("DISTRO", d, 1)
+ if mach != 'nslu2' or dist != 'unslung':
+ raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2")
+}