All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] ARM: zynq: add default ps7_init_gpl.c/h for Zed, MicroZed, ZC70x
Date: Sun, 12 Apr 2015 20:12:22 -0700	[thread overview]
Message-ID: <f84a4f1c-0f41-49b8-8af2-396305a4eda2@BL2FFO11FD039.protection.gbl> (raw)
In-Reply-To: <CAK7LNARuTSBUaLg2PeeJJ07pXQHAd0ejhHtkC0DQAj6gXqahoQ@mail.gmail.com>

On Mon, 2015-04-13 at 10:28AM +0900, Masahiro Yamada wrote:
> Hi S?ren,
> 
> 2015-04-12 11:45 GMT+09:00 S?ren Brinkmann <soren.brinkmann@xilinx.com>:
> 
> >>
> >> > Does this mechanism allow to build for one of the supported boards (e.g.
> >> > zc706) using custom init files? We need to maintain this capability,
> >> > IMHO, since these initfiles are generated by Xilinx tools depending on
> >> > various settings in Vivado. They can be quite different between
> >> > use-cases/applications, even when targeting the same board.
> >>
> >> Don't worry.  Custom init files are still supporte.
> >> I added CONFIG_ZYNQ_CUSTOM_INIT.
> >
> > But doesn't it cause 'multiple definition of...' like errors if I copy
> > custom ps7_init files additionally to the already present ones into the
> > source tree? Looking at the Makefile above, it seems for a "supported"
> > board, it would add <board>_hw_platform/ps7_init_gpl.o _and_
> > custom_hw_platform/ps7_init_gpl.o - both defining the same symbols. Or
> > am I missing something?
> 
> I do not think the "multiple definition" error will happen.
> 
> 
> 
> Please see the following part of my patch.
> 
> +# Copied from Xilinx SDK 2014.4
> +ps7-init-$(CONFIG_TARGET_ZYNQ_ZED) := zed_hw_platform/ps7_init_gpl.o
> +ps7-init-$(CONFIG_TARGET_ZYNQ_MICROZED) := MicroZed_hw_platform/ps7_init_gpl.o
> +ps7-init-$(CONFIG_TARGET_ZYNQ_ZC702) := ZC702_hw_platform/ps7_init_gpl.o
> +ps7-init-$(CONFIG_TARGET_ZYNQ_ZC706) := ZC706_hw_platform/ps7_init_gpl.o
> +# If you want to use customized ps7_init_gpl.c/h (or ps7_init.c/h),
> +# enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/.
> +ps7-init-$(CONFIG_ZYNQ_CUSTOM_INIT) := \
> + $(if $(wildcard $(srctree)/$(src)/custom_hw_platform/ps7_init_gpl.c), \
> + custom_hw_platform/ps7_init_gpl.o, \
> + $(if $(wildcard $(srctree)/$(src)/custom_hw_platform/ps7_init.c), \
> + custom_hw_platform/ps7_init.o custom_hw_platform/legacy.o))
> +
> 
> 
> The source files are added by ":=", not "+=".
> This is intentional.
> 
> If CONFIG_ZYNQ_CUSTOM_INIT is enabled, the files in
> custom_hw_platform/ directory
> take precedence over the default ones.

I see, that's the detail I missed :) Probably worth mentioning it in the
comment? That the CUSTOM_INIT part needs to be the last in the file?

Anyway:
Acked-by: S?ren Brinkmann <soren.brinkmann@xilinx.com>

	S?ren

      reply	other threads:[~2015-04-13  3:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 10:04 [U-Boot] [PATCH 0/2] ARM: zynq: include ps7_init_gpl.c/h of Zed, MicroZed, ZC702, ZC706 Masahiro Yamada
2015-04-09 10:04 ` [U-Boot] [PATCH 1/2] ARM: zynq: use separate configuration for ZC702 and ZC706 Masahiro Yamada
2015-04-09 10:04 ` [U-Boot] [PATCH 2/2] ARM: zynq: add default ps7_init_gpl.c/h for Zed, MicroZed, ZC70x Masahiro Yamada
2015-04-09 10:40   ` Michal Simek
2015-04-09 10:54     ` Masahiro Yamada
2015-04-11 20:42   ` Sören Brinkmann
2015-04-12  1:20     ` Masahiro Yamada
2015-04-12  2:45       ` Sören Brinkmann
2015-04-13  1:28         ` Masahiro Yamada
2015-04-13  3:12           ` Sören Brinkmann [this message]

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=f84a4f1c-0f41-49b8-8af2-396305a4eda2@BL2FFO11FD039.protection.gbl \
    --to=soren.brinkmann@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /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.