diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/openslug-image.bb | 33 | ||||
-rw-r--r-- | meta/unslung-packages.oe | 0 | ||||
-rw-r--r-- | meta/unslung-standard-image.bb | 40 |
3 files changed, 73 insertions, 0 deletions
diff --git a/meta/openslug-image.bb b/meta/openslug-image.bb index e69de29bb2..94f91963da 100644 --- a/meta/openslug-image.bb +++ b/meta/openslug-image.bb @@ -0,0 +1,33 @@ +PR = "r1" + +IMAGE_BASENAME = "openslug" + +IMAGE_LINGUAS = "" +USE_DEVFS = "1" + +OPENSLUG_HIDDEN_PACKAGES = "ipkg-native ipkg-utils-native fakeroot-native patcher-native virtual/armeb-linux-uclibc-gcc \ + virtual/libc makedevs-native mtd-native slugimage-native nslu2-linksys-firmware nslu2-switchbox-firmware " + +DEPENDS = "base-files base-passwd-3.5.7 \ + busybox dropbear hotplug initscripts netbase \ + sysvinit tinylogin lrzsz portmap \ + ixp4xx-csr ixp425-eth \ + ipkg-collateral ipkg ipkg-link \ + ${OPENSLUG_EXTRA_DEPENDS}" + +IPKG_INSTALL = "base-files base-passwd \ + busybox dropbear hotplug initscripts netbase \ + update-modules sysvinit tinylogin lrzsz portmap \ + ixp4xx-csr ixp425-eth \ + ipkg-collateral ipkg ipkg-link \ + ${OPENSLUG_EXTRA_INSTALL}" + +inherit image_ipk + +python () { + # Don't build openslug images unless we're targeting an nslu2 + mach = oe.data.getVar("MACHINE", d, 1) + dist = oe.data.getVar("DISTRO", d, 1) + if mach != 'nslu2' or dist != 'openslug': + raise oe.parse.SkipPackage("OpenSlug only builds for the Linksys NSLU2") +} diff --git a/meta/unslung-packages.oe b/meta/unslung-packages.oe new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/meta/unslung-packages.oe diff --git a/meta/unslung-standard-image.bb b/meta/unslung-standard-image.bb index e69de29bb2..9104c7ef38 100644 --- a/meta/unslung-standard-image.bb +++ b/meta/unslung-standard-image.bb @@ -0,0 +1,40 @@ +PR = "r1" + +IMAGE_LINGUAS = "" +USE_DEVFS = "1" + +UNSLUNG_BASE_DEPENDS = "slingbox ipkg wget" +UNSLUNG_BASE_PACKAGES = "slingbox ipkg wget" + +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 = oe.data.getVar("MACHINE", d, 1) + dist = oe.data.getVar("DISTRO", d, 1) + if mach != 'nslu2' or dist != 'unslung': + raise oe.parse.SkipPackage("Unslung only builds for the Linksys NSLU2") +} |