diff mbox

[U-Boot] common/Makefile: Compile fdt_support is enabled in SPL

Message ID 1448541495-16079-1-git-send-email-sr@denx.de
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Stefan Roese Nov. 26, 2015, 12:38 p.m. UTC
When CONFIG_SPL_OF_TRANSLATE is enabled fdt_support.c needs to get
compiled. Otherwise fdt_translate_address() is missing which is needed
in dev_get_addr().

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
---
 common/Makefile | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Nov. 26, 2015, 5:49 p.m. UTC | #1
On 26 November 2015 at 04:38, Stefan Roese <sr@denx.de> wrote:
> When CONFIG_SPL_OF_TRANSLATE is enabled fdt_support.c needs to get
> compiled. Otherwise fdt_translate_address() is missing which is needed
> in dev_get_addr().
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  common/Makefile | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Simon Glass <sjg@chromium.org>
Tom Rini Dec. 6, 2015, 10:07 p.m. UTC | #2
On Thu, Nov 26, 2015 at 01:38:15PM +0100, Stefan Roese wrote:

> When CONFIG_SPL_OF_TRANSLATE is enabled fdt_support.c needs to get
> compiled. Otherwise fdt_translate_address() is missing which is needed
> in dev_get_addr().
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/Makefile b/common/Makefile
index d8dc892..2a1d9f8 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -227,6 +227,7 @@  ifdef CONFIG_SPL_BUILD
 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
 obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
+obj-$(CONFIG_SPL_OF_TRANSLATE) += fdt_support.o
 ifdef CONFIG_SPL_USB_HOST_SUPPORT
 obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
 obj-$(CONFIG_USB_STORAGE) += usb_storage.o