Return-Path: Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by arago-project.org (Postfix) with ESMTPS id 51FFA5296D for ; Tue, 23 Oct 2012 17:50:34 +0000 (UTC) Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id q9NHoVrV014053 for ; Tue, 23 Oct 2012 12:50:32 -0500 Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id q9NHoUmZ011103 for ; Tue, 23 Oct 2012 23:20:31 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Tue, 23 Oct 2012 23:20:30 +0530 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with ESMTP id q9NHoRUE005672; Tue, 23 Oct 2012 23:20:29 +0530 From: Chase Maupin To: Date: Tue, 23 Oct 2012 12:50:24 -0500 Message-ID: <1351014624-4523-1-git-send-email-Chase.Maupin@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Subject: [PATCHv2 1/2] tisdk-image: class for making TI SDK images X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 17:50:35 -0000 Content-Type: text/plain * This class handles packaging the following pieces into a single tarball to be installed by InstallJammer as the TI SDK: * source components using the sourceipk functionality * target file systems * cross compile toolchain * TI style software manifest * Additional features/files that are not controlled via recipes can be pulled in optionally using the value set for EXTRA_TISDK_FILES. These files are placed in the SDK according to the directory structure defined in the EXTRA_TISDK_FILES directory. * This class is intended to make building TI SDKs simpler and more consistent across teams. Signed-off-by: Chase Maupin --- * Updated in version 2 * Changed the directory structure to match the actual meta-toolchain-arago directory structure and naming. --- meta-arago-distro/classes/tisdk-image.bbclass | 585 +++++++++++++++++++++++++ 1 files changed, 585 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/classes/tisdk-image.bbclass diff --git a/meta-arago-distro/classes/tisdk-image.bbclass b/meta-arago-distro/classes/tisdk-image.bbclass new file mode 100644 index 0000000..368a650 --- /dev/null +++ b/meta-arago-distro/classes/tisdk-image.bbclass @@ -0,0 +1,585 @@ +inherit rootfs_ipk +inherit image_types + +# This defines the list of features that we want to include in the SDK +# image. The list of packages this will be installed for each features +# is controlled with the PACKAGE_GROUP_ settings below. +IMAGE_FEATURES ?= "" +IMAGE_FEATURES[type] = "list" + +# Always add the sdk_base feature +IMAGE_FEATURES_prepend = "sdk_base package-management" + +# Define our always included sdk package group as the IMAGE_INSTALL settings +# like you would expect. +PACKAGE_GROUP_sdk_base = "${IMAGE_INSTALL}" + +# Create the list of packages to be installed +PACKAGE_INSTALL = "${@' '.join(oe.packagegroup.required_packages('${IMAGE_FEATURES}'.split(), d))}" + +RDEPENDS += "${@' '.join(oe.packagegroup.active_packages('${IMAGE_FEATURES}'.split(), d))}" + +# "export IMAGE_BASENAME" not supported at this time +IMAGE_BASENAME[export] = "1" + +# SDK images are unique to a machine +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# List of target side images to be built and packaged. By default take +# the base image but this can be modified if desired to package +# additional images. +TARGET_IMAGES ?= "arago-base-tisdk-image" + +# path to install the meta-toolchain package in the SDK +TISDK_TOOLCHAIN_PATH ?= "linux-devkit" + +# meta toolchain recipe to build and package as part of the tisdk image +TISDK_TOOLCHAIN ?= "meta-toolchain-arago" + +# List of the type of target file system images we want to include +TARGET_IMAGE_TYPES ?= "tar.bz2 ubi" + +# If EXTRA_TISDK_FILES points to a valid directory then all the contents +# of that directory will be added to the SDK using the same directory +# structure found inside of the EXTRA_TISDK_FILES directory. +# This can be set in the recipe or from the command line as long as +# the variable is in the BB_ENV_EXTRAWHITE list. +EXTRA_TISDK_FILES ?= "" + +# Manifest file location which will be created as part of the image build +# process. +# This manifest follows the TI manifest format requirements which is why +# it differs from some of the default manifest code in oe-core. +SW_MANIFEST_FILE ?= "${IMAGE_ROOTFS}/docs/software_manifest.htm" + +# helper function for generating a set of strings based on a list. Taken +# from the image.bbclass. +def string_set(iterable): + return ' '.join(set(iterable)) + +# Add a dependency for the do_rootfs function that will force us to build +# the TARGET_IMAGES first so that they will be available for packaging. +do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn for pn in (d.getVar("TARGET_IMAGES", True) or "").split())}" + +# Add a dependency for the do_populate_sdk function of the TIDSK_TOOLCHAIN +# variable which will force us to build the toolchain first so that it will be +# available for packaging +do_sdk_image[depends] += "${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" + +do_sdk_image[nostamp] = "1" +do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock" +do_sdk_image[cleandirs] += "${S}" + +# Call the cleanup_host_packes to remove packages that should be removed from +# the host for various reasons. This may include licensing issues as well. +OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; cleanup_toolchain_packages; " + +# List of packages to remove from the SDK host package set +HOST_CLEANUP_PACKAGES ?= "" + +# List of packages to remove from the SDK toolchain package set +TOOLCHAIN_CLEANUP_PACKAGES ?= "" + +# Remove any packages that may have been pulled in by other package installs +# that are not desired. This should be used with caution. +cleanup_host_packages() { + if [ "${HOST_CLEANUP_PACKAGES}" != "" ] + then + opkg-cl ${IPKG_ARGS} --force-depends remove ${HOST_CLEANUP_PACKAGES} + fi +} + +# Remove undesired packages that may be pulled into the toolchain by -dev +# package dependencies. This is usually GPLv3 components. +cleanup_toolchain_packages() { + if [ "${TOOLCHAIN_CLEANUP_PACKAGES}" != "" ] + then + # Make sure the TISDK_TOOLCHAIN_PATH is valid + if [ ! -d ${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH} ] + then + echo "Could not find the TISDK_TOOLCHAIN_PATH (${TISDK_TOOLCHAIN_PATH})" + return 1 + fi + + # Clean up the native side of the toolchain + opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" + opkg_conf="${opkg_dir}/etc/opkg-sdk.conf" + opkg-cl -o $opkg_dir -f $opkg_conf --force-depends remove ${TOOLCHAIN_CLEANUP_PACKAGES} + + # Clean up the target side of the toolchain + opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/arm-arago-linux-gnueabi" + opkg_conf="${opkg_dir}/etc/opkg.conf" + opkg-cl -o $opkg_dir -f $opkg_conf --force-depends remove ${TOOLCHAIN_CLEANUP_PACKAGES} + fi +} + +# Copy log_check from image.bbclass since the rootfs_ipk_do_rootfs function +# uses it, but we are not inheriting the full image class. +log_check() { + for target in $* + do + lf_path="${WORKDIR}/temp/log.do_$target.${PID}" + + echo "log_check: Using $lf_path as logfile" + + if test -e "$lf_path" + then + ${IMAGE_PKGTYPE}_log_check $target $lf_path + else + echo "Cannot find logfile [$lf_path]" + fi + echo "Logfile is clean" + done +} + +# Generate the header for a TI style software manifest +sw_manifest_header() { +echo " + + + +${MACHINE} TISDK ${SDK_VERSION} Installation Summary + + + +

