diff --git a/meta-digi-dbl/DIGI_EULA b/meta-digi-dbl/DIGI_EULA new file mode 100644 index 000000000..a87ed63eb --- /dev/null +++ b/meta-digi-dbl/DIGI_EULA @@ -0,0 +1,90 @@ + END-USER LICENSE AGREEMENT + DIGI DEVELOPMENT KIT + (PN 90001132) + +This end-user license agreement is a legal agreement between you +(either an individual or a single entity) and Digi International, Inc. +("Digi") for use of Digi Technology. This license applies to the +product with which it was shipped, which may be a Development Kit or a +unit of Digi Hardware. By using Digi product, you are consenting to be +bound by and are becoming a party to this end-user license agreement. + +DEFINITIONS + +o "Digi Hardware" shall mean electronic assemblies and accessories + provided by Digi, under the Digi brand name. + +o "Digi Software" shall mean the computer software code that is + distributed by Digi and not subject to third-party ownership rights. + +o "Digi Technology" refers to Digi Hardware and Digi Software. + +o "Development Kit" refers to a combination of Digi Hardware, + Digi Software, and documentation and may also include third-party + components. + +COPYRIGHT AND INTELLECTUAL PROPERTY + +All title and copyrights in and to the design, manufacture and +underlying intellectual property of the Digi Hardware are owned by +Digi. The Digi Software is protected by copyright laws and international +treaty provisions. The Digi Software is not open source software unless +specifically stated. Therefore, you must treat the Digi Software like +any other copyrighted material. + +SOFTWARE + +Digi Software is covered by copyright and licensed (not sold). Digi +Software is licensed only for use by the person or organization that is the +intended end user and only for the purpose of evaluating Digi Technology +and developing solutions that incorporate Digi Technology. Digi Software +may only be used in conjunction with Digi Hardware. Copies of Digi Software +may not be redistributed on a standalone basis or as part of any product +not incorporating Digi Hardware. + +THIRD-PARTY COMPONENTS + +A Development Kit may contain third-party components. THE LICENSE TO USE +A THIRD-PARTY COMPONENT IS PROVIDED SEPARATELY. YOUR USE OF THIRD PARTY +COMPONENTS WILL BE PURSUANT TO THE THIRD-PARTY LICENSE. + +WARRANTIES + +DIGI INTERNATIONAL, INC. EXPRESSLY DISCLAIMS ALL WARRANTIES FOR THE +DIGI TECHNOLOGY AND ANY THIRD PARTY COMPONENTS. DIGI INTERNATIONAL, +INC. DOES NOT WARRANT THAT THE DIGI TECHNOLOGY IS ERROR FREE OR WILL +WORK AS INTENDED. THE DIGI TECHNOLOGY AND ANY RELATED DOCUMENTATION +ARE PROVIDED "AS IS" WITH ALL FAULTS, WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND +NON-INFRINGEMENT. THE ENTIRE RISK ARISING OUT OF USE OR PERFORMANCE OF +THE DIGI TECHNOLOGY REMAINS WITH THE END-USER. + +LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES + +IN NO EVENT SHALL DIGI INTERNATIONAL INC. OR ITS SUPPLIERS BE LIABLE FOR +ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS +OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, +OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO +USE THIS PRODUCT, EVEN IF DIGI INTERNATIONAL INC. HAS BEEN ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME STATES/JURISDICTIONS DO +NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR +INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU. + +MISCELLANEOUS + +This agreement is governed by the laws of the State of Minnesota. You +agree to comply with all applicable United States export control laws +and regulations concerning export and re-export of products, technology +and documentation, including without limitation, the laws and regulations +administered by the United States Department of Commerce and the United +States Department of State. + +------------------------------------------------------------------------- + U-BOOT LICENSE NOTICE + +THE U-BOOT SOFTWARE THAT IS PROVIDED WITH DIGI SOFTWARE AND DIGI HARDWARE +IS COVERED BY THE GNU GENERAL PUBLIC LICENSE (VERSION 2 OR LATER) AS +PUBLISHED BY THE FREE SOFTWARE FOUNDATION. + +Please visit http://www.denx.de for current U-Boot license information. diff --git a/meta-digi-dbl/DIGI_OPEN_EULA b/meta-digi-dbl/DIGI_OPEN_EULA new file mode 100644 index 000000000..bd627eeeb --- /dev/null +++ b/meta-digi-dbl/DIGI_OPEN_EULA @@ -0,0 +1,75 @@ + THIRD PARTY AND OPEN SOURCE LICENSE NOTICE + DIGI EMBEDDED LINUX + (PN 93000719) + + +The product with which this notice was originally transmitted +contains a combination of hardware, software and documentary components +("Components"). The Components are provided for use under various +licenses that are unique to each Component. + + +THIRD PARTY COMPONENTS + +OpenSSL is subject to the terms and conditions of the OpenSSL/SSLeay +License ("OpenSSL License"). The OpenSSL/SSLeay Components are +provided under the terms of the OpenSSL/SSLeay License, and any use +of such OpenSSL/SSLeay Components shall comply with the terms and +conditions of that license. A copy of the OpenSSL/SSLeay license is +available in the license.txt file accompanying the Components and at +http://www.openssl.org/source/license.html + +The WPA/WPA2 supplicant is dual-licensed under both the GPL version +2 and BSD license, and any use of such Components shall comply with +the terms and conditions of those licenses. + +The Qt Components ("Qt Components") are provided under the terms +of the GNU Lesser General Public License version 2.1 ("LGPL"), +and any use of such Qt Components shall comply with the terms and +conditions of that license. For Qt production licensing, refer to +http://qt.nokia.com/products/licensing for detailed information. + +Use of Components that are subject to one of the versions of the +GNU General Public License ("GPL") shall comply with the terms and +conditions of those licenses. Copies of the GPL licenses are available +at http://www.gnu.org/licenses/licenses.html. + + +DIGI COMPONENTS + +The Components that are not the property of a third party are the +property of Digi International Inc. Unless otherwise noted, Digi +Components are provided pursuant to a Digi End-User License Agreement. + +The WPA supplicant has been modified by Digi, and the modification +is distributed under the terms of the BSD License set forth below: + +***************** +Copyright (c) Digi International, Inc. +All rights reserved. + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +* Neither the name of the Digi International Inc. nor the names of + its contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +***************** + diff --git a/meta-digi-dbl/conf/distro/dbl.conf b/meta-digi-dbl/conf/distro/dbl.conf index b78088f89..19db3e4a9 100644 --- a/meta-digi-dbl/conf/distro/dbl.conf +++ b/meta-digi-dbl/conf/distro/dbl.conf @@ -1,12 +1,12 @@ -DISTRO = "del" -DISTRO_NAME = "Digi Embedded Linux" -DISTRO_VERSION = "6.0" -SDK_VENDOR = "-del" +DISTRO = "dbl" +DISTRO_NAME = "Digi Boxed Linux" +DISTRO_VERSION = "0.1" +SDK_VENDOR = "-dbl" SDK_VERSION := "${DISTRO_VERSION}" MAINTAINER = "Digi Support " -TARGET_VENDOR = "-del" +TARGET_VENDOR = "-dbl" LOCALCONF_VERSION = "1" LAYER_CONF_VERSION ?= "6" @@ -19,13 +19,10 @@ DISTRO_FEATURES += "usbhost" DISTRO_FEATURES += "nfs" DISTRO_FEATURES += "${DISTRO_FEATURES_LIBC}" DISTRO_FEATURES += "largefile" -DISTRO_FEATURES += "opengl" -# Disable pulseaudio (not needed in del-image-minimal) +# Disable pulseaudio (not needed in dbl-image-base) DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio" -PREFERRED_PROVIDER_jpeg = "jpeg" - PREFERRED_VERSION_linux-yocto ?= "3.4%" PREFERRED_VERSION_linux-yocto_qemux86 ?= "3.4%" PREFERRED_VERSION_linux-yocto_qemux86-64 ?= "3.4%" @@ -39,7 +36,7 @@ SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" EXTRAOPKGCONFIG = "poky-feed-config-opkg" # Override these in poky based distros to modify DISTRO_EXTRA_R* -POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-del-core" +POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-dbl-core" POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet" DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" @@ -57,7 +54,7 @@ TCLIBCAPPEND = "" QEMU_TARGETS ?= "arm i386 mips mipsel ppc x86_64" # Other QEMU_TARGETS "mips64 mips64el sh4" -# Some packages like gst-plugins-ugly need this +# Some packages need this LICENSE_FLAGS_WHITELIST += "commercial" DIGI_MIRROR = "http://build-linux.digi.com/yocto/downloads" @@ -130,7 +127,3 @@ INHERIT += "poky-sanity" #WARN_QA = "unsafe-references-in-binaries unsafe-references-in-scripts" WARN_QA = "" ERROR_QA = "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms useless-rpaths rpaths staticdev ldflags" - -# Mask openembedded core gst-ffmpeg recipe because it adds a dependency on libav (libgl, libx11) -BBMASK = "meta-openembedded/meta-oe/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bbappend" -BBMASK .= "${@base_contains('DISTRO_FEATURES', 'x11', '', '|.*amd-gpu-x11-bin-mx51_.*bb', d)}" diff --git a/meta-digi-dbl/conf/layer.conf b/meta-digi-dbl/conf/layer.conf new file mode 100644 index 000000000..8066f014f --- /dev/null +++ b/meta-digi-dbl/conf/layer.conf @@ -0,0 +1,16 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have a packages directory, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "dbl" +BBFILE_PATTERN_dbl := "^${LAYERDIR}/" +BBFILE_PRIORITY_dbl = "6" + +# This is Digi's General license agreement. +DIGI_EULA_FILE = "${LAYERDIR}/DIGI_EULA" + +# This is Digi's Open Source license agreement. +DIGI_OPEN_EULA_FILE = "${LAYERDIR}/DIGI_OPEN_EULA" diff --git a/meta-digi-dbl/recipes-core/images/dbl-image-base.bb b/meta-digi-dbl/recipes-core/images/dbl-image-base.bb new file mode 100644 index 000000000..97b9311b3 --- /dev/null +++ b/meta-digi-dbl/recipes-core/images/dbl-image-base.bb @@ -0,0 +1,33 @@ +# +# Copyright (C) 2012 Digi International. +# +DESCRIPTION = "DBL busybox based image." + +VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev" + +IMAGE_INSTALL = "packagegroup-dbl-core ${VIRTUAL-RUNTIME_dev_manager} ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}" + +IMAGE_LINGUAS = " " + +LICENSE = "MIT" + +inherit core-image +inherit del-image + +# These features will move to the project's local.conf +# where they can be customized by platform. + +# Only common features to remain here. +IMAGE_FEATURES += "ssh-server-dropbear" +IMAGE_FEATURES += "package-management" +IMAGE_FEATURES += "del-network" + +# Machine dependant features +IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "alsa", "del-audio", "", d)}' +IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "accel-video", "del-gstreamer", "", d)}' +IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "wifi", "del-wireless", "", d)}' +IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "bluetooth", "del-bluetooth", "", d)}' + +IMAGE_ROOTFS_SIZE = "8192" + +ROOTFS_POSTPROCESS_COMMAND += "del_rootfs_tuning;" diff --git a/meta-digi-dbl/recipes-core/packagegroups/packagegroup-dbl-core.bb b/meta-digi-dbl/recipes-core/packagegroups/packagegroup-dbl-core.bb new file mode 100644 index 000000000..c88642b6c --- /dev/null +++ b/meta-digi-dbl/recipes-core/packagegroups/packagegroup-dbl-core.bb @@ -0,0 +1,46 @@ +# +# Copyright (C) 2012 Digi International. +# +DESCRIPTION = "Core packagegroup for DBL image" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" +PACKAGE_ARCH = "${MACHINE_ARCH}" +DEPENDS = "virtual/kernel" +ALLOW_EMPTY = "1" +PR = "r0" + +inherit packagegroup + +# +# Set by the machine configuration with packages essential for device bootup +# +MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" + +# Distro can override the following VIRTUAL-RUNTIME providers: +VIRTUAL-RUNTIME_login_manager ?= "" +VIRTUAL-RUNTIME_passwd_manager ?= "shadow" +VIRTUAL-RUNTIME_init_manager ?= "sysvinit" +VIRTUAL-RUNTIME_initscripts ?= "initscripts" +VIRTUAL-RUNTIME_keymaps ?= "keymaps" + +RDEPENDS_${PN} = "\ + base-files \ + base-passwd \ + busybox \ + ${VIRTUAL-RUNTIME_passwd_manager} \ + ${VIRTUAL-RUNTIME_initscripts} \ + ${@base_contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \ + ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ + ${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate tslib-tests", "",d)} \ + modutils-initscripts \ + netbase \ + ${VIRTUAL-RUNTIME_login_manager} \ + ${VIRTUAL-RUNTIME_init_manager} \ + ${VIRTUAL-RUNTIME_update-alternatives} \ + update-flash \ + usbutils \ + ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" + +RRECOMMENDS_${PN} = "\ + ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"