#!/bin/bash # # Copyright 2013, Intel Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # native #author: Ronan Le Martret ronan@fridu.net export CHECKOUTTIZEN=1 source ./yocto-Tizen-Generic-Manager_conf PROTODIR=${YOCTOTIZEN_DIR}/proto-meta-Tizen_generic CUR_PWD=$(pwd) echo checkout_project ${YOCTOTIZEN_DIR} ${YOCTOTIZEN_GIT} ${YOCTOTIZEN_BRANCH} ${YOCTOTIZEN_SHA} echo echo update base project echo cd ${CUR_PWD} ./checkout_core-project echo _________________________________________________________________________ echo echo config Tizen Generic on Yocto project. echo echo ____________ create spec2yocto link sudo rm -fr /usr/bin/spec2yocto sudo ln -fs ${YOCTOTIZEN_DIR}/tools/spec2yocto.py /usr/bin/spec2yocto echo ____________ create macro link sudo mkdir -p /usr/share/spec2yocto sudo rm -fr /usr/share/spec2yocto/macro sudo ln -fs ${PROTODIR}/rpm_tizen_macro /usr/share/spec2yocto/macro echo ____________ create .spec2yoctorc link rm -f ${HOME}/.spec2yoctorc ln -fs ${PROTODIR}/.spec2yoctorc ${HOME}/.spec2yoctorc echo _________________________________________________________________________ if grep -q "\${HOME}\/yoctoTizen" "${PROTODIR}/.spec2yoctorc"; then sed -i -e "s@\${HOME}\/yoctoTizen@${TOPDIR}\/yoctoTizen@g" ${PROTODIR}/.spec2yoctorc sed -e "s@\working_dir=.*@working_dir=${PROTODIR}@g" -i ${PROTODIR}/.spec2yoctorc echo good path applied \: ${TOPDIR}\/yoctoTizen else echo good path already applied to .spec2yoctorc fi add_meta_to_bblayers ${YOCTOTIZEN_DIR}/meta-tizen-generic "${BUILDPATH}/conf/bblayers.conf" print_end_update tizen-generic-core-image