${MACHINE} TISDK ${SDK_VERSION} Software Manifest

+

`date +"%B %d, %Y"`

+

Legend (explanation of the fields in the Manifest Table below)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Software NameThe name of the application or files
VersionVersion of the application or files
License TypeType of license(s) under which TI will be providing software to the licensee (e.g. BSD, GPLv2, TI TSPA License, TI Commercial License). See Open Source Reference License Disclaimer in the Disclaimers Section.
LocationThe directory name and path on the media (or in an archive) where the Package is located.
Delivered AsThis field will either be “Source”, “Binary” or “Source and Binary“ and is the form the content of the Package is delivered in. If the Package is delivered in an archive format, this field applies to the contents of the archive. If the word Limited is used with Source, as in “Limited Source” or “Limited Source and Binary” then only portions of the Source for the application are provided.
Modified by TIThis field will either be “Yes” or “No”. A “Yes” means TI had made changes to the Software. A “No” means TI has not made any changes. NOTE: This field is not applicable for Software “Obtained from” TI.
Obtained fromThis field specifies from where or from whom TI obtained the Software. It may be a URL to an Open Source site, a 3rd party companylicensor, or TI (if TI developed the software). If this field contains a link to an Open Source software, the date it was downloaded is also recorded. See Links Disclaimer in the Disclaimers Section.
+ + +

