update macro
[scm/bb/tizen.git] / yocto-Tizen-Generic-Manager / checkout_core-project
1 #!/bin/bash
2 #
3 # Copyright 2013, Intel Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; version 2 of the License.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU Library General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 # native
18
19 #author: Ronan Le Martret ronan@fridu.net
20
21 source ./yocto-Tizen-Generic-Manager_conf
22 #Create or checkout project.
23 #At first the base project.
24 checkout_project ${POCKY_DIR} ${YOCTO_OPEN_TIZEN_GIT} ${YOCTO_OPEN_TIZEN_BRANCH} ${YOCTO_OPEN_TIZEN_SHA}
25
26 #add Intel BSP.
27 checkout_project ${META_INTEL_DIR} ${META_INTEL_GIT} ${META_INTEL_BRANCH} ${META_INTEL_SHA}
28
29 echo git update is over, set a build project ...
30 cd ${POCKY_DIR}
31 echo
32 echo -e "source oe-init-build-env ${BUILDIR} "
33 echo
34 source oe-init-build-env ${BUILDIR}
35 echo source ok
36 # add meta path into the bblayers.conf
37 add_meta_to_bblayers ${META_INTEL_DIR} "${BUILDPATH}/conf/bblayers.conf"
38 add_meta_to_bblayers ${META_INTEL_DIR}/meta-chiefriver "${BUILDPATH}/conf/bblayers.conf"
39
40 change_conf_default_value '#BB_NUMBER_THREADS ?= \"4\"' 'BB_NUMBER_THREADS = \"16\"' "${BUILDPATH}/conf/local.conf"
41 change_conf_default_value '#PARALLEL_MAKE ?= \"-j 4\"' 'PARALLEL_MAKE ?= \"-j 16\"' "${BUILDPATH}/conf/local.conf"
42 change_conf_default_value 'MACHINE ??= \"qemux86\"' 'MACHINE ??= \"chiefriver\"' "${BUILDPATH}/conf/local.conf"
43 change_conf_default_value '#DL_DIR ?= \"\${TOPDIR}\/downloads\"' 'DL_DIR ?= \"'${YOCTO_DOWNLOAD}'\"' "${BUILDPATH}/conf/local.conf"
44
45 insert_conf 'MACHINE_FEATURES_append = " acpi alsa apm bluetooth ext2 keyboard pci pcmcia screen touchscreen usbgadget usbhost wifi"' "${BUILDPATH}/conf/local.conf"
46 insert_conf 'IMAGE_INSTALL_append = " mesa-driver-i965 man man-pages sudo connman pulseaudio pulseaudio-server pulseaudio-misc links shadow"' "${BUILDPATH}/conf/local.conf"
47 insert_conf 'DISTRO_FEATURES_append = " ipsec keyboard pci pcmcia usbgadget usbhost wifi pam"' "${BUILDPATH}/conf/local.conf"
48
49 print_end_update core-image-weston