All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Makefile: doesn't need check stack size when dtb is not built
@ 2020-03-10  0:20 AKASHI Takahiro
  2020-03-10 15:56 ` Stephen Warren
  2020-03-13 17:25 ` Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: AKASHI Takahiro @ 2020-03-10  0:20 UTC (permalink / raw)
  To: u-boot

The commit 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
initial stack") adds an extra check for stack size in BSS if
CONFIG_SYS_INIT_SP_BSS_OFFSET is enabled.
This check, however, doesn't make sense under the configuration where
control dtb won't be built in and it should be void in such cases.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Fixes: 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
	initial stack")
---
v2:
* guard ALL-y += init_sp_bss_offset_check with simplified "if" condition
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0af89e0a7881..93931c3cb51b 100644
--- a/Makefile
+++ b/Makefile
@@ -903,7 +903,7 @@ ifneq ($(CONFIG_BUILD_TARGET),)
 ALL-y += $(CONFIG_BUILD_TARGET:"%"=%)
 endif
 
-ifdef CONFIG_INIT_SP_RELATIVE
+ifeq ($(CONFIG_INIT_SP_RELATIVE)$(CONFIG_OF_SEPARATE),yy)
 ALL-y += init_sp_bss_offset_check
 endif
 
@@ -1208,7 +1208,7 @@ binary_size_check: u-boot-nodtb.bin FORCE
 		fi \
 	fi
 
-ifdef CONFIG_INIT_SP_RELATIVE
+ifeq ($(CONFIG_INIT_SP_RELATIVE)$(CONFIG_OF_SEPARATE),yy)
 ifneq ($(CONFIG_SYS_MALLOC_F_LEN),)
 subtract_sys_malloc_f_len = space=$$(($${space} - $(CONFIG_SYS_MALLOC_F_LEN)))
 else
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2] Makefile: doesn't need check stack size when dtb is not built
  2020-03-10  0:20 [PATCH v2] Makefile: doesn't need check stack size when dtb is not built AKASHI Takahiro
@ 2020-03-10 15:56 ` Stephen Warren
  2020-03-11  0:01   ` AKASHI Takahiro
  2020-03-13 17:25 ` Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2020-03-10 15:56 UTC (permalink / raw)
  To: u-boot

On 3/9/20 6:20 PM, AKASHI Takahiro wrote:
> The commit 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
> initial stack") adds an extra check for stack size in BSS if
> CONFIG_SYS_INIT_SP_BSS_OFFSET is enabled.
> This check, however, doesn't make sense under the configuration where
> control dtb won't be built in and it should be void in such cases.
> 
> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> Fixes: 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
> 	initial stack")

It would be best if that line wasn't wrapped; that will make it easier 
for anyone searching for the commit description, since they won't have 
to know to search for a substring of the the description instead of the 
whole thing.

Reviewed-by: Stephen Warren <swarren@nvidia.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] Makefile: doesn't need check stack size when dtb is not built
  2020-03-10 15:56 ` Stephen Warren
@ 2020-03-11  0:01   ` AKASHI Takahiro
  0 siblings, 0 replies; 4+ messages in thread
From: AKASHI Takahiro @ 2020-03-11  0:01 UTC (permalink / raw)
  To: u-boot

Tom,

On Tue, Mar 10, 2020 at 09:56:42AM -0600, Stephen Warren wrote:
> On 3/9/20 6:20 PM, AKASHI Takahiro wrote:
> > The commit 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
> > initial stack") adds an extra check for stack size in BSS if
> > CONFIG_SYS_INIT_SP_BSS_OFFSET is enabled.
> > This check, however, doesn't make sense under the configuration where
> > control dtb won't be built in and it should be void in such cases.
> > 
> > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> > Fixes: 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
> > 	initial stack")
> 
> It would be best if that line wasn't wrapped; that will make it easier for
> anyone searching for the commit description, since they won't have to know
> to search for a substring of the the description instead of the whole thing.

Can you make this change for me when you merge this patch, please?

> Reviewed-by: Stephen Warren <swarren@nvidia.com>

Thanks,
-Takahiro Akashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] Makefile: doesn't need check stack size when dtb is not built
  2020-03-10  0:20 [PATCH v2] Makefile: doesn't need check stack size when dtb is not built AKASHI Takahiro
  2020-03-10 15:56 ` Stephen Warren
@ 2020-03-13 17:25 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2020-03-13 17:25 UTC (permalink / raw)
  To: u-boot

On Tue, Mar 10, 2020 at 09:20:43AM +0900, AKASHI Takahiro wrote:

> The commit 5fed97af20da ("Makefile: ensure DTB doesn't overflow into
> initial stack") adds an extra check for stack size in BSS if
> CONFIG_SYS_INIT_SP_BSS_OFFSET is enabled.
> This check, however, doesn't make sense under the configuration where
> control dtb won't be built in and it should be void in such cases.
> 
> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> Fixes: 5fed97af20da ("Makefile: ensure DTB doesn't overflow into initial stack")
> Reviewed-by: Stephen Warren <swarren@nvidia.com>

(I undid the linewrap as requested)

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200313/f307ca82/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-13 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10  0:20 [PATCH v2] Makefile: doesn't need check stack size when dtb is not built AKASHI Takahiro
2020-03-10 15:56 ` Stephen Warren
2020-03-11  0:01   ` AKASHI Takahiro
2020-03-13 17:25 ` Tom Rini

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.