DISCLAIMERS

+

Export Control Classification Number (ECCN)

+

+Any use of ECCNs listed in the Manifest is at the user's risk and without recourse to TI. Your company, as the exporter of record, is responsible for determining the correct classification of any item at the time of export. Any export classification by TI of Software is for TI's internal use only and shall not be construed as a representation or warranty regarding the proper export classification for such Software or whether an export license or other documentation is required for exporting such Software. +

+ +

Links in the Manifest

+

+Any links appearing on this Manifest (for example in the “Obtained from&rdquo field) were verified at the time the Manifest was created. TI makes no guarantee that any listed links will remain active in the future. +

+ +

Open Source License References

+

+Your company is responsible for confirming the applicable license terms for any open source Software listed in this Manifest that was not “Obtained from&rdquo TI. Any open source license specified in this Manifest for Sotware that was not “Obtained from&rdquo TI is for TI's internal use only and shall not be construed as a representation of warranty regarding the proper open source license terms for such Software. +

+ +

Export Information

+

+ECCN for Software included in this release: 5D002 +

+ +

+ECCN for Technology (e.g., user documentation, specifications) included in this release: 5D002 +

+ +

Manifest

+

+See Legend above for a description of the columns and possible values. +

+" > ${SW_MANIFEST_FILE} +} + +sw_manifest_footer() { +echo " +

Credits

+ +

Licenses

+

Licenses can be found in the \"docs/licenses\" directory of the SDK install directory

+ +

GCC RUNTIME LIBRARY EXCEPTION

+

Version 3.1, 31 March 2009

+ +

Copyright © 2009 Free Software Foundation, Inc. http://fsf.org/

+ +

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

+ +

This GCC Runtime Library Exception ("Exception") is an additional permission under section 7 of the GNU General Public License, version 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that bears a notice placed by the copyright holder of the file stating that the file is governed by GPLv3 along with this Exception.

+ +

When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception.

+ +

0. Definitions.

+

A file is an "Independent Module" if it either requires the Runtime Library for execution after a Compilation Process, or makes use of an interface provided by the Runtime Library, but is not otherwise based on the Runtime Library.

+ +

"GCC" means a version of the GNU Compiler Collection, with or without modifications, governed by version 3 (or a specified later version) of the GNU General Public License (GPL) with the option of using any subsequent versions published by the FSF.

+ +

"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.

+ +

"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.

+ +

The "Compilation Process" transforms code entirely represented in non-intermediate languages designed for human-written code, and/or in Java Virtual Machine byte code, into Target Code. Thus, for example, use of source code generators and preprocessors need not be considered part of the Compilation Process, since the Compilation Process can be understood as starting with the output of the generators or preprocessors.

+ +

A Compilation Process is "Eligible" if it is done using GCC, alone or with other GPL-compatible software, or if it is done without using any work based on GCC. For example, using non-GPL-compatible Software to optimize any GCC intermediate representations would not qualify as an Eligible Compilation Process.

+ +

1. Grant of Additional Permission.

+

You have permission to propagate a work of Target Code formed by combining the Runtime Library with Independent Modules, even if such propagation would otherwise violate the terms of GPLv3, provided that all Target Code was generated by Eligible Compilation Processes. You may then convey such a combination under terms of your choice, consistent with the licensing of the Independent Modules.

+ +

2. No Weakening of GCC Copyleft.

+

The availability of this Exception does not imply any general presumption that third-party software is unaffected by the copyleft requirements of the license of GCC.

+ +
+ Auto generated by TISDK installer on `date` + + + +" >> ${SW_MANIFEST_FILE} +} + +# Create the host side toolchain components table +sw_manifest_toolchain_host() { + opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/var/lib/opkg/info" + +echo " +

Development Host Content

+

This table describes any software being delivered that is expected to run on a Development Host, instead of the target device. Some of this software may be licensed under GPLv3 but it is not expected to be shipped as a product.

+" >> ${SW_MANIFEST_FILE} + + generate_sw_manifest_table $opkg_dir + +} + +# Create the target side toolchain components table. These are components on +# the host but intended for the target. +sw_manifest_toolchain_target() { + opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/arm-arago-linux-gnueabi/var/lib/opkg/info" + + generate_sw_manifest_table $opkg_dir +} + +# Create the table of GPLv3 components found in the target file system +sw_manifest_target_gplv3() { + opkg_dir="$1" + +echo " +

