All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Cochran <yocto@mindchasers.com>
To: Zhenhua Luo <zhenhua.luo@freescale.com>, meta-freescale@yoctoproject.org
Subject: Re: [PATCH 18/24] reorg the qoriq include files
Date: Fri, 25 Sep 2015 18:49:36 -0400	[thread overview]
Message-ID: <5605CF80.60506@mindchasers.com> (raw)
In-Reply-To: <1439374948-918-18-git-send-email-zhenhua.luo@freescale.com>

On 08/12/2015 06:22 AM, Zhenhua Luo wrote:
> * update qoriq-base.inc to ensure common bits of QorIQ ARM and QorIQ PPC are there
> * add qoriq-ppc.inc to manage the common bits of QorIQ PPC targets
> * update the qoriq-arm.inc to ensure QorIQ ARM specific bits are there
>
> Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
> ---
>   conf/machine/include/qoriq-arm.inc  | 24 +++++++--------------
>   conf/machine/include/qoriq-base.inc | 43 +++++++++++++++----------------------
>   conf/machine/include/qoriq-ppc.inc  | 11 ++++++++++
>   3 files changed, 36 insertions(+), 42 deletions(-)
>   create mode 100644 conf/machine/include/qoriq-ppc.inc
>

[snip]

> diff --git a/conf/machine/include/qoriq-base.inc b/conf/machine/include/qoriq-base.inc
> index ed66fda..856af15 100644
> --- a/conf/machine/include/qoriq-base.inc
> +++ b/conf/machine/include/qoriq-base.inc
> @@ -1,32 +1,23 @@
> -# Provides the QorIQ common settings
>   require conf/machine/include/soc-family.inc
>
> -# providers
> -PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq"
> -PREFERRED_PROVIDER_u-boot ?= "u-boot-qoriq"
> -PREFERRED_PROVIDER_cryptodev = "cryptodev-qoriq"
> -PREFERRED_PROVIDER_cryptodev-module = "cryptodev-qoriq-module"
> -PREFERRED_PROVIDER_cryptodev-tests = "cryptodev-qoriq-tests"
> -PREFERRED_PROVIDER_openssl = "openssl-qoriq"
> -PREFERRED_PROVIDER_qemu = "qemu-qoriq"
> -PREFERRED_PROVIDER_valgrind_e500v2 = "valgrind-qoriq"
> -
> -# versions
> -PREFERRED_VERSION_qemu = "2.2.0+fsl"
> -PREFERRED_VERSION_valgrind_e500v2 = "3.8.1+fsl"
> -
> -# settings
> -MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
> -MACHINE_EXTRA_RRECOMMENDS += "udev-rules-qoriq kernel-modules"
> -MACHINEOVERRIDES .= ":qoriq-ppc"
> -
> -IMAGE_CLASSES += "image_types_uboot"
> -EXTRA_IMAGEDEPENDS += "u-boot"
> -
> +# Freescale BSP default providers
> +PREFERRED_PROVIDER_u-boot_qoriq ?= "u-boot-qoriq"
> +PREFERRED_PROVIDER_virtual/bootloader_qoriq ?= "u-boot-qoriq"
> +PREFERRED_PROVIDER_virtual/kernel_qoriq ?= "linux-qoriq"
> +PREFERRED_PROVIDER_cryptodev_qoriq = "cryptodev-qoriq"
> +PREFERRED_PROVIDER_cryptodev-module_qoriq = "cryptodev-qoriq-module"
> +PREFERRED_PROVIDER_cryptodev-tests_qoriq = "cryptodev-qoriq-tests"
> +PREFERRED_PROVIDER_openssl_qoriq = "openssl-qoriq"
> +
> +# Define the default image type
> +IMAGE_CLASSES ?= "image_types_uboot"
>   KERNEL_IMAGETYPE ?= "uImage"
>
> -SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyEHV0"
> -SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
> +MACHINE_FEATURES ?= "pci ext2 ext3 serial"
> +MACHINE_EXTRA_RRECOMMENDS ?= "udev-rules-qoriq"
> +
> +EXTRA_IMAGEDEPENDS += "u-boot cst-native"
>
> -USE_VT = "0"
> +USE_VT ?= "0"
>
> +MACHINEOVERRIDES .= ":qoriq"
> diff --git a/conf/machine/include/qoriq-ppc.inc b/conf/machine/include/qoriq-ppc.inc
> new file mode 100644
> index 0000000..b608782
> --- /dev/null
> +++ b/conf/machine/include/qoriq-ppc.inc
> @@ -0,0 +1,11 @@
> +require conf/machine/include/qoriq-base.inc
> +
> +UBOOT_ENTRYPOINT_qoriq-ppc = "0x80008000"
> +
> +MKUBIFS_ARGS_qoriq-ppc ??= "-m 512 -e 15360 -c 3600"
> +UBINIZE_ARGS_qoriq-ppc ??= "-m 512 -p 16KiB -s 512"
> +
> +SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyEHV0"
> +SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
> +
> +MACHINEOVERRIDES .= ":qoriq-ppc"
>

