meta-digi: update config templates for yocto 1.6

Codename not known at the moment

https://jira.digi.com/browse/DEL-996

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-03-13 12:16:46 +01:00
parent 5f5d88e853
commit b940f25eee
5 changed files with 76 additions and 13 deletions

View File

@ -19,11 +19,17 @@
# #
#BB_NUMBER_THREADS ?= "4" #BB_NUMBER_THREADS ?= "4"
# #
# Default to setting automatically based on cpu count
BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
#
# The second option controls how many processes make should run in parallel when # The second option controls how many processes make should run in parallel when
# running compile tasks: # running compile tasks:
# #
#PARALLEL_MAKE ?= "-j 4" #PARALLEL_MAKE ?= "-j 4"
# #
# Default to setting automatically based on cpu count
PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
#
# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
# be appropriate for example. # be appropriate for example.
@ -132,9 +138,9 @@ PACKAGE_CLASSES ?= "package_ipk"
# #
# SDK/ADT target architecture # SDK/ADT target architecture
# #
# This variable specified the architecture to build SDK/ADT items for and means # This variable specifies the architecture to build SDK/ADT items for and means
# you can build the SDK packages for architectures other than the machine you are # you can build the SDK packages for architectures other than the machine you are
# running the build on (i.e. building i686 packages on an x86_64 host._ # running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686 and x86_64 # Supported values are i686 and x86_64
#SDKMACHINE ?= "i686" #SDKMACHINE ?= "i686"
@ -237,6 +243,17 @@ BB_DISKMON_DIRS = "\
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
#file://.* file:///some/local/dir/sstate/PATH" #file://.* file:///some/local/dir/sstate/PATH"
#
# Qemu configuration
#
# By default qemu will build with a builtin VNC server where graphical output can be
# seen. The two lines below enable the SDL backend too. This assumes there is a
# libsdl library available on your build system.
PACKAGECONFIG_pn-qemu-native = "sdl"
ASSUME_PROVIDED += "libsdl-native"
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.

View File

@ -19,11 +19,17 @@
# #
#BB_NUMBER_THREADS ?= "4" #BB_NUMBER_THREADS ?= "4"
# #
# Default to setting automatically based on cpu count
BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
#
# The second option controls how many processes make should run in parallel when # The second option controls how many processes make should run in parallel when
# running compile tasks: # running compile tasks:
# #
#PARALLEL_MAKE ?= "-j 4" #PARALLEL_MAKE ?= "-j 4"
# #
# Default to setting automatically based on cpu count
PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
#
# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
# be appropriate for example. # be appropriate for example.
@ -132,9 +138,9 @@ PACKAGE_CLASSES ?= "package_ipk"
# #
# SDK/ADT target architecture # SDK/ADT target architecture
# #
# This variable specified the architecture to build SDK/ADT items for and means # This variable specifies the architecture to build SDK/ADT items for and means
# you can build the SDK packages for architectures other than the machine you are # you can build the SDK packages for architectures other than the machine you are
# running the build on (i.e. building i686 packages on an x86_64 host._ # running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686 and x86_64 # Supported values are i686 and x86_64
#SDKMACHINE ?= "i686" #SDKMACHINE ?= "i686"
@ -237,6 +243,17 @@ BB_DISKMON_DIRS = "\
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
#file://.* file:///some/local/dir/sstate/PATH" #file://.* file:///some/local/dir/sstate/PATH"
#
# Qemu configuration
#
# By default qemu will build with a builtin VNC server where graphical output can be
# seen. The two lines below enable the SDL backend too. This assumes there is a
# libsdl library available on your build system.
PACKAGECONFIG_pn-qemu-native = "sdl"
ASSUME_PROVIDED += "libsdl-native"
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.

View File