GPLv3 Target Device Content

+ +

This table describes any GPLv3 software being delivered that is expected to run on the target device.

+ +" >> ${SW_MANIFEST_FILE} + + generate_sw_manifest_table $opkg_dir "true" +} + +# Generate the full target file system components table. +sw_manifest_target() { + # Extract the combined set of .control files from the TARGET_IMAGES in + # the filesystem directory to generate the manifest. + for image in ${TARGET_IMAGES} + do + # Only extract tar.gz or tar.bz2 types + if [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.bz2 ] + then + tar xjf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.bz2 -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control + elif [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.gz ] + then + tar xzf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.gz -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control + fi + done + + # set the opkg_dir value to look at the extracted target file system + # image files + opkg_dir="${IMAGE_ROOTFS}/filesystem/var/lib/opkg/info" + + sw_manifest_target_gplv3 $opkg_dir + +echo " +

All Target Device Content

+ +

This table describes any software being delivered that is expected to run on the target device.

+ +" >> ${SW_MANIFEST_FILE} + + generate_sw_manifest_table $opkg_dir + + # Remove the temporary var directory that was extracted + rm -rf ${IMAGE_ROOTFS}/filesystem/var +} + +# Create the table of host components installed. +sw_manifest_host() { +echo " +

Additional Development Host Content

+ +

This table describes software that is installed on the development host but is not part of the linux-devkit package. This is usually software example sources or tools such a flash utilities.

+ +" >> ${SW_MANIFEST_FILE} + + opkg_dir="${IMAGE_ROOTFS}/var/lib/opkg/info" + + generate_sw_manifest_table $opkg_dir +} + +# This function expects to be passed the following parameter +# - The location to the opkg info directory containing the control files +# of the installed packages +# Optionally if the second parameter is set to true then only GPLv3 contents +# will be listed. This is for TI SW Manifests where GPLv3 content is +# highlighted as a separate table. +generate_sw_manifest_table() { + control_dir="$1" + gplv3_only="$2" + + if [ ! -d "$control_dir" ] + then + echo "Could not find the control directory ($control_dir)" + return 1 + fi + + if [ "$gplv3_only" == "" ] + then + # The second parameter was not passed so set to false + gplv3_only="false" + fi + +echo " + + + + + + + + + + +" >> ${SW_MANIFEST_FILE} + + for i in $control_dir/*.control + do + package="`cat $i | grep Package: | awk {'print $2'}`" + version="`cat $i | grep Version: | awk {'print $2'} | cut -f1-2 -d-`" + long_version="`cat $i | grep Version: | awk {'print $2'}`" + license="`cat $i | grep License: | cut -d: -f2 `" + architecture="`cat $i | grep Architecture: | awk {'print $2'}`" + sources="`cat $i | grep Source: | cut -d ':' -f2-`" + location="$package""_""$long_version""_""$architecture"".ipk" + + # Set the highlight color if the license in GPLv3. If this is + # a GPLv3 only table then skip this package. + case "$license" in + *GPLv3*) + highlight="bgcolor=yellow" ;; + *unknown*) + if [ "$gplv3_only" != "true" ] + then + highlight="bgcolor=yellow" + else + continue + fi + ;; + *) + if [ "$gplv3_only" != "true" ] + then + highlight="" + else + continue + fi + ;; + esac + + # source variable contains the text to be used in the manifest + source="" + # Are there additional files in the package that come from the + # arago/OE metadata? + extra_files="0" + modified="No" + for s in $sources + do + case "$s" in + file://*) + extra_files="1" + ;; + http://install.source.dir.local*) + # If we are pulling something from a local file system then + # it is not a public modification and this should be marked + # as modified. This should not be the normal case. + modified="Yes" + ;; + *) + source="$source""$s";; + esac + done + + if [ "$extra_files" == "1" ] + then + source="$source""
Files from:
git://arago-project.org/git/meta-arago.git
git://arago-project.org/git/meta-ti.git" + fi + + case "$package" in + task-*) + continue ;; + *-src*) + delivered_as="Source" + ;; + *) + delivered_as="Binary" + ;; + esac + +echo " + + + + + + + + + +" >> ${SW_MANIFEST_FILE} + + done + + echo "
Software NameVersionLicenseLocationDelivered AsModified by TIObtained from
${package} ${version}${license}${location}${delivered_as}${modified}${source}


