blob: 22e38507065d0c776766bb86b9f81e27f5f4e84e [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# Yocto ADT Installer bb file
2#
3# Copyright 2010-2012 by Intel Corp.
4#
5# Permission is hereby granted, free of charge, to any person obtaining a copy
6# of this software and associated documentation files (the "Software"), to deal
7# in the Software without restriction, including without limitation the rights
8# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9# copies of the Software, and to permit persons to whom the Software is
10# furnished to do so, subject to the following conditions:
11
12# The above copyright notice and this permission notice shall be included in
13# all copies or substantial portions of the Software.
14
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21# THE SOFTWARE.
22
23
24SUMMARY = "Application Development Toolkit"
25DESCRIPTION = "Creates the Application Development Toolkit (ADT) installer tarball"
26HOMEPAGE = "http://www.yoctoproject.org/tools-resources/projects/application-development-toolkit-adt"
27LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
28 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
29LICENSE = "MIT"
30
31PACKAGES = ""
32INHIBIT_DEFAULT_DEPS = "1"
33
34PR = "r11"
35
36ADT_DEPLOY = "${DEPLOY_DIR}/sdk/"
37ADT_DIR = "${WORKDIR}/adt-installer/"
38S = "${WORKDIR}/opkg-${PV}"
39
40PV = "0.3.0"
41SRC_URI = "http://downloads.yoctoproject.org/releases/opkg/opkg-${PV}.tar.gz \
42 file://wget_cache.patch \
43 file://adt_installer \
44 file://scripts/adt_installer_internal \
45 file://scripts/util \
46 file://scripts/data_define \
47 file://scripts/extract_rootfs \
48 file://adt_installer.conf \
49 file://opkg/conf/opkg-sdk-x86_64.conf \
50 file://opkg/conf/opkg-sdk-i686.conf \
51 "
52
53SRC_URI[md5sum] = "3412cdc71d78b98facc84b19331ec64e"
54SRC_URI[sha256sum] = "7f735d1cdb8ef3718fb0f9fba44ca0d9a5c90d3a7f014f37a6d2f9474f54988f"
55
56ADTREPO ?= "http://adtrepo.yoctoproject.org/${SDK_VERSION}"
57
58# This recipe makes no sense as a multilib
59MULTILIBS = ""
60
61do_populate_adt[umask] = "022"
62
63fakeroot do_populate_adt () {
64 cd ${WORKDIR}
65 mkdir -p ${ADT_DEPLOY}
66 rm -f ${ADT_DEPLOY}/adt_installer.tar.bz2
67 rm -rf ${ADT_DIR}
68 mkdir -p ${ADT_DIR}/opkg/build
69 cp -r opkg ${ADT_DIR}/
70 sed -i -e 's#ADTREPO_URL#${ADTREPO}#' ${ADT_DIR}/opkg/conf/*.conf
71 cp -r opkg-${PV} ${ADT_DIR}/opkg/build/
72 mv ${ADT_DIR}/opkg/build/opkg-${PV} ${ADT_DIR}/opkg/build/opkg-svn
73 rm -rf ${ADT_DIR}/opkg/build/opkg-svn/patches ${ADT_DIR}/opkg/build/opkg-svn/.pc
74 cp -r scripts ${ADT_DIR}/
75 cp adt_installer ${ADT_DIR}
76 cp adt_installer.conf ${ADT_DIR}
77 sed -i -e 's#ADTREPO#${ADTREPO}#' ${ADT_DIR}/adt_installer.conf
78 echo 'SDK_VENDOR=${SDK_VENDOR}' >> ${ADT_DIR}/scripts/data_define
79 echo 'DEFAULT_INSTALL_FOLDER=${SDKPATH}' >> ${ADT_DIR}/scripts/data_define
80 cp ${COREBASE}/scripts/relocate_sdk.py ${ADT_DIR}/scripts/
81 tar cfj adt_installer.tar.bz2 adt-installer
82 cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY}
83}
84
85do_populate_adt[nostamp] = "1"
86do_configure[noexec] = "1"
87do_compile[noexec] = "1"
88do_package[noexec] = "1"
89do_packagedata[noexec] = "1"
90do_package_write_ipk[noexec] = "1"
91do_package_write_rpm[noexec] = "1"
92do_package_write_deb[noexec] = "1"
93do_poplulate_sysroot[noexec] = "1"
94
95addtask populate_adt before do_build after do_install