summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/installer/adt-installer_1.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/installer/adt-installer_1.0.bb')
-rw-r--r--meta/recipes-devtools/installer/adt-installer_1.0.bb97
1 files changed, 97 insertions, 0 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb b/meta/recipes-devtools/installer/adt-installer_1.0.bb
new file mode 100644
index 0000000..6380b6c
--- /dev/null
+++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
@@ -0,0 +1,97 @@
1# 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 = ""
32
33PR = "r11"
34
35ADT_DEPLOY = "${TMPDIR}/deploy/sdk/"
36ADT_DIR = "${WORKDIR}/adt-installer/"
37YOCTOADT_VERSION = "${SDK_VERSION}"
38S = "${WORKDIR}/opkg-${PV}"
39
40PV = "0.2.0"
41SRC_URI = "https://opkg.googlecode.com/files/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] = "e8a6fd34fb2529191fe09dc14c934cc3"
54SRC_URI[sha256sum] = "81b7055eb4c12c5e5652339305c9236cf357890717d4bea063963f3f434d966f"
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#YOCTOADT_VERSION#${SDK_VERSION}#' ${ADT_DIR}/adt_installer.conf
78 sed -i -e 's#ADTREPO#${ADTREPO}#' ${ADT_DIR}/adt_installer.conf
79 echo 'SDK_VENDOR=${SDK_VENDOR}' >> ${ADT_DIR}/scripts/data_define
80 echo 'DEFAULT_INSTALL_FOLDER=${SDKPATH}' >> ${ADT_DIR}/scripts/data_define
81 cp ${COREBASE}/scripts/relocate_sdk.py ${ADT_DIR}/scripts/
82 tar cfj adt_installer.tar.bz2 adt-installer
83 cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY}
84}
85
86do_populate_adt[nostamp] = "1"
87do_configure[noexec] = "1"
88do_compile[noexec] = "1"
89do_package[noexec] = "1"
90do_packagedata[noexec] = "1"
91do_package_write[noexec] = "1"
92do_package_write_ipk[noexec] = "1"
93do_package_write_rpm[noexec] = "1"
94do_package_write_deb[noexec] = "1"
95do_poplulate_sysroot[noexec] = "1"
96
97addtask populate_adt before do_build after do_install