All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Kiernan <alex.kiernan@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/5] ti: am335x: Fix build when networking is disabled
Date: Sun,  1 Apr 2018 09:22:37 +0000	[thread overview]
Message-ID: <1522574558-7445-5-git-send-email-alex.kiernan@gmail.com> (raw)
In-Reply-To: <1522574558-7445-1-git-send-email-alex.kiernan@gmail.com>

When compiling without CONFIG_CLOCK_SYNTHESIZER (which is implied by
CONFIG_DRIVER_TI_CPSW for am335x_evm), exclude the network setup for
AM335x-ICEv2 to avoid link time failures:

  board/ti/am335x/board.c:683: undefined reference to `setup_clock_synthesizer'

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---

Changes in v2: None

 board/ti/am335x/board.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index f802657..5709afb 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -563,8 +563,8 @@ void sdram_init(void)
 }
 #endif
 
-#if !defined(CONFIG_SPL_BUILD) || \
-	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
+#if defined(CONFIG_CLOCK_SYNTHESIZER) && (!defined(CONFIG_SPL_BUILD) || \
+	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)))
 static void request_and_set_gpio(int gpio, char *name, int val)
 {
 	int ret;
@@ -621,8 +621,8 @@ int board_init(void)
 	gpmc_init();
 #endif
 
-#if !defined(CONFIG_SPL_BUILD) || \
-	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
+#if defined(CONFIG_CLOCK_SYNTHESIZER) && (!defined(CONFIG_SPL_BUILD) || \
+	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)))
 	if (board_is_icev2()) {
 		int rv;
 		u32 reg;
-- 
2.7.4

  parent reply	other threads:[~2018-04-01  9:22 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-01  9:22 [U-Boot] [PATCH v2 0/5] Build AM335x when CONFIG_NET isn't defined Alex Kiernan
2018-04-01  9:22 ` [U-Boot] [PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig Alex Kiernan
2018-04-02 11:13   ` Felix Brack
2018-04-02 15:43     ` Alex Kiernan
2018-04-02 16:11       ` Felix Brack
2018-04-03  6:29         ` Alex Kiernan
2018-04-09 15:03   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-04-10  7:21     ` Felix Brack
2018-04-10  7:47       ` Alex Kiernan
2018-04-10  8:04         ` Felix Brack
2018-04-10  8:09           ` Alex Kiernan
2018-04-10  8:18             ` Felix Brack
2018-04-10 12:23       ` Tom Rini
2018-04-10 12:43         ` Felix Brack
2018-04-10 12:54           ` Tom Rini
2018-04-10 12:59             ` Felix Brack
2018-04-10 13:30               ` Tom Rini
2018-04-10 14:11                 ` Felix Brack
2018-04-10 14:16                   ` Tom Rini
2018-04-10 14:50                   ` Tom Rini
2018-04-10 15:26                     ` Felix Brack
2018-04-10 15:30                       ` Tom Rini
2018-04-10 15:38                         ` Felix Brack
2018-04-01  9:22 ` [U-Boot] [PATCH v2 2/5] ti: am335x: Fix bootargs when building without NET Alex Kiernan
2018-04-09 15:03   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-04-01  9:22 ` [U-Boot] [PATCH v2 3/5] usb: gadget: USB_ETHER requires network support Alex Kiernan
2018-04-09 15:04   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-04-01  9:22 ` Alex Kiernan [this message]
2018-04-09 15:04   ` [U-Boot] [U-Boot, v2, 4/5] ti: am335x: Fix build when networking is disabled Tom Rini
2018-04-01  9:22 ` [U-Boot] [PATCH v2 5/5] net: Move enetaddr env access code to env config instead of net config Alex Kiernan
2018-04-09 15:04   ` [U-Boot] [U-Boot, v2, " Tom Rini

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=1522574558-7445-5-git-send-email-alex.kiernan@gmail.com \
    --to=alex.kiernan@gmail.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.