@ -19,11 +19,17 @@
# #
#BB_NUMBER_THREADS ?= "4" #BB_NUMBER_THREADS ?= "4"
# #
# Default to setting automatically based on cpu count
BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
#
# The second option controls how many processes make should run in parallel when # The second option controls how many processes make should run in parallel when
# running compile tasks: # running compile tasks:
# #
#PARALLEL_MAKE ?= "-j 4" #PARALLEL_MAKE ?= "-j 4"
# #
# Default to setting automatically based on cpu count
PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
#
# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
# be appropriate for example. # be appropriate for example.
@ -132,9 +138,9 @@ PACKAGE_CLASSES ?= "package_ipk"
# #
# SDK/ADT target architecture # SDK/ADT target architecture
# #
# This variable specified the architecture to build SDK/ADT items for and means # This variable specifies the architecture to build SDK/ADT items for and means
# you can build the SDK packages for architectures other than the machine you are # you can build the SDK packages for architectures other than the machine you are
# running the build on (i.e. building i686 packages on an x86_64 host._ # running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686 and x86_64 # Supported values are i686 and x86_64
#SDKMACHINE ?= "i686" #SDKMACHINE ?= "i686"
@ -237,6 +243,17 @@ BB_DISKMON_DIRS = "\
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
#file://.* file:///some/local/dir/sstate/PATH" #file://.* file:///some/local/dir/sstate/PATH"
#
# Qemu configuration
#
# By default qemu will build with a builtin VNC server where graphical output can be
# seen. The two lines below enable the SDL backend too. This assumes there is a
# libsdl library available on your build system.
PACKAGECONFIG_pn-qemu-native = "sdl"
ASSUME_PROVIDED += "libsdl-native"
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.

View File

@ -19,11 +19,17 @@
# #
#BB_NUMBER_THREADS ?= "4" #BB_NUMBER_THREADS ?= "4"
# #
# Default to setting automatically based on cpu count
BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
#
# The second option controls how many processes make should run in parallel when # The second option controls how many processes make should run in parallel when
# running compile tasks: # running compile tasks:
# #
#PARALLEL_MAKE ?= "-j 4" #PARALLEL_MAKE ?= "-j 4"
# #
# Default to setting automatically based on cpu count
PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
#
# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
# be appropriate for example. # be appropriate for example.
@ -132,9 +138,9 @@ PACKAGE_CLASSES ?= "package_ipk"
# #
# SDK/ADT target architecture # SDK/ADT target architecture
# #
# This variable specified the architecture to build SDK/ADT items for and means # This variable specifies the architecture to build SDK/ADT items for and means
# you can build the SDK packages for architectures other than the machine you are # you can build the SDK packages for architectures other than the machine you are
# running the build on (i.e. building i686 packages on an x86_64 host._ # running the build on (i.e. building i686 packages on an x86_64 host).
# Supported values are i686 and x86_64 # Supported values are i686 and x86_64
#SDKMACHINE ?= "i686" #SDKMACHINE ?= "i686"
@ -237,6 +243,17 @@ BB_DISKMON_DIRS = "\
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
#file://.* file:///some/local/dir/sstate/PATH" #file://.* file:///some/local/dir/sstate/PATH"
#
# Qemu configuration
#
# By default qemu will build with a builtin VNC server where graphical output can be
# seen. The two lines below enable the SDL backend too. This assumes there is a
# libsdl library available on your build system.
PACKAGECONFIG_pn-qemu-native = "sdl"
ASSUME_PROVIDED += "libsdl-native"
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.

View File

@ -71,17 +71,12 @@ do_mkproject() {
# Customize project if just created # Customize project if just created
if [ -z "${MKP_OLD_PROJECT}" ]; then if [ -z "${MKP_OLD_PROJECT}" ]; then
NCPU="$(grep -c processor /proc/cpuinfo)"
chmod 644 ${MKP_PROJECTPATH}/conf/bblayers.conf ${MKP_PROJECTPATH}/conf/local.conf chmod 644 ${MKP_PROJECTPATH}/conf/bblayers.conf ${MKP_PROJECTPATH}/conf/local.conf
sed -i -e "s,##DIGIBASE##,${MKP_SCRIPTPATH}/sources,g" ${MKP_PROJECTPATH}/conf/bblayers.conf sed -i -e "s,##DIGIBASE##,${MKP_SCRIPTPATH}/sources,g" ${MKP_PROJECTPATH}/conf/bblayers.conf
sed -i -e "/^#BB_NUMBER_THREADS ?=/cBB_NUMBER_THREADS ?= \"${NCPU}\"" \
-e "/^#PARALLEL_MAKE ?=/cPARALLEL_MAKE ?= \"-j ${NCPU}\"" \
${MKP_PROJECTPATH}/conf/local.conf
if [ -n "${MKP_VARIANT+x}" ]; then if [ -n "${MKP_VARIANT+x}" ]; then
sed -i -e "/^MACHINE_VARIANT =/cMACHINE_VARIANT = \"${MKP_VARIANT}\"" \ sed -i -e "/^MACHINE_VARIANT =/cMACHINE_VARIANT = \"${MKP_VARIANT}\"" \
${MKP_PROJECTPATH}/conf/local.conf ${MKP_PROJECTPATH}/conf/local.conf
fi fi
unset NCPU
fi fi
} }