summaryrefslogtreecommitdiff
path: root/spl/Makefile
diff options
context:
space:
mode:
authorJoel Fernandes <joelf@ti.com>2013-08-19 16:14:14 +0800
committerTom Rini <trini@ti.com>2013-08-19 18:05:19 -0400
commit39bc12ddc36c9e30199471da0f3a929b178a04b2 (patch)
tree178564f4441074ece7e8647e53bed2a769aadca2 /spl/Makefile
parent40a60c6e8bdd00330310eaa351c9391e74d0bc2c (diff)
downloadu-boot-imx-39bc12ddc36c9e30199471da0f3a929b178a04b2.zip
u-boot-imx-39bc12ddc36c9e30199471da0f3a929b178a04b2.tar.gz
u-boot-imx-39bc12ddc36c9e30199471da0f3a929b178a04b2.tar.bz2
SPL: Makefile: Build a separate autoconf.mk for SPL
SPL defines CONFIG_SPL_BUILD but this does not percolate to the autoconf.mk Makefile. As a result the build breaks when CONFIG_SPL_BUILD is used in the board-specific include header file. With this, there is a possibility of having a CONFIG option defined in the header file but not defined in the Makefile causing all kinds of build failure and problems. It also messes things for up, for example, when one might want to undefine options to keep the SPL small and doesn't want to be stuck with the CONFIG options used for U-boot. Lastly, this also avoids defining special CONFIG_SPL_ variables for cases where some options are required in U-boot but not in SPL. We add a spl-autoconf.mk rule that is generated for SPL with the CONFIG_SPL_BUILD flag and conditionally include it for SPL builds. Signed-off-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Ying Zhang <b40530@freescale.com>
Diffstat (limited to 'spl/Makefile')
-rw-r--r--spl/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 28ebc96..02f4860 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -80,6 +80,7 @@ LIBS-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/memory.o
LIBS-$(CONFIG_SPL_NET_SUPPORT) += net/libnet.o
LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/libnet.o
LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/phy/libphy.o
+LIBS-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/net/phy/libphy.o
LIBS-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += drivers/usb/musb-new/libusb_musb-new.o
LIBS-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/usb/gadget/libusb_gadget.o