diff options
author | Rod Whitby <rod@whitby.id.au> | 2007-02-08 18:07:17 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2007-02-08 18:07:17 +0000 |
commit | 7169d2534c19748b11a70610927097b9b359329a (patch) | |
tree | d64d62be3433f52702362b2ea037569026133b44 /packages/images | |
parent | 34cea0ff78182315ff4049d03af223a8d445e847 (diff) |
slugos: Replaced SLUGOS_IMAGENAME with SLUGOS_DISTRO, and localised the usage of SLUGOS_DISTRO to slugos-*.* files only. Removed SLUGOS_FLASH_IMAGE completely (made it always enabled) and cleaned up slugos-image.bb
Diffstat (limited to 'packages/images')
-rw-r--r-- | packages/images/openprotium-image.bb | 2 | ||||
-rw-r--r-- | packages/images/slugos-image.bb | 33 | ||||
-rw-r--r-- | packages/images/slugos-imagename.bb | 29 |
3 files changed, 3 insertions, 61 deletions
diff --git a/packages/images/openprotium-image.bb b/packages/images/openprotium-image.bb index faec2664ca..472000f4f0 100644 --- a/packages/images/openprotium-image.bb +++ b/packages/images/openprotium-image.bb @@ -4,8 +4,6 @@ LICENSE = "MIT" PR = "r0" DEPENDS = "${MACHINE_TASK_PROVIDER}" -# SLUGOS_IMAGENAME defines the name of the image to be build, if it -# is not set this package will be skipped! EXTRA_IMAGECMD_jffs2 = "--pad --big-endian --eraseblock=0x10000 -D ${SLUGOS_DEVICE_TABLE}" IMAGE_LINGUAS = "" diff --git a/packages/images/slugos-image.bb b/packages/images/slugos-image.bb index 3a3e5f49a8..4ac8335ff4 100644 --- a/packages/images/slugos-image.bb +++ b/packages/images/slugos-image.bb @@ -7,12 +7,10 @@ DESCRIPTION = "Generic SlugOS image" HOMEPAGE = "http://www.nslu2-linux.org" LICENSE = "MIT" PR = "r44" +PROVIDES += "${SLUGOS_DISTRO}-image" COMPATIBLE_MACHINE = "nslu2" -# SLUGOS_IMAGENAME defines the name of the image to be build, if it -# is not set this package will be skipped! -IMAGE_BASENAME = "${SLUGOS_IMAGENAME}" IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DISTRO_VERSION}" IMAGE_FSTYPES = "jffs2" EXTRA_IMAGECMD_jffs2 += " -D ${SLUGOS_DEVICE_TABLE}" @@ -34,23 +32,11 @@ SLUGOS_DEVICE_TABLE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device IMAGE_PREPROCESS_COMMAND += "rm ${IMAGE_ROOTFS}/boot/zImage*;" IMAGE_PREPROCESS_COMMAND += "install -c -m 644 ${SLUGOS_DEVICE_TABLE} ${IMAGE_ROOTFS}/etc/device_table;" -# Building a full image. If required do a post-process command which builds -# the full flash image using slugimage. At present this only works for NSLU2 images. -PACK_IMAGE = "" -IMAGE_POSTPROCESS_COMMAND += "${PACK_IMAGE}" -PACK_IMAGE_DEPENDS = "" -EXTRA_IMAGEDEPENDS += "${PACK_IMAGE_DEPENDS}" - # This hack removes '${MACHINE}' from the end of the arch.conf for ipk, # preventing _mach.ipk (with no byte sex) taking precedence over everything # else. ROOTFS_POSTPROCESS_COMMAND += "sed -i '$d' '${IMAGE_ROOTFS}/etc/ipkg/arch.conf';" -# These depends define native utilities - they do not get put in the flash and -# are not required to build the image. -IMAGE_TOOLS = "" -EXTRA_IMAGEDEPENDS += "${IMAGE_TOOLS}" - # CONFIG: # SLUGOS_EXTRA_RDEPENDS: set in conf, things to add to the image # SLUGOS_SUPPORT: set here, see below, added to the image. @@ -95,25 +81,15 @@ PACKAGE_INSTALL = "${RDEPENDS}" inherit image -python () { - # Don't build slugos images unless the configuration is set up - # for an image build! - if bb.data.getVar("SLUGOS_IMAGENAME", d, 1) == '': - raise bb.parse.SkipPackage("absent or broken SlugOS configuration") -} - -#-------------------------------------------------------------------------------- -# NSLU2 specific -# #NOTE: you do not actually need the boot loader in normal use because it is # *not* overwritten by a standard upslug upgrade, so you can make an image with # just non-LinkSys software which can be flashed into the NSLU2. Because # LinkSys have made "EraseAll" available, however, (this does overwrite RedBoot) # it is a bad idea to produce flash images without a valid RedBoot - that allows # an innocent user upgrade attempt to instantly brick the NSLU2. -PACK_IMAGE += "${@['', 'slugos_pack_image;'][bb.data.getVar('SLUGOS_FLASH_IMAGE', d, 1) == '1']}" -PACK_IMAGE_DEPENDS += "${@['', 'slugimage-native nslu2-linksys-firmware ixp4xx-npe'][bb.data.getVar('SLUGOS_FLASH_IMAGE', d, 1) == '1']}" +IMAGE_POSTPROCESS_COMMAND += "slugos_pack_image;" +EXTRA_IMAGEDEPENDS += "slugimage-native nslu2-linksys-firmware ixp4xx-npe upslug2-native" NSLU2_SLUGIMAGE_ARGS ?= "" slugos_pack_image() { @@ -168,6 +144,3 @@ slugos_pack_image() { -C ${DEPLOY_DIR_IMAGE} firmupgrade rm -rf ${DEPLOY_DIR_IMAGE}/firmupgrade } - -# upslug2 (in tmp/work/upslug2-native-*) is the program to write the NSLU2 flash -IMAGE_TOOLS_nslu2 = "upslug2-native" diff --git a/packages/images/slugos-imagename.bb b/packages/images/slugos-imagename.bb deleted file mode 100644 index 61629d44af..0000000000 --- a/packages/images/slugos-imagename.bb +++ /dev/null @@ -1,29 +0,0 @@ -# This is an inglorious hack to provide a package to match -# ${SLUGOS_IMAGENAME}-image -LICENSE = "MIT" -PN = "${SLUGOS_IMAGENAME}-image" -PV = "0" -PR = "r0" -DEPENDS = "slugos-image" -PACKAGES = "" -INHIBIT_DEFAULT_DEPS = "1" - -SLUGOS_IMAGENAME ?= "slugos" -COMPATIBLE_MACHINE = "nslu2" - -do_fetch() { -} -do_unpack() { -} -do_patch() { -} -do_configure() { -} -do_compile() { -} -do_install() { -} -do_stage() { -} -do_build() { -} |