I don't think this is what we want since I get the following:

MACHINEOVERRIDES="e5500-64b:qoriq:t1:t1040:t1040rdb-64b:qoriq-ppc"

And this means that the generic files under meta-freescale like 
init-ifupdown/qoriq-ppc/interfaces is overriding my machine specific 
interfaces file.

I believe we want it to be like:

MACHINEOVERRIDES="e5500-64b:qoriq:qoriq-ppc:t1:t1040:t1040rdb-64b"


I propose we simplify things a bit and just do the following in 
qoriq-ppc.inc:

MACHINEOVERRIDES =. "qoriq:qoriq-ppc:"

and yank the MACHINEOVERRIDES specifier in qoriq-base.inc.  I would do 
the same sort of thing in qoriq-arm.inc.  This way, there would be less 
chance of these overrides moving around again later because their 
relocation tends to pop up as an occasional nuisance during builds.

Bob












  reply	other threads:[~2015-09-25 22:49 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 10:22 [PATCH 01/24] ipc: optimize the ipc recipes directories Zhenhua Luo
2015-08-12 10:22 ` [PATCH 02/24] merge-files: define S to fix build warning Zhenhua Luo
2015-08-12 10:22 ` [PATCH 03/24] skmm-ep: move COMPATIBLE_MACHINE to botton line Zhenhua Luo
2015-08-12 10:22 ` [PATCH 04/24] web-sysmon: add RDEPENDS and COMPATIBLE_MACHINE Zhenhua Luo
2015-08-12 10:22 ` [PATCH 05/24] asf: move RDEPENDS and add COMPATIBLE_MACHINE Zhenhua Luo
2015-08-12 10:22 ` [PATCH 06/24] ar: " Zhenhua Luo
2015-08-12 10:22 ` [PATCH 07/24] ceetm: add COMPATIBLE_MACHINE and remove unnecessary DEPENDS Zhenhua Luo
2015-08-12 10:22 ` [PATCH 08/24] linux-qoriq: unify recipe for QorIQ ARM and QorIQ PPC Zhenhua Luo
2015-09-15 17:24   ` Bob Cochran
2015-09-15 17:29     ` Otavio Salvador
2015-09-15 21:36       ` Bob Cochran
2015-09-15 21:50         ` Otavio Salvador
2015-09-15 22:56           ` Bob Cochran
2015-09-15 23:12             ` Otavio Salvador
2015-08-12 10:22 ` [PATCH 09/24] ls-debug: add recipe Zhenhua Luo
2015-08-12 10:22 ` [PATCH 10/24] lttng-modules: always do 64b build for e6500 targets Zhenhua Luo
2015-08-12 10:22 ` [PATCH 11/24] pkc-host: add COMPATIBLE_MACHINE Zhenhua Luo
2015-08-12 10:22 ` [PATCH 12/24] qoriq-perf: add recipe Zhenhua Luo
2015-08-12 10:22 ` [PATCH 13/24] catter-gather: " Zhenhua Luo
2015-08-12 10:22 ` [PATCH 14/24] skmm-host: add COMPATIBLE_MACHINE Zhenhua Luo
2015-08-12 10:22 ` [PATCH 15/24] o-seville: update COMPATIBLE_MACHINE Zhenhua Luo
2015-08-12 10:22 ` [PATCH 16/24] fsl-tlu: add recipe Zhenhua Luo
2015-08-12 10:22 ` [PATCH 17/24] u-boot-qoriq: remove redundant code Zhenhua Luo
2015-08-12 10:22 ` [PATCH 18/24] reorg the qoriq include files Zhenhua Luo
2015-09-25 22:49   ` Bob Cochran [this message]
2015-09-28 11:40     ` Otavio Salvador
2015-08-12 10:22 ` [PATCH 19/24] replace qoriq-base.inc with qoriq-ppc.inc in qoriq tune files Zhenhua Luo
2015-08-12 10:22 ` [PATCH 20/24] update machine conf of e500v2 targets Zhenhua Luo
2015-08-12 10:22 ` [PATCH 21/24] update machine conf of e500mc targets Zhenhua Luo
2015-08-12 10:22 ` [PATCH 22/24] update machine conf of e5500 targets Zhenhua Luo
2015-08-12 10:22 ` [PATCH 23/24] update machine conf of e6500 targets Zhenhua Luo
2015-08-12 10:22 ` [PATCH 24/24] update ls1021atwr machine conf Zhenhua Luo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5605CF80.60506@mindchasers.com \
    --to=yocto@mindchasers.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=zhenhua.luo@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.