* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
@ 2013-08-19 8:14 ying.zhang at freescale.com
2013-08-19 19:47 ` Scott Wood
2013-08-20 13:02 ` Tom Rini
0 siblings, 2 replies; 9+ messages in thread
From: ying.zhang at freescale.com @ 2013-08-19 8:14 UTC (permalink / raw)
To: u-boot
From: Ying Zhang <b40530@freescale.com>
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 A Fernandes <joelagnel@ti.com>
Signed-off-by: Ying Zhang <b40530@freescale.com>
---
Change from v4:
- No change.
Change from v3:
- No change.
Change from v2:
- Fixed the reported build breakage of am335x_evm_usbspl.
Change from v1:
- Fixed issue where builds in a different directory were failing.
Makefile | 19 +++++++++++++++++--
config.mk | 6 ++++++
spl/Makefile | 1 +
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index d545d30..75df06a 100644
--- a/Makefile
+++ b/Makefile
@@ -613,6 +613,7 @@ updater:
# Explicitly make _depend in subdirs containing multiple targets to prevent
# parallel sub-makes creating .depend files simultaneously.
depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) \
+ $(obj)include/spl-autoconf.mk \
$(obj)include/autoconf.mk \
$(obj)include/generated/generic-asm-offsets.h \
$(obj)include/generated/asm-offsets.h
@@ -694,12 +695,23 @@ $(obj)include/autoconf.mk: $(obj)include/config.h
sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
mv $@.tmp $@
+# Auto-generate the spl-autoconf.mk file (which is included by all makefiles for SPL)
+$(obj)include/spl-autoconf.mk: $(obj)include/config.h
+ @$(XECHO) Generating $@ ; \
+ set -e ; \
+ : Extract the config macros ; \
+ $(CPP) $(CFLAGS) -DCONFIG_SPL_BUILD -DDO_DEPS_ONLY -dM include/common.h | \
+ sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
+ mv $@.tmp $@
+
$(obj)include/generated/generic-asm-offsets.h: $(obj)include/autoconf.mk.dep \
+ $(obj)include/spl-autoconf.mk \
$(obj)lib/asm-offsets.s
@$(XECHO) Generating $@
tools/scripts/make-asm-offsets $(obj)lib/asm-offsets.s $@
$(obj)lib/asm-offsets.s: $(obj)include/autoconf.mk.dep \
+ $(obj)include/spl-autoconf.mk \
$(src)lib/asm-offsets.c
@mkdir -p $(obj)lib
$(CC) -DDO_DEPS_ONLY \
@@ -707,11 +719,13 @@ $(obj)lib/asm-offsets.s: $(obj)include/autoconf.mk.dep \
-o $@ $(src)lib/asm-offsets.c -c -S
$(obj)include/generated/asm-offsets.h: $(obj)include/autoconf.mk.dep \
+ $(obj)include/spl-autoconf.mk \
$(obj)$(CPUDIR)/$(SOC)/asm-offsets.s
@$(XECHO) Generating $@
tools/scripts/make-asm-offsets $(obj)$(CPUDIR)/$(SOC)/asm-offsets.s $@
-$(obj)$(CPUDIR)/$(SOC)/asm-offsets.s: $(obj)include/autoconf.mk.dep
+$(obj)$(CPUDIR)/$(SOC)/asm-offsets.s: $(obj)include/autoconf.mk.dep \
+ $(obj)include/spl-autoconf.mk
@mkdir -p $(obj)$(CPUDIR)/$(SOC)
if [ -f $(src)$(CPUDIR)/$(SOC)/asm-offsets.c ];then \
$(CC) -DDO_DEPS_ONLY \
@@ -783,7 +797,8 @@ include/license.h: tools/bin2header COPYING
unconfig:
@rm -f $(obj)include/config.h $(obj)include/config.mk \
$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
- $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
+ $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep \
+ $(obj)include/spl-autoconf.mk
%_config:: unconfig
@$(MKCONFIG) -A $(@:_config=)
diff --git a/config.mk b/config.mk
index 3e84f36..54e99f4 100644
--- a/config.mk
+++ b/config.mk
@@ -145,7 +145,13 @@ CHECK = sparse
#########################################################################
# Load generated board configuration
+ifeq ($(CONFIG_SPL_BUILD),y)
+# Include SPL autoconf
+sinclude $(OBJTREE)/include/spl-autoconf.mk
+else
+# Include normal autoconf
sinclude $(OBJTREE)/include/autoconf.mk
+endif
sinclude $(OBJTREE)/include/config.mk
# Some architecture config.mk files need to know what CPUDIR is set to,
diff --git a/spl/Makefile b/spl/Makefile
index 6e5299b..43db01f 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
--
1.7.0.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 8:14 [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL ying.zhang at freescale.com
@ 2013-08-19 19:47 ` Scott Wood
2013-08-19 19:54 ` Tom Rini
2013-08-20 13:02 ` Tom Rini
1 sibling, 1 reply; 9+ messages in thread
From: Scott Wood @ 2013-08-19 19:47 UTC (permalink / raw)
To: u-boot
On Mon, 2013-08-19 at 16:14 +0800, ying.zhang at freescale.com wrote:
> From: Ying Zhang <b40530@freescale.com>
No. You added one line AFAICT. Preserve the original author here.
> 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 A Fernandes <joelagnel@ti.com>
> Signed-off-by: Ying Zhang <b40530@freescale.com>
> ---
> Change from v4:
> - No change.
> Change from v3:
> - No change.
Surely there was *some* change or you wouldn't have reposted...
-Scott
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 19:47 ` Scott Wood
@ 2013-08-19 19:54 ` Tom Rini
2013-08-19 21:20 ` York Sun
0 siblings, 1 reply; 9+ messages in thread
From: Tom Rini @ 2013-08-19 19:54 UTC (permalink / raw)
To: u-boot
On Mon, Aug 19, 2013 at 02:47:53PM -0500, Scott Wood wrote:
> On Mon, 2013-08-19 at 16:14 +0800, ying.zhang at freescale.com wrote:
> > From: Ying Zhang <b40530@freescale.com>
>
> No. You added one line AFAICT. Preserve the original author here.
Indeed.
> > 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 A Fernandes <joelagnel@ti.com>
> > Signed-off-by: Ying Zhang <b40530@freescale.com>
> > ---
> > Change from v4:
> > - No change.
> > Change from v3:
> > - No change.
>
> Surely there was *some* change or you wouldn't have reposted...
v4 was adding Joel's S-o-b line back to the changelog.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130819/544098fe/attachment.pgp>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 19:54 ` Tom Rini
@ 2013-08-19 21:20 ` York Sun
2013-08-19 22:04 ` Tom Rini
2013-08-20 3:15 ` Zhang Ying-B40530
0 siblings, 2 replies; 9+ messages in thread
From: York Sun @ 2013-08-19 21:20 UTC (permalink / raw)
To: u-boot
On 08/19/2013 12:54 PM, Tom Rini wrote:
> On Mon, Aug 19, 2013 at 02:47:53PM -0500, Scott Wood wrote:
>> On Mon, 2013-08-19 at 16:14 +0800, ying.zhang at freescale.com wrote:
>>> From: Ying Zhang <b40530@freescale.com>
>>
>> No. You added one line AFAICT. Preserve the original author here.
>
> Indeed.
>
Do we need Ying to send a new version? We can reset the author to Joe
when applying this patch.
>>> 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 A Fernandes <joelagnel@ti.com>
>>> Signed-off-by: Ying Zhang <b40530@freescale.com>
>>> ---
>>> Change from v4:
>>> - No change.
>>> Change from v3:
>>> - No change.
>>
>> Surely there was *some* change or you wouldn't have reposted...
>
> v4 was adding Joel's S-o-b line back to the changelog.
>
I tried to run MAKEALL for arm and powerpc. Powerpc all passed but I am
having errors for arm, before applying this patch. I am using Linaro's
gcc 4.8.2 for arm. Should I use a different toolchain? I am not used to
work on arm platforms.
York
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 21:20 ` York Sun
@ 2013-08-19 22:04 ` Tom Rini
2013-08-19 22:07 ` York Sun
2013-08-20 3:15 ` Zhang Ying-B40530
1 sibling, 1 reply; 9+ messages in thread
From: Tom Rini @ 2013-08-19 22:04 UTC (permalink / raw)
To: u-boot
On Mon, Aug 19, 2013 at 02:20:25PM -0700, York Sun wrote:
> On 08/19/2013 12:54 PM, Tom Rini wrote:
> > On Mon, Aug 19, 2013 at 02:47:53PM -0500, Scott Wood wrote:
> >> On Mon, 2013-08-19 at 16:14 +0800, ying.zhang at freescale.com wrote:
> >>> From: Ying Zhang <b40530@freescale.com>
> >>
> >> No. You added one line AFAICT. Preserve the original author here.
> >
> > Indeed.
> >
>
> Do we need Ying to send a new version? We can reset the author to Joe
> when applying this patch.
>
> >>> 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 A Fernandes <joelagnel@ti.com>
> >>> Signed-off-by: Ying Zhang <b40530@freescale.com>
> >>> ---
> >>> Change from v4:
> >>> - No change.
> >>> Change from v3:
> >>> - No change.
> >>
> >> Surely there was *some* change or you wouldn't have reposted...
> >
> > v4 was adding Joel's S-o-b line back to the changelog.
> >
>
>
> I tried to run MAKEALL for arm and powerpc. Powerpc all passed but I am
> having errors for arm, before applying this patch. I am using Linaro's
> gcc 4.8.2 for arm. Should I use a different toolchain? I am not used to
> work on arm platforms.
That's expected as the Linaro toolchain isn't good for all ARMs. I'll
pass this through some testing locally as well.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130819/de2320a6/attachment.pgp>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 22:04 ` Tom Rini
@ 2013-08-19 22:07 ` York Sun
2013-08-20 12:59 ` Tom Rini
0 siblings, 1 reply; 9+ messages in thread
From: York Sun @ 2013-08-19 22:07 UTC (permalink / raw)
To: u-boot
On 08/19/2013 03:04 PM, Tom Rini wrote:
> On Mon, Aug 19, 2013 at 02:20:25PM -0700, York Sun wrote:
>> On 08/19/2013 12:54 PM, Tom Rini wrote:
>>> On Mon, Aug 19, 2013 at 02:47:53PM -0500, Scott Wood wrote:
>>>> On Mon, 2013-08-19 at 16:14 +0800, ying.zhang at freescale.com wrote:
>>>>> From: Ying Zhang <b40530@freescale.com>
>>>>
>>>> No. You added one line AFAICT. Preserve the original author here.
>>>
>>> Indeed.
>>>
>>
>> Do we need Ying to send a new version? We can reset the author to Joe
>> when applying this patch.
>>
>>>>> 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 A Fernandes <joelagnel@ti.com>
>>>>> Signed-off-by: Ying Zhang <b40530@freescale.com>
>>>>> ---
>>>>> Change from v4:
>>>>> - No change.
>>>>> Change from v3:
>>>>> - No change.
>>>>
>>>> Surely there was *some* change or you wouldn't have reposted...
>>>
>>> v4 was adding Joel's S-o-b line back to the changelog.
>>>
>>
>>
>> I tried to run MAKEALL for arm and powerpc. Powerpc all passed but I am
>> having errors for arm, before applying this patch. I am using Linaro's
>> gcc 4.8.2 for arm. Should I use a different toolchain? I am not used to
>> work on arm platforms.
>
> That's expected as the Linaro toolchain isn't good for all ARMs. I'll
> pass this through some testing locally as well.
Any suggestion on cross toolchain for ARM. I want to extend my MAKEALL
coverage, but don't want to deal with too many varieties of toolchains.
York
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 22:07 ` York Sun
@ 2013-08-20 12:59 ` Tom Rini
0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2013-08-20 12:59 UTC (permalink / raw)
To: u-boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/19/2013 06:07 PM, York Sun wrote:
> On 08/19/2013 03:04 PM, Tom Rini wrote:
>> On Mon, Aug 19, 2013 at 02:20:25PM -0700, York Sun wrote:
>>> On 08/19/2013 12:54 PM, Tom Rini wrote:
>>>> On Mon, Aug 19, 2013 at 02:47:53PM -0500, Scott Wood wrote:
>>>>> On Mon, 2013-08-19 at 16:14 +0800,
>>>>> ying.zhang at freescale.com wrote:
>>>>>> From: Ying Zhang <b40530@freescale.com>
>>>>>
>>>>> No. You added one line AFAICT. Preserve the original
>>>>> author here.
>>>>
>>>> Indeed.
>>>>
>>>
>>> Do we need Ying to send a new version? We can reset the author
>>> to Joe when applying this patch.
>>>
>>>>>> 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 A Fernandes <joelagnel@ti.com>
>>>>>> Signed-off-by: Ying Zhang <b40530@freescale.com> ---
>>>>>> Change from v4: - No change. Change from v3: - No
>>>>>> change.
>>>>>
>>>>> Surely there was *some* change or you wouldn't have
>>>>> reposted...
>>>>
>>>> v4 was adding Joel's S-o-b line back to the changelog.
>>>>
>>>
>>>
>>> I tried to run MAKEALL for arm and powerpc. Powerpc all passed
>>> but I am having errors for arm, before applying this patch. I
>>> am using Linaro's gcc 4.8.2 for arm. Should I use a different
>>> toolchain? I am not used to work on arm platforms.
>>
>> That's expected as the Linaro toolchain isn't good for all ARMs.
>> I'll pass this through some testing locally as well.
>
> Any suggestion on cross toolchain for ARM. I want to extend my
> MAKEALL coverage, but don't want to deal with too many varieties
> of toolchains.
ELDK 5.2.x works for all ARM (and MIPS).
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJSE2g7AAoJENk4IS6UOR1WMUIP/0adzkiNhsKBhjn39KNCpOSB
mwlRxpPMlDzzlUPWJCcZ+sWuxqRw7tpdq309x6G4ojUU4mXdZGv5kcs22kEJoTze
48GxFJQG30AMk0smgoAS9DgBoHS2UYPTQtnza77HBM9LlvOKzq0X9/xqJBn1jFOK
CJ+BPNh6HbAN3plwd0Oj2QgBvzR0K6yYmsVAhIliDv6KBhLfWA6Rakj4NqSoO3n3
e3zd3v2PR7WGXS0wGmSlCx48ORiSTxuIRY4Y3dZPV0qaxoQ5KuJDw8ASuPmj2YGz
zwSYrFTSbMVuIRB+pXtKRpxu2UjgKS/a0I074WM2ObMoNo00L5o3CWMBbQdllouL
AHdASNbGIm7XWN9SI2lcvOIIKAizoELxnzvB9eETsrzUk5n7YYBeM6yyXeZcpZ6q
hXPSRPyh9vae5rV5hbNs1ReBG+Dr73YtMFcUBUqbcyCHWFxe3O5CFjlPaKdwiQ1X
eIeK+7p4YmCJJJAQy6Qq0RqUuNVPZn6EXUgbuizDRZgny7ssOHya8dQHfLU6+wP6
PcLvTh8ix1bTNKPXye/bzMBc0NrJDVwoa2RQqZBehnSZpTfpu/eHQaIFHJaBxDRl
QQgKCwEkRvcmJsJTrGcrPI6G9h4a74kl7sKmGkhq6rq7qAz1zpm5tsPJ16s4RRwR
GcBF/qLc6iUBntQmAtM9
=JXfU
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 21:20 ` York Sun
2013-08-19 22:04 ` Tom Rini
@ 2013-08-20 3:15 ` Zhang Ying-B40530
1 sibling, 0 replies; 9+ messages in thread
From: Zhang Ying-B40530 @ 2013-08-20 3:15 UTC (permalink / raw)
To: u-boot
>-----Original Message-----
>From: sun york-R58495
>Sent: Tuesday, August 20, 2013 5:20 AM
>To: Tom Rini
>Cc: Wood Scott-B07421; Zhang Ying-B40530; Joel A Fernandes; u-
>boot at lists.denx.de; sun york-R58495; Xie Xiaobo-R63061; Zhang Ying-B40530
>Subject: Re: [U-Boot] [PATCH v5] SPL: Makefile: Build a separate
>autoconf.mk for SPL
>
>On 08/19/2013 12:54 PM, Tom Rini wrote:
>> On Mon, Aug 19, 2013 at 02:47:53PM -0500, Scott Wood wrote:
>>> On Mon, 2013-08-19 at 16:14 +0800, ying.zhang at freescale.com wrote:
>>>> From: Ying Zhang <b40530@freescale.com>
>>>
>>> No. You added one line AFAICT. Preserve the original author here.
>>
>> Indeed.
>>
>
>Do we need Ying to send a new version? We can reset the author to Joe when
>applying this patch.
>
Whether we according to what York said, reset the author to Joe when applying?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL
2013-08-19 8:14 [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL ying.zhang at freescale.com
2013-08-19 19:47 ` Scott Wood
@ 2013-08-20 13:02 ` Tom Rini
1 sibling, 0 replies; 9+ messages in thread
From: Tom Rini @ 2013-08-20 13:02 UTC (permalink / raw)
To: u-boot
On Mon, Aug 19, 2013 at 04:14:14PM +0800, ying.zhang at freescale.com wrote:
> From: Ying Zhang <b40530@freescale.com>
>
> 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 A Fernandes <joelagnel@ti.com>
> Signed-off-by: Ying Zhang <b40530@freescale.com>
After fixing up the author and changing Joel's email to his current one,
applied to u-boot/master (and boot tested on am335x_evm_usbspl), thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130820/5b32aa54/attachment.pgp>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-08-20 13:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-19 8:14 [U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL ying.zhang at freescale.com
2013-08-19 19:47 ` Scott Wood
2013-08-19 19:54 ` Tom Rini
2013-08-19 21:20 ` York Sun
2013-08-19 22:04 ` Tom Rini
2013-08-19 22:07 ` York Sun
2013-08-20 12:59 ` Tom Rini
2013-08-20 3:15 ` Zhang Ying-B40530
2013-08-20 13:02 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox