2011-01-04 07:21:40 +00:00
|
|
|
# Yocto ADT Installer bb file
|
|
|
|
#
|
2012-09-05 21:35:31 +00:00
|
|
|
# Copyright 2010-2012 by Intel Corp.
|
2011-01-04 07:21:40 +00:00
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
# THE SOFTWARE.
|
|
|
|
|
|
|
|
|
2013-12-22 11:36:44 +00:00
|
|
|
SUMMARY = "Application Development Toolkit"
|
|
|
|
DESCRIPTION = "Creates the Application Development Toolkit (ADT) installer tarball"
|
|
|
|
HOMEPAGE = "http://www.yoctoproject.org/tools-resources/projects/application-development-toolkit-adt"
|
2014-01-02 14:19:45 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
2011-04-20 15:56:03 +00:00
|
|
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
2011-01-04 07:21:40 +00:00
|
|
|
LICENSE = "MIT"
|
|
|
|
|
|
|
|
PACKAGES = ""
|
2014-10-02 09:56:06 +00:00
|
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
2011-01-04 07:21:40 +00:00
|
|
|
|
2012-09-05 21:35:31 +00:00
|
|
|
PR = "r11"
|
2011-01-04 07:21:40 +00:00
|
|
|
|
|
|
|
ADT_DEPLOY = "${TMPDIR}/deploy/sdk/"
|
|
|
|
ADT_DIR = "${WORKDIR}/adt-installer/"
|
2013-11-22 16:12:58 +00:00
|
|
|
S = "${WORKDIR}/opkg-${PV}"
|
2011-01-04 07:21:40 +00:00
|
|
|
|
2013-11-22 16:12:58 +00:00
|
|
|
PV = "0.2.0"
|
|
|
|
SRC_URI = "https://opkg.googlecode.com/files/opkg-${PV}.tar.gz \
|
2011-03-10 09:27:55 +00:00
|
|
|
file://wget_cache.patch \
|
2011-01-04 07:21:40 +00:00
|
|
|
file://adt_installer \
|
|
|
|
file://scripts/adt_installer_internal \
|
|
|
|
file://scripts/util \
|
|
|
|
file://scripts/data_define \
|
|
|
|
file://scripts/extract_rootfs \
|
|
|
|
file://adt_installer.conf \
|
|
|
|
file://opkg/conf/opkg-sdk-x86_64.conf \
|
2011-02-09 06:30:25 +00:00
|
|
|
file://opkg/conf/opkg-sdk-i686.conf \
|
2011-01-04 07:21:40 +00:00
|
|
|
"
|
|
|
|
|
2013-11-22 16:12:58 +00:00
|
|
|
SRC_URI[md5sum] = "e8a6fd34fb2529191fe09dc14c934cc3"
|
|
|
|
SRC_URI[sha256sum] = "81b7055eb4c12c5e5652339305c9236cf357890717d4bea063963f3f434d966f"
|
|
|
|
|
2012-09-05 21:35:31 +00:00
|
|
|
ADTREPO ?= "http://adtrepo.yoctoproject.org/${SDK_VERSION}"
|
2011-08-19 05:14:27 +00:00
|
|
|
|
2014-02-16 16:05:27 +00:00
|
|
|
# This recipe makes no sense as a multilib
|
|
|
|
MULTILIBS = ""
|
|
|
|
|
2012-02-26 21:53:02 +00:00
|
|
|
do_populate_adt[umask] = "022"
|
2011-06-22 04:56:25 +00:00
|
|
|
|
2012-01-31 05:11:44 +00:00
|
|
|
fakeroot do_populate_adt () {
|
2011-01-04 07:21:40 +00:00
|
|
|
cd ${WORKDIR}
|
|
|
|
mkdir -p ${ADT_DEPLOY}
|
2012-09-05 21:35:31 +00:00
|
|
|
rm -f ${ADT_DEPLOY}/adt_installer.tar.bz2
|
2011-01-04 07:21:40 +00:00
|
|
|
rm -rf ${ADT_DIR}
|
|
|
|
mkdir -p ${ADT_DIR}/opkg/build
|
|
|
|
cp -r opkg ${ADT_DIR}/
|
2011-08-19 05:14:27 +00:00
|
|
|
sed -i -e 's#ADTREPO_URL#${ADTREPO}#' ${ADT_DIR}/opkg/conf/*.conf
|
2013-11-22 16:12:58 +00:00
|
|
|
cp -r opkg-${PV} ${ADT_DIR}/opkg/build/
|
|
|
|
mv ${ADT_DIR}/opkg/build/opkg-${PV} ${ADT_DIR}/opkg/build/opkg-svn
|
2013-03-08 15:23:44 +00:00
|
|
|
rm -rf ${ADT_DIR}/opkg/build/opkg-svn/patches ${ADT_DIR}/opkg/build/opkg-svn/.pc
|
2011-01-04 07:21:40 +00:00
|
|
|
cp -r scripts ${ADT_DIR}/
|
|
|
|
cp adt_installer ${ADT_DIR}
|
|
|
|
cp adt_installer.conf ${ADT_DIR}
|
2012-09-05 21:35:31 +00:00
|
|
|
sed -i -e 's#ADTREPO#${ADTREPO}#' ${ADT_DIR}/adt_installer.conf
|
2012-08-17 10:38:11 +00:00
|
|
|
echo 'SDK_VENDOR=${SDK_VENDOR}' >> ${ADT_DIR}/scripts/data_define
|
|
|
|
echo 'DEFAULT_INSTALL_FOLDER=${SDKPATH}' >> ${ADT_DIR}/scripts/data_define
|
|
|
|
cp ${COREBASE}/scripts/relocate_sdk.py ${ADT_DIR}/scripts/
|
2011-01-04 07:21:40 +00:00
|
|
|
tar cfj adt_installer.tar.bz2 adt-installer
|
|
|
|
cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY}
|
|
|
|
}
|
|
|
|
|
2012-01-31 05:11:44 +00:00
|
|
|
do_populate_adt[nostamp] = "1"
|
2011-01-04 07:21:40 +00:00
|
|
|
do_configure[noexec] = "1"
|
|
|
|
do_compile[noexec] = "1"
|
|
|
|
do_package[noexec] = "1"
|
2013-01-23 14:27:33 +00:00
|
|
|
do_packagedata[noexec] = "1"
|
2011-01-04 07:21:40 +00:00
|
|
|
do_package_write_ipk[noexec] = "1"
|
|
|
|
do_package_write_rpm[noexec] = "1"
|
|
|
|
do_package_write_deb[noexec] = "1"
|
|
|
|
do_poplulate_sysroot[noexec] = "1"
|
|
|
|
|
2012-01-31 05:11:44 +00:00
|
|
|
addtask populate_adt before do_build after do_install
|