" >> ${SW_MANIFEST_FILE} +} + +# Generate the TI SW Manifest for the SDK image +generate_sw_manifest() { + sw_manifest_header + sw_manifest_toolchain_host + sw_manifest_target + sw_manifest_host + sw_manifest_toolchain_target + sw_manifest_footer +} + +# Create the SDK image. We will re-use the rootfs_ipk_do_rootfs functionality +# to install a given list of packages using opkg. +do_sdk_image () { + set -x + rm -rf ${IMAGE_ROOTFS} + mkdir -p ${IMAGE_ROOTFS} + mkdir -p ${DEPLOY_DIR_IMAGE} + + mkdir -p ${IMAGE_ROOTFS}/etc + + # Extract the toolchain SDK here so that it will be available when the + # OPKG_POSTPROCESS_COMMANDS are run + tar xjf ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}* -C ${IMAGE_ROOTFS}/ + mv ${IMAGE_ROOTFS}/${SDK_NAME} ${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH} + + # Creat the base SDK image + rootfs_${IMAGE_PKGTYPE}_do_rootfs + + mkdir -p ${IMAGE_ROOTFS}/filesystem + + # Copy the TARGET_IMAGES to the sdk image before packaging + for image in ${TARGET_IMAGES} + do + for type in ${TARGET_IMAGE_TYPES} + do + if [ -e ${DEPLOY_DIR_IMAGE}/${image}-${MACHINE}.${type} ] + then + cp ${DEPLOY_DIR_IMAGE}/${image}-${MACHINE}.${type} ${IMAGE_ROOTFS}/filesystem/ + fi + done + done + + # Copy the pre-built images for kernel and boot loaders + prebuilt_dir="${IMAGE_ROOTFS}/board-support/prebuilt-images" + if [ ! -e "${prebuilt_dir}" ] + then + mkdir -p ${prebuilt_dir} + fi + + # Copy the U-Boot image if it exists + if [ -e ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.img ] + then + cp ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.img ${prebuilt_dir}/ + elif [ -e ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin ] + then + cp ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin ${prebuilt_dir}/ + else + echo "Could not find the u-boot image" + return 1 + fi + + # Copy the Kernel image if it exists + if [ -e ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ] + then + cp ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ${prebuilt_dir}/ + else + echo "Could not find the Kernel image" + return 1 + fi + + # Copy the MLO image if it exists + if [ -e ${DEPLOY_DIR_IMAGE}/MLO-${MACHINE} ] + then + cp ${DEPLOY_DIR_IMAGE}/MLO-${MACHINE} ${prebuilt_dir}/ + else + echo "Could not find the MLO image" + return 1 + fi + + # Add the EXTRA_TISDK_FILES contents if they exist + # Make sure EXTRA_TISDK_FILES is not empty so we don't accidentaly + # copy the root directory. + # Use -L to copy the actual contents of symlinks instead of just + # the links themselves + if [ "${EXTRA_TISDK_FILES}" != "" ] + then + if [ -d "${EXTRA_TISDK_FILES}" ] + then + cp -rLf ${EXTRA_TISDK_FILES}/* ${IMAGE_ROOTFS}/ + fi + fi + + # Copy the licenses directory in the $DEPLOY_DIR to capture all + # the licenses that were used in the build. + if [ -d ${DEPLOY_DIR}/licenses ] + then + if [ ! -d ${IMAGE_ROOTFS}/docs ] + then + mkdir -p ${IMAGE_ROOTFS}/docs + fi + cp -rf ${DEPLOY_DIR}/licenses ${IMAGE_ROOTFS}/docs/ + fi + + # Create the TI software manifest + generate_sw_manifest + + # Copy the opkg.conf used by the image to allow for future updates + cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/ + + # Move the var/etc directories which contains the opkg data used for the + # manifest (and maybe one day for online updates) to a hidden directory. + mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var + mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc + + # Create the image directory symlinks + ${@get_imagecmds(d)} +} + +EXPORT_FUNCTIONS do_sdk_image +addtask sdk_image before do_build after do_install + -- 1.7.0.4