From 5bee5fc0ca190dbb101f00ad4ee4c2bf5f7af96a Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Wed, 13 Mar 2013 02:19:32 +0900 Subject: [PATCH] Tizen 2.1 base --- AUTHORS | 5 + LICENSE.APLv2 | 202 ++++++++++ NOTICE | 3 + README | 39 ++ make-sdk-device-rs.sh | 90 +++++ make-sdk-emulator-rs.sh | 90 +++++ make_rootstrap.sh | 592 +++++++++++++++++++++++++++++ package/build.linux | 96 +++++ package/pkginfo.manifest | 27 ++ package/pkginfo.manifest.local | 25 ++ package/rs-device-2.0.cpp.install.linux | 4 + package/rs-device-2.0.cpp.remove.linux | 3 + package/rs-device-2.0.cpp.remove.windows | 4 + package/rs-emulator-2.0.cpp.install.linux | 4 + package/rs-emulator-2.0.cpp.remove.linux | 3 + package/rs-emulator-2.0.cpp.remove.windows | 4 + tizen-device-2.0.cfg | 9 + tizen-device-2.0.cpp.dev.xml | 32 ++ tizen-device-2.0.cpp.xml | 7 + tizen-device-2.0.ks | 77 ++++ tizen-emulator-2.0.cfg | 9 + tizen-emulator-2.0.cpp.dev.xml | 32 ++ tizen-emulator-2.0.cpp.xml | 7 + tizen-emulator-2.0.ks | 77 ++++ 24 files changed, 1441 insertions(+) create mode 100644 AUTHORS create mode 100644 LICENSE.APLv2 create mode 100644 NOTICE create mode 100644 README create mode 100755 make-sdk-device-rs.sh create mode 100755 make-sdk-emulator-rs.sh create mode 100755 make_rootstrap.sh create mode 100755 package/build.linux create mode 100644 package/pkginfo.manifest create mode 100644 package/pkginfo.manifest.local create mode 100755 package/rs-device-2.0.cpp.install.linux create mode 100755 package/rs-device-2.0.cpp.remove.linux create mode 100644 package/rs-device-2.0.cpp.remove.windows create mode 100755 package/rs-emulator-2.0.cpp.install.linux create mode 100755 package/rs-emulator-2.0.cpp.remove.linux create mode 100644 package/rs-emulator-2.0.cpp.remove.windows create mode 100644 tizen-device-2.0.cfg create mode 100644 tizen-device-2.0.cpp.dev.xml create mode 100644 tizen-device-2.0.cpp.xml create mode 100644 tizen-device-2.0.ks create mode 100644 tizen-emulator-2.0.cfg create mode 100644 tizen-emulator-2.0.cpp.dev.xml create mode 100644 tizen-emulator-2.0.cpp.xml create mode 100644 tizen-emulator-2.0.ks diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..9589ae0 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,5 @@ +DongHee Yang +Taejun Ha +Jiil Hyoun +Donghyuk Yang +HyunGoo Kang diff --git a/LICENSE.APLv2 b/LICENSE.APLv2 new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE.APLv2 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..901a81c --- /dev/null +++ b/NOTICE @@ -0,0 +1,3 @@ +Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved. +Except as noted, this software is licensed under Apache License, Version 2. +Please, see the LICENSE.APLv2 file for Apache License terms and conditions. diff --git a/README b/README new file mode 100644 index 0000000..2151c4f --- /dev/null +++ b/README @@ -0,0 +1,39 @@ +rootstrap maker 사용법 +author : hyoun jiil + +rootstrap maker 는 rootstrap 을 만들기 위해 필요한 복잡한 작업에 대하여 간단한 명령으로 만들수 있도록 도와주는 프로그램 입니다. + +실행하기 전에 +Tizen SDK 가 설치되어 있어야 합니다. + +입력 +rootstrap maker 는 옵션으로 다음의 값을 받습니다. +usage : rootstrap-maker [-v package version] [-s snapshot] [-p platform version] [-o linux/windows] [-h] +-v package version: 생성할 rootstrap의 version 을 지정합니다. +-s snapshot: 사용할 snapshot 의 이름을 지정합니다. +-p platform version: rootstrap 에사용할 플랫폼의 버전을 지정합니다. +-o os: 제공하고자 하는 OS 를 지정합니다. +-h: 사용법을 보여 줍니다. + +Tizen SDK 에 rootstrap package 를 설치 할때 package version 이 설치되어 있는 버전보다 높은경우에만 설치가 가능합니다. +Tizen SDK 에 설치되어 있는 package version을 알고 싶을 때는 Tizen sdk 설치 폴더의 하위에 dev_tools/pkg-cli 를 사용해서 설치된 package version을 알아 낼 수 있습니다. + +$ ~/tizen_sdk/dev_tools/pkg-cli list-lpkg -l ~/tizen_sdk + +snapshot 은 원천서버에서 제공하는 slp2-target 의 snapshot 을 말합니다. snapshot 을 사용하지 않는 경우 현재 원천서버의 최신버전의 rootstrap 이 만들어 지게 됩니다. + +어떤 플랫폼에 기반으로 rootstrap 이 만들어 졌는지 판단하기 위해 platform version 을 사용합니다. + +os 를 지정하면 특정 os 에 설치될 루트스트랩을 만들 수 있습니다. + +출력 +arm/i386 용 rootstrap 패키지 파일 + +설치 +Tizen sdk 에 설치하기 위해서 Tizen SDK 설치폴더 하위의 dev_tools/pkg-cli 를 사용해서 인스톨을 하실 수 있습니다. + +$ ~/tizen_sdk/dev_tools/pkg-cli install-file -p ./rootstrap-device.app_0.20.4_linux.zip -l ~/tizen_sdk + +Trouble shooting +낮은 버전으로 패키지를 만들어 문제가 되는 경우 생성된 rootstrap 패키지 내의 pkginfo.manifest 파일의 version 정보를 이전 버전보다 높은 버전으로 수정하면 인스톨 할 수 있습니다. +원천 서버의 로그인 문제가 있을 수 있는데 package/build.linux 폴더의 원천서버 아이피를 single_id@ip 로 바꿔주시면 동작할것 입니다. diff --git a/make-sdk-device-rs.sh b/make-sdk-device-rs.sh new file mode 100755 index 0000000..9c61d85 --- /dev/null +++ b/make-sdk-device-rs.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +target=tizen-device-2.0 + +if [ -d $target ] +then + rm -rf $target + rm -rf $target.tar.gz* +fi + +echo start install packages +../image-creator/bin/rogen.rb -c $target.cfg +mkdir -p $target +tar xvf $target.tar.gz -C ./$target + +mv $target.tar.gz $target.tar.gz_org + +echo "make $target.tar.gz" +cd $target +tar -czf ../$target.tar.gz \ +lib/ld-*.so* \ +lib/libc-*.so* \ +lib/libc.*so* \ +lib/libgcc_s*.so* \ +lib/libm-*.so* \ +lib/libm.so* \ +lib/libpthread*.so* \ +lib/librt*.so* \ +lib/libthread_db*.so* \ +usr/lib/crt1.o \ +usr/lib/crti.o \ +usr/lib/crtn.o \ +usr/lib/gcrt1.o \ +usr/lib/libbsd-compat.a \ +usr/lib/libc_nonshared.a \ +usr/lib/libc.so \ +usr/lib/libg.a \ +usr/lib/libieee.a \ +usr/lib/libmcheck.a \ +usr/lib/libm.so \ +usr/lib/libpthread_nonshared.a \ +usr/lib/libpthread.so \ +usr/lib/librpcsvc.a \ +usr/lib/librt.so \ +usr/lib/libstdc++.so.6* \ +usr/lib/libthread_db.so \ +usr/lib/Mcrt1.o \ +usr/lib/Scrt1.o \ +usr/lib/libxml2.so* \ +usr/lib/libopenal.so* \ +usr/lib/osp/* \ +usr/include/* \ +usr/include/AL/* \ +usr/include/arpa/* \ +usr/include/asm/* \ +usr/include/asm-generic/* \ +usr/include/bits/* \ +usr/include/c++/* \ +usr/include/dbus-1.0/* \ +usr/include/dlog/* \ +usr/include/gio-unix-2.0/* \ +usr/include/glib-2.0/* \ +usr/include/gnu/* \ +usr/include/libxml2/* \ +usr/include/linux/* \ +usr/include/mtd/* \ +usr/include/net/* \ +usr/include/netash/* \ +usr/include/netatalk/* \ +usr/include/netax25/* \ +usr/include/neteconet/* \ +usr/include/netinet/* \ +usr/include/netipx/* \ +usr/include/netiucv/* \ +usr/include/netpacket/* \ +usr/include/netrom/* \ +usr/include/netrose/* \ +usr/include/nfs/* \ +usr/include/protocols/* \ +usr/include/rdma/* \ +usr/include/rpc/* \ +usr/include/rpcsvc/* \ +usr/include/scsi/* \ +usr/include/sound/* \ +usr/include/sys/* \ +usr/include/video/* \ +usr/include/xen/* \ + +echo "==================================================" +echo "Finished to make a rootstrap for buidling emulator" diff --git a/make-sdk-emulator-rs.sh b/make-sdk-emulator-rs.sh new file mode 100755 index 0000000..d13aa96 --- /dev/null +++ b/make-sdk-emulator-rs.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +target=tizen-emulator-2.0 + +if [ -d $target ] +then + rm -rf $target + rm -rf $target.tar.gz* +fi + +echo start install packages +../image-creator/bin/rogen.rb -c $target.cfg +mkdir -p $target +tar xvf $target.tar.gz -C ./$target + +mv $target.tar.gz $target.tar.gz_org + +echo "make $target.tar.gz" +cd $target +tar -czf ../$target.tar.gz \ +lib/ld-*.so* \ +lib/libc-*.so* \ +lib/libc.*so* \ +lib/libgcc_s*.so* \ +lib/libm-*.so* \ +lib/libm.so* \ +lib/libpthread*.so* \ +lib/librt*.so* \ +lib/libthread_db*.so* \ +usr/lib/crt1.o \ +usr/lib/crti.o \ +usr/lib/crtn.o \ +usr/lib/gcrt1.o \ +usr/lib/libbsd-compat.a \ +usr/lib/libc_nonshared.a \ +usr/lib/libc.so \ +usr/lib/libg.a \ +usr/lib/libieee.a \ +usr/lib/libmcheck.a \ +usr/lib/libm.so \ +usr/lib/libpthread_nonshared.a \ +usr/lib/libpthread.so \ +usr/lib/librpcsvc.a \ +usr/lib/librt.so \ +usr/lib/libstdc++.so.6* \ +usr/lib/libthread_db.so \ +usr/lib/Mcrt1.o \ +usr/lib/Scrt1.o \ +usr/lib/libxml2.so* \ +usr/lib/libopenal.so* \ +usr/lib/osp/* \ +usr/include/* \ +usr/include/AL/* \ +usr/include/arpa/* \ +usr/include/asm/* \ +usr/include/asm-generic/* \ +usr/include/bits/* \ +usr/include/c++/* \ +usr/include/dbus-1.0/* \ +usr/include/dlog/* \ +usr/include/gio-unix-2.0/* \ +usr/include/glib-2.0/* \ +usr/include/gnu/* \ +usr/include/libxml2/* \ +usr/include/linux/* \ +usr/include/mtd/* \ +usr/include/net/* \ +usr/include/netash/* \ +usr/include/netatalk/* \ +usr/include/netax25/* \ +usr/include/neteconet/* \ +usr/include/netinet/* \ +usr/include/netipx/* \ +usr/include/netiucv/* \ +usr/include/netpacket/* \ +usr/include/netrom/* \ +usr/include/netrose/* \ +usr/include/nfs/* \ +usr/include/protocols/* \ +usr/include/rdma/* \ +usr/include/rpc/* \ +usr/include/rpcsvc/* \ +usr/include/scsi/* \ +usr/include/sound/* \ +usr/include/sys/* \ +usr/include/video/* \ +usr/include/xen/* \ + +echo "==================================================" +echo "Finished to make a rootstrap for buidling emulator" diff --git a/make_rootstrap.sh b/make_rootstrap.sh new file mode 100755 index 0000000..1e08c1f --- /dev/null +++ b/make_rootstrap.sh @@ -0,0 +1,592 @@ +#!/bin/bash + +check_error() +{ + if [ "$1" -ne "0" ]; then + echo "ERROR : $2 - exit code ($1) " + exit $1 + fi +} + +print_help() +{ + echo "Usage : $0 [snapshot]" +} + +if [ -z $1 ]; then + print_help + exit 1 +fi + +current_dir=$PWD +snapshot_id=$1 + +## ============================================================================ +## Read the url of repository for device rootstrap +## ============================================================================ +echo "Change snapshot id of device rootstrap" +wget -q http://165.213.148.151/images/$snapshot_id/images/U1/U1-$snapshot_id.ks +check_error $? "Fail to wget for ks file" + +while read line +do + repo_line=`echo $line | awk '{print $1}'` + if [ "$repo_line" = "repo" ] + then + repo1="$line" + read line; repo2="$line" + read line; repo3="$line" + break + fi +done < U1-$snapshot_id.ks +rm -f U1-$snapshot_id.ks + +tmp=`echo $repo1 | awk '{print $3}'` +url1=`echo $tmp | awk -F= '{print $2}'` +tmp=`echo $repo2 | awk '{print $3}'` +url2=`echo $tmp | awk -F= '{print $2}'` +tmp=`echo $repo3 | awk '{print $3}'` +url3=`echo $tmp | awk -F= '{print $2}'` + +## ============================================================================ +## Download packages for device rootstrap +## ============================================================================ +wget -r -l1 -A\*eglibc\*.rpm ${url1}armv7l/ +wget -r -l1 -A\*libstdc++\*.rpm ${url1}armv7l/ +wget -r -l1 -A\*libxml2\*.rpm ${url1}armv7l/ +wget -r -l1 -A\*osp-foundation\*.rpm ${url3}armv7l/ +wget -r -l1 -A\*osp-face\*.rpm ${url3}armv7l/ +wget -r -l1 -A\*osp-locations-services\*.rpm ${url3}armv7l/ +wget -r -l1 -A\*osp-compat\*.rpm ${url3}armv7l/ +wget -r -l1 -A\*openal-soft\*.rpm ${url3}armv7l/ +wget -r -l1 -A\*freealut\*.rpm ${url3}armv7l/ + +mkdir -p binary_arm + +path=`echo $url1 | awk -F// '{print $2}'` +cp ${path}armv7l/* binary_arm/ + +path=`echo $url3 | awk -F// '{print $2}'` +cp ${path}armv7l/* binary_arm/ + +path2=`echo $path | awk -F/ '{print $1}'` +rm -rf ${path2} + +## ============================================================================ +## Read the url of repository for emulator rootstrap +## ============================================================================ +echo "Change snapshot id of emulator rootstrap" +wget -q http://165.213.148.151/images/$snapshot_id/images/EMULATOR/EMULATOR-$snapshot_id.ks +check_error $? "Fail to wget for ks file" + +while read line +do + repo_line=`echo $line | awk '{print $1}'` + if [ "$repo_line" = "repo" ] + then + repo1=$line + read line; repo2=$line + read line; repo3=$line + break + fi +done < EMULATOR-$snapshot_id.ks +rm -f EMULATOR-$snapshot_id.ks + +tmp=`echo $repo1 | awk '{print $3}'` +url1=`echo $tmp | awk -F= '{print $2}'` +tmp=`echo $repo2 | awk '{print $3}'` +url2=`echo $tmp | awk -F= '{print $2}'` +tmp=`echo $repo3 | awk '{print $3}'` +url3=`echo $tmp | awk -F= '{print $2}'` + +## ============================================================================ +## Download packages for emulator rootstrap +## ============================================================================ +wget -r -l1 -A\*eglibc\*.rpm ${url1}i686/ +wget -r -l1 -A\*libstdc++\*.rpm ${url1}i586/ +wget -r -l1 -A\*libxml2\*.rpm ${url1}i586/ +wget -r -l1 -A\*osp-foundation\*.rpm ${url3}i586/ +wget -r -l1 -A\*osp-face\*.rpm ${url3}i586/ +wget -r -l1 -A\*osp-locations-services\*.rpm ${url3}i586/ +wget -r -l1 -A\*osp-compat\*.rpm ${url3}i586/ +wget -r -l1 -A\*openal-soft\*.rpm ${url3}i586/ +wget -r -l1 -A\*freealut*.rpm ${url3}i586/ + +mkdir -p binary_i586 + +path=`echo $url1 | awk -F// '{print $2}'` +cp ${path}i586/* binary_i586/ +cp ${path}i686/* binary_i586/ + +path=`echo $url3 | awk -F// '{print $2}'` +cp ${path}i586/* binary_i586/ + +path2=`echo $path | awk -F/ '{print $1}'` +rm -rf ${path2} + +## ============================================================================ +## Unpack packages for device rootstrap +## ============================================================================ +cd binary_arm +for pkg in `ls` +do + echo $pkg + rpm2cpio $pkg | cpio -idm +done + +## ============================================================================ +## Copy debug so for string value problem during debugging +## ============================================================================ +cp usr/lib/osp/debug/libosp* usr/lib/osp/ + +## ============================================================================ +## To remove warning message during link +## ============================================================================ +for i in `find -name "*.so"` +do + ${current_dir}/../rootstrap-creator/bin/postlinker $i +done + +tar -czf ./rs-device-2.0.tar.gz \ +lib/libanl*.so* \ +lib/libresolv*.so* \ +lib/libBrokenLocale*.so* \ +lib/libnss_nisplus*.so* \ +lib/libnss_dns*.so* \ +lib/libnss_hesiod*.so* \ +lib/libnss_nis*.so* \ +lib/libnss_files*.so* \ +lib/libcrypt*.so* \ +lib/libutil*.so* \ +lib/libnss_compat*.so* \ +lib/libnsl*.so* \ +lib/libcidn*.so* \ +lib/ld-*.so* \ +lib/libc-*.so* \ +lib/libc.*so* \ +lib/libm-*.so* \ +lib/libm.so* \ +lib/libpthread*.so* \ +lib/librt*.so* \ +lib/libthread_db*.so* \ +lib/libdl.so* \ +lib/libdl-*.so* \ +usr/lib/Mcrt1.o \ +usr/lib/Scrt1.o \ +usr/lib/crt1.o \ +usr/lib/crti.o \ +usr/lib/crtn.o \ +usr/lib/gcrt1.o \ +usr/lib/libBrokenLocale.so* \ +usr/lib/libanl.so* \ +usr/lib/libbsd-compat.a \ +usr/lib/libbsd.a \ +usr/lib/libc.so* \ +usr/lib/libc_nonshared.a \ +usr/lib/libc_pic/sofini.o \ +usr/lib/libc_pic/soinit.o \ +usr/lib/libcidn.so* \ +usr/lib/libcrypt.so* \ +usr/lib/libdl.so* \ +usr/lib/libg.a \ +usr/lib/libieee.a \ +usr/lib/libm.so* \ +usr/lib/libmcheck.a \ +usr/lib/libnsl.so* \ +usr/lib/libnss_compat.so* \ +usr/lib/libnss_dns.so* \ +usr/lib/libnss_files.so* \ +usr/lib/libnss_hesiod.so* \ +usr/lib/libnss_nis.so* \ +usr/lib/libnss_nisplus.so* \ +usr/lib/libpthread.so* \ +usr/lib/libpthread_nonshared.a \ +usr/lib/libresolv.so* \ +usr/lib/librpcsvc.a \ +usr/lib/librt.so* \ +usr/lib/libthread_db.so* \ +usr/lib/libutil.so* \ +usr/lib/libalut.so* \ +usr/lib/libstdc++.so* \ +usr/lib/gcc/armv7l-tizen-linux-gnueabi/4.5.3/libstdc++.a \ +usr/lib/gcc/armv7l-tizen-linux-gnueabi/4.5.3/libstdc++.so* \ +usr/lib/gcc/armv7l-tizen-linux-gnueabi/4.5.3/libsupc++.a \ +usr/lib/osp/*so* \ +usr/lib/libxml2.so* \ +usr/include/aio.h \ +usr/include/aliases.h \ +usr/include/alloca.h \ +usr/include/a.out.h \ +usr/include/argp.h \ +usr/include/argz.h \ +usr/include/ar.h \ +usr/include/assert.h \ +usr/include/byteswap.h \ +usr/include/complex.h \ +usr/include/cpio.h \ +usr/include/crypt.h \ +usr/include/ctype.h \ +usr/include/dirent.h \ +usr/include/dlfcn.h \ +usr/include/elf.h \ +usr/include/endian.h \ +usr/include/envz.h \ +usr/include/err.h \ +usr/include/errno.h \ +usr/include/error.h \ +usr/include/execinfo.h \ +usr/include/fcntl.h \ +usr/include/features.h \ +usr/include/fenv.h \ +usr/include/fmtmsg.h \ +usr/include/fnmatch.h \ +usr/include/fpu_control.h \ +usr/include/fstab.h \ +usr/include/fts.h \ +usr/include/ftw.h \ +usr/include/_G_config.h \ +usr/include/gconv.h \ +usr/include/getopt.h \ +usr/include/glob.h \ +usr/include/gnu-versions.h \ +usr/include/grp.h \ +usr/include/gshadow.h \ +usr/include/iconv.h \ +usr/include/ieee754.h \ +usr/include/ifaddrs.h \ +usr/include/inttypes.h \ +usr/include/langinfo.h \ +usr/include/lastlog.h \ +usr/include/libgen.h \ +usr/include/libintl.h \ +usr/include/libio.h \ +usr/include/limits.h \ +usr/include/link.h \ +usr/include/locale.h \ +usr/include/malloc.h \ +usr/include/math.h \ +usr/include/mcheck.h \ +usr/include/memory.h \ +usr/include/mntent.h \ +usr/include/monetary.h \ +usr/include/mqueue.h \ +usr/include/netdb.h \ +usr/include/nl_types.h \ +usr/include/nss.h \ +usr/include/obstack.h \ +usr/include/paths.h \ +usr/include/poll.h \ +usr/include/printf.h \ +usr/include/pthread.h \ +usr/include/pty.h \ +usr/include/pwd.h \ +usr/include/re_comp.h \ +usr/include/regex.h \ +usr/include/regexp.h \ +usr/include/resolv.h \ +usr/include/sched.h \ +usr/include/search.h \ +usr/include/semaphore.h \ +usr/include/setjmp.h \ +usr/include/sgtty.h \ +usr/include/shadow.h \ +usr/include/signal.h \ +usr/include/spawn.h \ +usr/include/stab.h \ +usr/include/stdint.h \ +usr/include/stdio_ext.h \ +usr/include/stdio.h \ +usr/include/stdlib.h \ +usr/include/string.h \ +usr/include/strings.h \ +usr/include/stropts.h \ +usr/include/syscall.h \ +usr/include/sysexits.h \ +usr/include/syslog.h \ +usr/include/tar.h \ +usr/include/termio.h \ +usr/include/termios.h \ +usr/include/tgmath.h \ +usr/include/thread_db.h \ +usr/include/time.h \ +usr/include/ttyent.h \ +usr/include/ucontext.h \ +usr/include/ulimit.h \ +usr/include/unistd.h \ +usr/include/ustat.h \ +usr/include/utime.h \ +usr/include/utmp.h \ +usr/include/utmpx.h \ +usr/include/values.h \ +usr/include/wait.h \ +usr/include/wchar.h \ +usr/include/wctype.h \ +usr/include/wordexp.h \ +usr/include/xlocale.h \ +usr/include/AL/* \ +usr/include/arpa/* \ +usr/include/bits/* \ +usr/include/c++/* \ +usr/include/gnu/* \ +usr/include/libxml2/libxml/* \ +usr/include/net/* \ +usr/include/netash/* \ +usr/include/netatalk/* \ +usr/include/netax25/* \ +usr/include/neteconet/* \ +usr/include/netinet/* \ +usr/include/netipx/* \ +usr/include/netiucv/* \ +usr/include/netpacket/* \ +usr/include/netrom/* \ +usr/include/netrose/* \ +usr/include/nfs/* \ +usr/include/osp/* \ +usr/include/protocols/* \ +usr/include/rpc/* \ +usr/include/rpcsvc/* \ +usr/include/scsi/* \ +usr/include/sys/* + +cp rs-device-2.0.tar.gz ${current_dir}/ +cd ${current_dir} +rm -rf ${current_dir}/binary_arm + +echo "========================================================================================" +echo "Finished to make a rootstrap for buidling device" +echo "Generated file is rs-device-2.0.tar.gz" +echo "========================================================================================" + +## ============================================================================ +## Unpack packages for emulator rootstrap +## ============================================================================ +cd ${current_dir}/binary_i586 +for pkg in `ls` +do + echo $pkg + rpm2cpio $pkg | cpio -idm +done + +## ============================================================================ +## Copy debug so for string value problem during debugging +## ============================================================================ +cp usr/lib/osp/debug/libosp* usr/lib/osp/ + +## ============================================================================ +## To remove warning message during link +## ============================================================================ +for i in `find -name "*.so"` +do + ${current_dir}/../rootstrap-creator/bin/postlinker $i +done + +tar -czf ./rs-emulator-2.0.tar.gz \ +lib/libanl*.so* \ +lib/libresolv*.so* \ +lib/libBrokenLocale*.so* \ +lib/libnss_nisplus*.so* \ +lib/libnss_dns*.so* \ +lib/libnss_hesiod*.so* \ +lib/libnss_nis*.so* \ +lib/libnss_files*.so* \ +lib/libcrypt*.so* \ +lib/libutil*.so* \ +lib/libnss_compat*.so* \ +lib/libnsl*.so* \ +lib/libcidn*.so* \ +lib/ld-*.so* \ +lib/libc-*.so* \ +lib/libc.*so* \ +lib/libm-*.so* \ +lib/libm.so* \ +lib/libpthread*.so* \ +lib/librt*.so* \ +lib/libthread_db*.so* \ +lib/libdl.so* \ +lib/libdl-*.so* \ +usr/lib/Mcrt1.o \ +usr/lib/Scrt1.o \ +usr/lib/crt1.o \ +usr/lib/crti.o \ +usr/lib/crtn.o \ +usr/lib/gcrt1.o \ +usr/lib/libBrokenLocale.so* \ +usr/lib/libanl.so* \ +usr/lib/libbsd-compat.a \ +usr/lib/libbsd.a \ +usr/lib/libc.so* \ +usr/lib/libc_nonshared.a \ +usr/lib/libc_pic/sofini.o \ +usr/lib/libc_pic/soinit.o \ +usr/lib/libcidn.so* \ +usr/lib/libcrypt.so* \ +usr/lib/libdl.so* \ +usr/lib/libg.a \ +usr/lib/libieee.a \ +usr/lib/libm.so* \ +usr/lib/libmcheck.a \ +usr/lib/libnsl.so* \ +usr/lib/libnss_compat.so* \ +usr/lib/libnss_dns.so* \ +usr/lib/libnss_files.so* \ +usr/lib/libnss_hesiod.so* \ +usr/lib/libnss_nis.so* \ +usr/lib/libnss_nisplus.so* \ +usr/lib/libpthread.so* \ +usr/lib/libpthread_nonshared.a \ +usr/lib/libresolv.so* \ +usr/lib/librpcsvc.a \ +usr/lib/librt.so* \ +usr/lib/libthread_db.so* \ +usr/lib/libutil.so* \ +usr/lib/libalut.so* \ +usr/lib/libstdc++.so* \ +usr/lib/gcc/i586-tizen-linux/4.5.3/libstdc++.a \ +usr/lib/gcc/i586-tizen-linux/4.5.3/libstdc++.so* \ +usr/lib/gcc/i586-tizen-linux/4.5.3/libsupc++.a \ +usr/lib/osp/*so* \ +usr/lib/libxml2.so* \ +usr/include/aio.h \ +usr/include/aliases.h \ +usr/include/alloca.h \ +usr/include/a.out.h \ +usr/include/argp.h \ +usr/include/argz.h \ +usr/include/ar.h \ +usr/include/assert.h \ +usr/include/byteswap.h \ +usr/include/complex.h \ +usr/include/cpio.h \ +usr/include/crypt.h \ +usr/include/ctype.h \ +usr/include/dirent.h \ +usr/include/dlfcn.h \ +usr/include/elf.h \ +usr/include/endian.h \ +usr/include/envz.h \ +usr/include/err.h \ +usr/include/errno.h \ +usr/include/error.h \ +usr/include/execinfo.h \ +usr/include/fcntl.h \ +usr/include/features.h \ +usr/include/fenv.h \ +usr/include/fmtmsg.h \ +usr/include/fnmatch.h \ +usr/include/fpu_control.h \ +usr/include/fstab.h \ +usr/include/fts.h \ +usr/include/ftw.h \ +usr/include/_G_config.h \ +usr/include/gconv.h \ +usr/include/getopt.h \ +usr/include/glob.h \ +usr/include/gnu-versions.h \ +usr/include/grp.h \ +usr/include/gshadow.h \ +usr/include/iconv.h \ +usr/include/ieee754.h \ +usr/include/ifaddrs.h \ +usr/include/inttypes.h \ +usr/include/langinfo.h \ +usr/include/lastlog.h \ +usr/include/libgen.h \ +usr/include/libintl.h \ +usr/include/libio.h \ +usr/include/limits.h \ +usr/include/link.h \ +usr/include/locale.h \ +usr/include/malloc.h \ +usr/include/math.h \ +usr/include/mcheck.h \ +usr/include/memory.h \ +usr/include/mntent.h \ +usr/include/monetary.h \ +usr/include/mqueue.h \ +usr/include/netdb.h \ +usr/include/nl_types.h \ +usr/include/nss.h \ +usr/include/obstack.h \ +usr/include/paths.h \ +usr/include/poll.h \ +usr/include/printf.h \ +usr/include/pthread.h \ +usr/include/pty.h \ +usr/include/pwd.h \ +usr/include/re_comp.h \ +usr/include/regex.h \ +usr/include/regexp.h \ +usr/include/resolv.h \ +usr/include/sched.h \ +usr/include/search.h \ +usr/include/semaphore.h \ +usr/include/setjmp.h \ +usr/include/sgtty.h \ +usr/include/shadow.h \ +usr/include/signal.h \ +usr/include/spawn.h \ +usr/include/stab.h \ +usr/include/stdint.h \ +usr/include/stdio_ext.h \ +usr/include/stdio.h \ +usr/include/stdlib.h \ +usr/include/string.h \ +usr/include/strings.h \ +usr/include/stropts.h \ +usr/include/syscall.h \ +usr/include/sysexits.h \ +usr/include/syslog.h \ +usr/include/tar.h \ +usr/include/termio.h \ +usr/include/termios.h \ +usr/include/tgmath.h \ +usr/include/thread_db.h \ +usr/include/time.h \ +usr/include/ttyent.h \ +usr/include/ucontext.h \ +usr/include/ulimit.h \ +usr/include/unistd.h \ +usr/include/ustat.h \ +usr/include/utime.h \ +usr/include/utmp.h \ +usr/include/utmpx.h \ +usr/include/values.h \ +usr/include/wait.h \ +usr/include/wchar.h \ +usr/include/wctype.h \ +usr/include/wordexp.h \ +usr/include/xlocale.h \ +usr/include/AL/* \ +usr/include/arpa/* \ +usr/include/bits/* \ +usr/include/c++/* \ +usr/include/gnu/* \ +usr/include/libxml2/libxml/* \ +usr/include/net/* \ +usr/include/netash/* \ +usr/include/netatalk/* \ +usr/include/netax25/* \ +usr/include/neteconet/* \ +usr/include/netinet/* \ +usr/include/netipx/* \ +usr/include/netiucv/* \ +usr/include/netpacket/* \ +usr/include/netrom/* \ +usr/include/netrose/* \ +usr/include/nfs/* \ +usr/include/osp/* \ +usr/include/protocols/* \ +usr/include/rpc/* \ +usr/include/rpcsvc/* \ +usr/include/scsi/* \ +usr/include/sys/* + +cp rs-emulator-2.0.tar.gz ${current_dir}/ +cd ${current_dir} +rm -rf ${current_dir}/binary_i586 + +echo "========================================================================================" +echo "Finished to make a rootstrap for buidling emulator" +echo "Generated file is rs-emulator-2.0.tar.gz" +echo "========================================================================================" + diff --git a/package/build.linux b/package/build.linux new file mode 100755 index 0000000..e06c84d --- /dev/null +++ b/package/build.linux @@ -0,0 +1,96 @@ +#!/bin/sh -xe + +ROOTSTRAPS_DIR=data/platforms/tizen2.0/rootstraps +PLUGINS_DIR=data/tools/smart-build-interface/plugins + +NAME_DEV=tizen-device-2.0.cpp +IMG_PATH_DEV=$SRCDIR/tizen-device-2.0.tar.gz +PKG_NAME_DEV=rs-device-2.0.cpp + +NAME_EMU=tizen-emulator-2.0.cpp +IMG_PATH_EMU=$SRCDIR/tizen-emulator-2.0.tar.gz +PKG_NAME_EMU=rs-emulator-2.0.cpp + +# clean +clean() +{ + rm -rf $SRCDIR/${NAME_DEV}_*_${TARGET_OS}.zip + rm -rf $SRCDIR/$NAME_DEV + + rm -rf $SRCDIR/${NAME_EMU}_*_${TARGET_OS}.zip + rm -rf $SRCDIR/$NAME_EMU + + rm -rf $SRCDIR/.tmp + rm -rf $SRCDIR/.tmp_img.tar +} + + +extract_windows() +{ + NAME=$1 + IMG_PATH=$2 + + rm -rf $SRCDIR/.tmp + rm -rf $SRCDIR/.tmp_img.tar + mkdir -p $SRCDIR/.tmp + tar xvf $IMG_PATH -C $SRCDIR/.tmp + cd $SRCDIR/.tmp + tar cvfh ../.tmp_img.tar * + mkdir -p $SRCDIR/$NAME/ + tar xvf $SRCDIR/.tmp_img.tar -C $SRCDIR/$NAME/ +} + +# build +build() +{ + if [ "`echo ${TARGET_OS} | grep "windows"`" ] ; then + extract_windows $NAME_DEV $IMG_PATH_DEV + extract_windows $NAME_EMU $IMG_PATH_EMU + else + cp $IMG_PATH_DEV $SRCDIR/$NAME_DEV.tar.gz + cp $IMG_PATH_EMU $SRCDIR/$NAME_EMU.tar.gz + fi +} + +install_unix() +{ + NAME=$1 + PKG_NAME=$2 + + INSTALL_DIR=$SRCDIR/package/${PKG_NAME}.package.${TARGET_OS} + mkdir -p $INSTALL_DIR/$PLUGINS_DIR + mkdir -p $INSTALL_DIR/$ROOTSTRAPS_DIR + mkdir -p $INSTALL_DIR/$ROOTSTRAPS_DIR/info + + cp $SRCDIR/$NAME.tar.gz $INSTALL_DIR/$ROOTSTRAPS_DIR + cp $SRCDIR/$NAME.xml $INSTALL_DIR/$PLUGINS_DIR + cp $SRCDIR/$NAME.dev.xml $INSTALL_DIR/$ROOTSTRAPS_DIR/info/ +} + +install_windows() +{ + NAME=$1 + PKG_NAME=$2 + + INSTALL_DIR=$SRCDIR/package/${PKG_NAME}.package.${TARGET_OS} + mkdir -p $INSTALL_DIR/$PLUGINS_DIR + mkdir -p $INSTALL_DIR/$ROOTSTRAPS_DIR/$NAME + mkdir -p $INSTALL_DIR/$ROOTSTRAPS_DIR/info + + mv $SRCDIR/$NAME $INSTALL_DIR/$ROOTSTRAPS_DIR/ + cp $SRCDIR/$NAME.xml $INSTALL_DIR/$PLUGINS_DIR + cp $SRCDIR/$NAME.dev.xml $INSTALL_DIR/$ROOTSTRAPS_DIR/info/ +} + +# install +install() +{ + if [ ${TARGET_OS_CATEGORY} = "windows" ] ; then + install_windows $NAME_DEV $PKG_NAME_DEV + install_windows $NAME_EMU $PKG_NAME_EMU + else + install_unix $NAME_DEV $PKG_NAME_DEV + install_unix $NAME_EMU $PKG_NAME_EMU + fi +} +# No more script from here diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest new file mode 100644 index 0000000..6d81a36 --- /dev/null +++ b/package/pkginfo.manifest @@ -0,0 +1,27 @@ +Source : osp-app-rootstrap +Version : 1.1.44 +Maintainer : Taejun Ha , Jiil Hyoun , Donghyuk Yang , Donghee Yang + +Package : rs-device-2.0.cpp +OS : ubuntu-32, ubuntu-64, macos-64 +Build-host-os : ubuntu-32 +Attribute : binary +Description : ARM rootstrap for app development + +Package : rs-device-2.0.cpp +OS : windows-32, windows-64 +Build-host-os : ubuntu-32 +Attribute : binary +Description : ARM rootstrap for app development + +Package : rs-emulator-2.0.cpp +OS : ubuntu-32, ubuntu-64, macos-64 +Build-host-os : ubuntu-32 +Attribute : binary +Description : I386 rootstrap for app development + +Package : rs-emulator-2.0.cpp +OS : windows-32, windows-64 +Build-host-os : ubuntu-32 +Attribute : binary +Description : I386 rootstrap for app development diff --git a/package/pkginfo.manifest.local b/package/pkginfo.manifest.local new file mode 100644 index 0000000..a59ff0a --- /dev/null +++ b/package/pkginfo.manifest.local @@ -0,0 +1,25 @@ +Include: pkginfo.manifest + +Package : rs-device-2.0.cpp +OS : ubuntu-32, ubuntu-64, macos-64 +Build-host-os : opensuse-32, ubuntu-64, opensuse-64 +Attribute : binary +Description : ARM rootstrap for app development + +Package : rs-device-2.0.cpp +OS : windows-32, windows-64 +Build-host-os : opensuse-32, ubuntu-64, opensuse-64 +Attribute : binary +Description : ARM rootstrap for app development + +Package : rs-emulator-2.0.cpp +OS : ubuntu-32, ubuntu-64, macos-64 +Build-host-os : opensuse-32, ubuntu-64, opensuse-64 +Attribute : binary +Description : I386 rootstrap for app development + +Package : rs-emulator-2.0.cpp +OS : windows-32, windows-64 +Build-host-os : opensuse-32, ubuntu-64, opensuse-64 +Attribute : binary +Description : I386 rootstrap for app development diff --git a/package/rs-device-2.0.cpp.install.linux b/package/rs-device-2.0.cpp.install.linux new file mode 100755 index 0000000..cee5f2d --- /dev/null +++ b/package/rs-device-2.0.cpp.install.linux @@ -0,0 +1,4 @@ +#!/bin/sh +cd ${INSTALLED_PATH}/platforms/tizen2.0/rootstraps +mkdir tizen-device-2.0.cpp +tar xvfz tizen-device-2.0.cpp.tar.gz -C tizen-device-2.0.cpp diff --git a/package/rs-device-2.0.cpp.remove.linux b/package/rs-device-2.0.cpp.remove.linux new file mode 100755 index 0000000..8e5726b --- /dev/null +++ b/package/rs-device-2.0.cpp.remove.linux @@ -0,0 +1,3 @@ +#!/bin/sh +rm -rf ${INSTALLED_PATH}/platforms/tizen2.0/rootstraps/tizen-device-2.0.cpp +rm -rf ${INSTALLED_PATH}/tools/smart-build-interface/plugins/tizen-device-2.0.cpp_* diff --git a/package/rs-device-2.0.cpp.remove.windows b/package/rs-device-2.0.cpp.remove.windows new file mode 100644 index 0000000..90ec9d3 --- /dev/null +++ b/package/rs-device-2.0.cpp.remove.windows @@ -0,0 +1,4 @@ +:: delims is a TAB followed by space + +SET installed_path=%INSTALLED_PATH% +DEL /Q %installed_path%\tools\smart-build-interface\plugins\tizen-device-2.0.cpp_* diff --git a/package/rs-emulator-2.0.cpp.install.linux b/package/rs-emulator-2.0.cpp.install.linux new file mode 100755 index 0000000..276048a --- /dev/null +++ b/package/rs-emulator-2.0.cpp.install.linux @@ -0,0 +1,4 @@ +#!/bin/sh +cd ${INSTALLED_PATH}/platforms/tizen2.0/rootstraps +mkdir tizen-emulator-2.0.cpp +tar xvfz tizen-emulator-2.0.cpp.tar.gz -C tizen-emulator-2.0.cpp diff --git a/package/rs-emulator-2.0.cpp.remove.linux b/package/rs-emulator-2.0.cpp.remove.linux new file mode 100755 index 0000000..bfcd0e8 --- /dev/null +++ b/package/rs-emulator-2.0.cpp.remove.linux @@ -0,0 +1,3 @@ +#!/bin/sh +rm -rf ${INSTALLED_PATH}/platforms/tizen2.0/rootstraps/tizen-emulator-2.0.cpp +rm -f ${INSTALLED_PATH}/tools/smart-build-interface/plugins/tizen-emulator-2.0.cpp_* diff --git a/package/rs-emulator-2.0.cpp.remove.windows b/package/rs-emulator-2.0.cpp.remove.windows new file mode 100644 index 0000000..2eafcab --- /dev/null +++ b/package/rs-emulator-2.0.cpp.remove.windows @@ -0,0 +1,4 @@ +:: delims is a TAB followed by space + +SET installed_path=%INSTALLED_PATH% +DEL /Q %installed_path%\tools\smart-build-interface\plugins\tizen-emulator-2.0.cpp_* diff --git a/tizen-device-2.0.cfg b/tizen-device-2.0.cfg new file mode 100644 index 0000000..603e0e3 --- /dev/null +++ b/tizen-device-2.0.cfg @@ -0,0 +1,9 @@ +name = tizen-device-2.0 +arch = armv7l +pkglist = tizen-device-2.0.ks +generator = TizenBase +controller = OBS +http_proxy = http://172.21.17.105:3128 + +default_protocol = mic +default_url = diff --git a/tizen-device-2.0.cpp.dev.xml b/tizen-device-2.0.cpp.dev.xml new file mode 100644 index 0000000..8015ecc --- /dev/null +++ b/tizen-device-2.0.cpp.dev.xml @@ -0,0 +1,32 @@ + + + /usr/include + /usr/include/osp + /usr/lib + /usr/lib/osp + libosp-appfw.so + libosp-uifw.so + libpthread.so + libosp-content.so + libosp-locations.so + libosp-telephony.so + libosp-uix.so + libosp-media.so + libosp-messaging.so + libosp-web.so + libosp-social.so + libosp-wifi.so + libosp-bluetooth.so + libosp-nfc.so + libosp-face.so + libosp-speech-tts.so + libosp-speech-stt.so + libxml2.so + OSP Libraries + + + /usr/lib/osp + libosp-compat.so + Compatable OSP Libraries for Bada 2.0 + + diff --git a/tizen-device-2.0.cpp.xml b/tizen-device-2.0.cpp.xml new file mode 100644 index 0000000..f98b8be --- /dev/null +++ b/tizen-device-2.0.cpp.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tizen-device-2.0.ks b/tizen-device-2.0.ks new file mode 100644 index 0000000..c96210e --- /dev/null +++ b/tizen-device-2.0.ks @@ -0,0 +1,77 @@ +# -*-mic2-options-*- -f raw -*-mic2-options-*- + +# +# Do not Edit! Generated by: +# kickstarter.py +# + +lang en_US.UTF-8 +keyboard us +timezone --utc America/Los_Angeles +# ROOT fs partition +part / --size=1800 --ondisk mmcblk0p --fstype=ext4 --label=platform +# DATA partition +part /opt/ --size=1500 --ondisk mmcblk0p --fstype=ext4 --label=data +# UMS partition +part /opt/media/ --size=1300 --ondisk mmcblk0p --fstype=vfat --label=ums + +bootloader --timeout=0 --append="rootdelay=5" + +desktop --autologinuser=root +user --name root --groups audio,video --password '' + +repo --name=c210-base --baseurl=http://165.213.148.149:8008/snapshots/SLPRelease_20120809.1/repos/slp-base/armv7l/packages/ --ssl_verify=no --proxy=http://172.21.17.105:3128 +repo --name=c210-system --baseurl=http://165.213.148.149:8008/snapshots/SLPRelease_20120809.1/repos/slp-system/armv7l/packages/ --save --ssl_verify=no --proxy=http://172.21.17.105:3128 +repo --name=c210-device --baseurl=http://165.213.148.149:8008/snapshots/SLPRelease_20120809.1/repos/slp-release/armv7l/packages/ --save --ssl_verify=no --proxy=http://172.21.17.105:3128 + +#repo --name=tizen_public --baseurl=http://165.213.148.149:82/TIZEN:/1.0:/Public/standard +#repo --name=slp-main --baseurl=http://165.213.148.149:82/SLP:/Main/standard +#repo --name=slp-bootstrap --baseurl=http://165.213.148.149:82/SLP:/Bootstrap/standard + +%packages +-fuse +-libfuse +-libsqlfs +-smack +-insserv +-sysv-rc +-sysvinit-utils +-initscripts + +-coreutils +-autoconf +-automake +-intltool +-gzip +-grep +-zless +busybox + +passwd +filesystem +zypper +#add your packages +eglibc-devel +eglibc-headers +libstdc++-devel +libwbxml2-devel +osp-foundation-devel +osp-face-devel +osp-locations-services-devel +openal-soft-devel + +%end + +%pre + +%end + + +%post + + +%end + +%post --nochroot + +%end diff --git a/tizen-emulator-2.0.cfg b/tizen-emulator-2.0.cfg new file mode 100644 index 0000000..7eb796b --- /dev/null +++ b/tizen-emulator-2.0.cfg @@ -0,0 +1,9 @@ +name = tizen-emulator-2.0 +arch = i686 +pkglist = tizen-emulator-2.0.ks +generator = TizenBase +controller = OBS +http_proxy = + +default_protocol = mic +default_url = diff --git a/tizen-emulator-2.0.cpp.dev.xml b/tizen-emulator-2.0.cpp.dev.xml new file mode 100644 index 0000000..8015ecc --- /dev/null +++ b/tizen-emulator-2.0.cpp.dev.xml @@ -0,0 +1,32 @@ + + + /usr/include + /usr/include/osp + /usr/lib + /usr/lib/osp + libosp-appfw.so + libosp-uifw.so + libpthread.so + libosp-content.so + libosp-locations.so + libosp-telephony.so + libosp-uix.so + libosp-media.so + libosp-messaging.so + libosp-web.so + libosp-social.so + libosp-wifi.so + libosp-bluetooth.so + libosp-nfc.so + libosp-face.so + libosp-speech-tts.so + libosp-speech-stt.so + libxml2.so + OSP Libraries + + + /usr/lib/osp + libosp-compat.so + Compatable OSP Libraries for Bada 2.0 + + diff --git a/tizen-emulator-2.0.cpp.xml b/tizen-emulator-2.0.cpp.xml new file mode 100644 index 0000000..d5486b9 --- /dev/null +++ b/tizen-emulator-2.0.cpp.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tizen-emulator-2.0.ks b/tizen-emulator-2.0.ks new file mode 100644 index 0000000..890e586 --- /dev/null +++ b/tizen-emulator-2.0.ks @@ -0,0 +1,77 @@ +# -*-mic2-options-*- -f raw -*-mic2-options-*- + +# +# Do not Edit! Generated by: +# kickstarter.py +# + +lang en_US.UTF-8 +keyboard us +timezone --utc America/Los_Angeles +# ROOT fs partition +part / --size=1800 --ondisk mmcblk0p --fstype=ext4 --label=platform +# DATA partition +part /opt/ --size=1500 --ondisk mmcblk0p --fstype=ext4 --label=data +# UMS partition +part /opt/media/ --size=1300 --ondisk mmcblk0p --fstype=vfat --label=ums + +bootloader --timeout=0 --append="rootdelay=5" + +desktop --autologinuser=root +user --name root --groups audio,video --password '' + +repo --name=c210-base --baseurl=http://165.213.148.149:8008/snapshots/SLPRelease_20120809.1/repos/slp-base/ia32/packages/ --ssl_verify=no --proxy=http://172.21.17.105:3128 +repo --name=c210-system --baseurl=http://165.213.148.149:8008/snapshots/SLPRelease_20120809.1/repos/slp-system/ia32/packages/ --save --ssl_verify=no --proxy=http://172.21.17.105:3128 +repo --name=c210-device --baseurl=http://165.213.148.149:8008/snapshots/SLPRelease_20120809.1/repos/slp-release/ia32/packages/ --save --ssl_verify=no --proxy=http://172.21.17.105:3128 + +#repo --name=tizen_public --baseurl=http://165.213.148.149:82/TIZEN:/1.0:/Public/standard --proxy=http://172.21.17.105:3128 +#repo --name=slp-main --baseurl=http://165.213.148.149:82/SLP:/Main/standard --proxy=http://172.21.17.105:3128 +#repo --name=slp-bootstrap --baseurl=http://165.213.148.149:82/SLP:/Bootstrap/standard --proxy=http://172.21.17.105:3128 + +%packages +-fuse +-libfuse +-libsqlfs +-smack +-insserv +-sysv-rc +-sysvinit-utils +-initscripts + +-coreutils +-autoconf +-automake +-intltool +-gzip +-grep +-zless +busybox + +passwd +filesystem +zypper +#add your packages +eglibc-devel +eglibc-headers +libstdc++-devel +libwbxml2-devel +osp-foundation-devel +osp-face-devel +osp-locations-services-devel +openal-soft-devel + +%end + +%pre + +%end + + +%post + + +%end + +%post --nochroot + +%end -- 2.7.4