* [U-Boot] [PATCH] tools/env: use lib/crc32.c directly
@ 2011-08-30 14:42 Andreas Bießmann
2011-08-30 15:08 ` Mike Frysinger
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Andreas Bießmann @ 2011-08-30 14:42 UTC (permalink / raw)
To: u-boot
Instead of linking the file into $(obj) tree use directly the source file.
This also prevents littered source tree if building not out-of-tree.
Signed-off-by: Andreas Bie?mann <biessmann@corscience.de>
---
tools/env/Makefile | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/tools/env/Makefile b/tools/env/Makefile
index 2f7a59c..28b73da 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -23,7 +23,7 @@
include $(TOPDIR)/config.mk
-HOSTSRCS := $(obj)crc32.c fw_env.c fw_env_main.c
+HOSTSRCS := $(SRCTREE)/lib/crc32.c fw_env.c fw_env_main.c
HEADERS := fw_env.h
# Compile for a hosted environment on the target
@@ -43,10 +43,7 @@ $(obj)fw_printenv: $(HOSTSRCS) $(HEADERS)
$(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $(HOSTSRCS)
clean:
- rm -f $(obj)fw_printenv $(obj)crc32.c
-
-$(obj)crc32.c:
- ln -s $(src)../../lib/crc32.c $(obj)crc32.c
+ rm -f $(obj)fw_printenv
#########################################################################
--
1.7.5.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] tools/env: use lib/crc32.c directly
2011-08-30 14:42 [U-Boot] [PATCH] tools/env: use lib/crc32.c directly Andreas Bießmann
@ 2011-08-30 15:08 ` Mike Frysinger
2011-10-17 9:08 ` Andreas Bießmann
2011-10-18 8:11 ` [U-Boot] [PATCH v2] " Andreas Bießmann
2 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2011-08-30 15:08 UTC (permalink / raw)
To: u-boot
On Tuesday, August 30, 2011 10:42:29 Andreas Bie?mann wrote:
> Instead of linking the file into $(obj) tree use directly the source file.
> This also prevents littered source tree if building not out-of-tree.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110830/686b0bc1/attachment.pgp
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] tools/env: use lib/crc32.c directly
2011-08-30 14:42 [U-Boot] [PATCH] tools/env: use lib/crc32.c directly Andreas Bießmann
2011-08-30 15:08 ` Mike Frysinger
@ 2011-10-17 9:08 ` Andreas Bießmann
2011-10-18 8:11 ` [U-Boot] [PATCH v2] " Andreas Bießmann
2 siblings, 0 replies; 5+ messages in thread
From: Andreas Bießmann @ 2011-10-17 9:08 UTC (permalink / raw)
To: u-boot
Am 30.08.2011 16:42, schrieb Andreas Bie?mann:
> Instead of linking the file into $(obj) tree use directly the source file.
> This also prevents littered source tree if building not out-of-tree.
>
> Signed-off-by: Andreas Bie?mann <biessmann@corscience.de>
ping?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH v2] tools/env: use lib/crc32.c directly
2011-08-30 14:42 [U-Boot] [PATCH] tools/env: use lib/crc32.c directly Andreas Bießmann
2011-08-30 15:08 ` Mike Frysinger
2011-10-17 9:08 ` Andreas Bießmann
@ 2011-10-18 8:11 ` Andreas Bießmann
2011-11-22 8:54 ` Stefano Babic
2 siblings, 1 reply; 5+ messages in thread
From: Andreas Bießmann @ 2011-10-18 8:11 UTC (permalink / raw)
To: u-boot
Instead of linking the file into $(obj) tree use directly the source file.
This also prevents littered source tree if building not out-of-tree.
Signed-off-by: Andreas Bie?mann <biessmann@corscience.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
---
total: 0 errors, 0 warnings, 27 lines checked
0001-tools-env-use-lib-crc32.c-directly.patch has no obvious style problems and is ready for submission.
changes since v1:
- also remove deletion of $(obj)/tools/crc32.c from Makefile which is not
longer necessary
Makefile | 2 +-
tools/env/Makefile | 7 ++-----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index e9a153c..081e975 100644
--- a/Makefile
+++ b/Makefile
@@ -973,7 +973,7 @@ clobber: clean
@rm -f $(obj)u-boot.kwb
@rm -f $(obj)u-boot.imx
@rm -f $(obj)u-boot.ubl
- @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
+ @rm -f $(obj)tools/inca-swap-bytes
@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
@rm -fr $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
@rm -fr $(obj)include/generated
diff --git a/tools/env/Makefile b/tools/env/Makefile
index 2f7a59c..28b73da 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -23,7 +23,7 @@
include $(TOPDIR)/config.mk
-HOSTSRCS := $(obj)crc32.c fw_env.c fw_env_main.c
+HOSTSRCS := $(SRCTREE)/lib/crc32.c fw_env.c fw_env_main.c
HEADERS := fw_env.h
# Compile for a hosted environment on the target
@@ -43,10 +43,7 @@ $(obj)fw_printenv: $(HOSTSRCS) $(HEADERS)
$(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $(HOSTSRCS)
clean:
- rm -f $(obj)fw_printenv $(obj)crc32.c
-
-$(obj)crc32.c:
- ln -s $(src)../../lib/crc32.c $(obj)crc32.c
+ rm -f $(obj)fw_printenv
#########################################################################
--
1.7.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH v2] tools/env: use lib/crc32.c directly
2011-10-18 8:11 ` [U-Boot] [PATCH v2] " Andreas Bießmann
@ 2011-11-22 8:54 ` Stefano Babic
0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2011-11-22 8:54 UTC (permalink / raw)
To: u-boot
On 18/10/2011 10:11, Andreas Bie?mann wrote:
> Instead of linking the file into $(obj) tree use directly the source file.
> This also prevents littered source tree if building not out-of-tree.
>
> Signed-off-by: Andreas Bie?mann <biessmann@corscience.de>
> Acked-by: Mike Frysinger <vapier@gentoo.org>
> ---
Applied to u-boot-staging, sbabic at denx.de, (after rebasing on current
tree), thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-11-22 8:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 14:42 [U-Boot] [PATCH] tools/env: use lib/crc32.c directly Andreas Bießmann
2011-08-30 15:08 ` Mike Frysinger
2011-10-17 9:08 ` Andreas Bießmann
2011-10-18 8:11 ` [U-Boot] [PATCH v2] " Andreas Bießmann
2011-11-22 8:54 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox