public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] A little improvement of Kbuild script and Makefile cleanup
@ 2014-09-04 16:56 Masahiro Yamada
  2014-09-04 16:56 ` [U-Boot] [PATCH 1/2] scripts/Makefile.clean: clean also $(extra-m) and $(extra-) Masahiro Yamada
  2014-09-04 16:56 ` [U-Boot] [PATCH 2/2] kbuild: standalone: simplify clean-files Masahiro Yamada
  0 siblings, 2 replies; 5+ messages in thread
From: Masahiro Yamada @ 2014-09-04 16:56 UTC (permalink / raw)
  To: u-boot


1/2 imports a build script update from Linux.

2/2 refactors examples/standalone/Makefile based on 1/2.



Masahiro Yamada (2):
  scripts/Makefile.clean: clean also $(extra-m) and $(extra-)
  kbuild: standalone: simplify clean-files

 examples/standalone/Makefile | 2 +-
 scripts/Makefile.clean       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
1.9.1

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

* [U-Boot] [PATCH 1/2] scripts/Makefile.clean: clean also $(extra-m) and $(extra-)
  2014-09-04 16:56 [U-Boot] [PATCH 0/2] A little improvement of Kbuild script and Makefile cleanup Masahiro Yamada
@ 2014-09-04 16:56 ` Masahiro Yamada
  2014-09-17  0:46   ` [U-Boot] [U-Boot, " Tom Rini
  2014-09-04 16:56 ` [U-Boot] [PATCH 2/2] kbuild: standalone: simplify clean-files Masahiro Yamada
  1 sibling, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2014-09-04 16:56 UTC (permalink / raw)
  To: u-boot

This commit is a backport from Linux Kernel,
commit 9d5db8949f1ecf4019785b04d8986835d3c0e99e,
written by me.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

This patch was well-reviewed on Linux Kbuild ML and
is already in the Linux mainline.
It is surely safe.


 scripts/Makefile.clean | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index d6dcd47..88f14e2 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -45,8 +45,8 @@ subdir-ymn	:= $(foreach f, $(subdir-ymn), \
 # build a list of files to remove, usually relative to the current
 # directory
 
-__clean-files	:= $(extra-y) $(always)                  \
-		   $(targets) $(clean-files)             \
+__clean-files	:= $(extra-y) $(extra-m) $(extra-)       \
+		   $(always) $(targets) $(clean-files)   \
 		   $(host-progs)                         \
 		   $(hostprogs-y) $(hostprogs-m) $(hostprogs-)
 
-- 
1.9.1

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

* [U-Boot] [PATCH 2/2] kbuild: standalone: simplify clean-files
  2014-09-04 16:56 [U-Boot] [PATCH 0/2] A little improvement of Kbuild script and Makefile cleanup Masahiro Yamada
  2014-09-04 16:56 ` [U-Boot] [PATCH 1/2] scripts/Makefile.clean: clean also $(extra-m) and $(extra-) Masahiro Yamada
@ 2014-09-04 16:56 ` Masahiro Yamada
  2014-09-17  0:46   ` [U-Boot] [U-Boot,2/2] " Tom Rini
  1 sibling, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2014-09-04 16:56 UTC (permalink / raw)
  To: u-boot

Files added $(extra-) are removed by "make clean".
Besides, wildcard "*.srec *.bin" is simpler.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 examples/standalone/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 2dacba2..0863a8c 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -22,7 +22,7 @@ extra-$(CONFIG_PPC)                += sched
 ELF := $(strip $(extra-y))
 
 extra-y += $(addsuffix .srec,$(extra-y)) $(addsuffix .bin,$(extra-y))
-clean-files  := $(extra-) $(addsuffix .srec,$(extra-)) $(addsuffix .bin,$(extra-))
+clean-files  := *.srec *.bin
 
 COBJS	:= $(ELF:=.o)
 
-- 
1.9.1

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

* [U-Boot] [U-Boot, 1/2] scripts/Makefile.clean: clean also $(extra-m) and $(extra-)
  2014-09-04 16:56 ` [U-Boot] [PATCH 1/2] scripts/Makefile.clean: clean also $(extra-m) and $(extra-) Masahiro Yamada
@ 2014-09-17  0:46   ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2014-09-17  0:46 UTC (permalink / raw)
  To: u-boot

On Fri, Sep 05, 2014 at 01:56:51AM +0900, Masahiro Yamada wrote:

> This commit is a backport from Linux Kernel,
> commit 9d5db8949f1ecf4019785b04d8986835d3c0e99e,
> written by me.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Applied to u-boot/master, 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/20140916/8909fe73/attachment.pgp>

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

* [U-Boot] [U-Boot,2/2] kbuild: standalone: simplify clean-files
  2014-09-04 16:56 ` [U-Boot] [PATCH 2/2] kbuild: standalone: simplify clean-files Masahiro Yamada
@ 2014-09-17  0:46   ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2014-09-17  0:46 UTC (permalink / raw)
  To: u-boot

On Fri, Sep 05, 2014 at 01:56:52AM +0900, Masahiro Yamada wrote:

> Files added $(extra-) are removed by "make clean".
> Besides, wildcard "*.srec *.bin" is simpler.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Applied to u-boot/master, 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/20140916/36aedada/attachment.pgp>

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

end of thread, other threads:[~2014-09-17  0:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-04 16:56 [U-Boot] [PATCH 0/2] A little improvement of Kbuild script and Makefile cleanup Masahiro Yamada
2014-09-04 16:56 ` [U-Boot] [PATCH 1/2] scripts/Makefile.clean: clean also $(extra-m) and $(extra-) Masahiro Yamada
2014-09-17  0:46   ` [U-Boot] [U-Boot, " Tom Rini
2014-09-04 16:56 ` [U-Boot] [PATCH 2/2] kbuild: standalone: simplify clean-files Masahiro Yamada
2014-09-17  0:46   ` [U-Boot] [U-Boot,2/2] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox