machine: remove DEFAULTTUNEs

The DEFAULTTUNE configuration should not be set at the BSP layer but in a
DISTRO layer (or a user's conf/local.conf). Remove the two DEFAULTTUNEs that
are currently in the layer and add a note in the README to inform users of
this issue and potential settings.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@collabora.com>
This commit is contained in:
Trevor Woerner 2017-02-16 22:46:23 -05:00 committed by Romain Perier
parent e50c375578
commit 2fae057dfc
3 changed files with 15 additions and 2 deletions

15
README
View File

@ -49,6 +49,7 @@ Table of Contents
I. Configure yocto/oe environment I. Configure yocto/oe environment
II. Building a second level bootloader based on kexec II. Building a second level bootloader based on kexec
III. Booting your device III. Booting your device
IV. Performance
I. Configure yocto/oe environment I. Configure yocto/oe environment
======================================== ========================================
@ -127,3 +128,17 @@ Then, plug your SDCARD into your Rockchip device and power on the board. If
everything worked fine, Petitboot should be started automatically and list all everything worked fine, Petitboot should be started automatically and list all
entries found in the configuration file. entries found in the configuration file.
IV. Performance
===============
By default a BSP layer should not be tuning a build, this is a DISTRO-level
decision. As such the default machine settings are meant to be the lowest
common denominator in order to maximize generality. If you are interested in
tweaking your build to maximize performance you can either use a DISTRO that
has these same goals, or you can add settings in your configuration files
(e.g. local.conf) as follows:
for rk3288:
DEFAULTTUNE = "cortexa17hf-neon-vfpv4"
for rk3066:
DEFAULTTUNE = "cortexa9-neon"

View File

@ -1,7 +1,6 @@
# Copyright (C) 2014 NEO-Technologies # Copyright (C) 2014 NEO-Technologies
# Released under the MIT license (see COPYING.MIT for the terms) # Released under the MIT license (see COPYING.MIT for the terms)
DEFAULTTUNE = "cortexa9-neon"
require conf/machine/include/tune-cortexa9.inc require conf/machine/include/tune-cortexa9.inc
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"

View File

@ -3,7 +3,6 @@
require conf/machine/include/tune-cortexa17.inc require conf/machine/include/tune-cortexa17.inc
DEFAULTTUNE="cortexa17-neon"
PREFERRED_PROVIDER_virtual/kernel = "linux" PREFERRED_PROVIDER_virtual/kernel = "linux"
SERIAL_CONSOLES = "115200;ttyS2" SERIAL_CONSOLES = "115200;ttyS2"
KERNEL_IMAGETYPE = "zImage" KERNEL_IMAGETYPE = "zImage"