All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] env: Fix out of tree building of tools-all
@ 2017-09-05 18:20 Tom Rini
  2017-09-05 18:30 ` Peter Robinson
  2017-09-06  0:36 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Tom Rini @ 2017-09-05 18:20 UTC (permalink / raw)
  To: u-boot

With the move of environment code from common/ to env/ a number of
changes needed to be made to various make targets.  We missed updating
some of the files required for out of tree builds of the tools.  Correct
the 'environ' target to know that we need to work under tools/env/ still
(not tools/environ/) and then update the wrappers in env_attr.c and
env_flags.c to point to the new correct file.

Reported-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 Makefile              | 2 +-
 tools/env/env_attr.c  | 2 +-
 tools/env/env_flags.c | 2 +-
 tools/env/fw_env.c    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 792162521155..020ebd50ad22 100644
--- a/Makefile
+++ b/Makefile
@@ -1466,7 +1466,7 @@ checkarmreloc: u-boot
 	fi
 
 environ: scripts_basic
-	$(Q)$(MAKE) $(build)=tools/$@
+	$(Q)$(MAKE) $(build)=tools/env
 
 tools-only: scripts_basic $(version_h) $(timestamp_h)
 	$(Q)$(MAKE) $(build)=tools
diff --git a/tools/env/env_attr.c b/tools/env/env_attr.c
index 502d4c900bf2..4d8536335c30 100644
--- a/tools/env/env_attr.c
+++ b/tools/env/env_attr.c
@@ -1 +1 @@
-#include "../../common/env_attr.c"
+#include "../../env/attr.c"
diff --git a/tools/env/env_flags.c b/tools/env/env_flags.c
index b261cb8e3907..71e13e2021f6 100644
--- a/tools/env/env_flags.c
+++ b/tools/env/env_flags.c
@@ -1 +1 @@
-#include "../../common/env_flags.c"
+#include "../../env/flags.c"
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 965e1662d702..ab06415898c2 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -755,7 +755,7 @@ static int flash_read_buf (int dev, int fd, void *buf, size_t count,
 
 		/*
 		 * If a block is bad, we retry in the next block at the same
-		 * offset - see common/env_nand.c::writeenv()
+		 * offset - see env/nand.c::writeenv()
 		 */
 		lseek (fd, blockstart + block_seek, SEEK_SET);
 
-- 
1.9.1

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

* [U-Boot] [PATCH] env: Fix out of tree building of tools-all
  2017-09-05 18:20 [U-Boot] [PATCH] env: Fix out of tree building of tools-all Tom Rini
@ 2017-09-05 18:30 ` Peter Robinson
  2017-09-06  0:36 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Robinson @ 2017-09-05 18:30 UTC (permalink / raw)
  To: u-boot

On Tue, Sep 5, 2017 at 7:20 PM, Tom Rini <trini@konsulko.com> wrote:
> With the move of environment code from common/ to env/ a number of
> changes needed to be made to various make targets.  We missed updating
> some of the files required for out of tree builds of the tools.  Correct
> the 'environ' target to know that we need to work under tools/env/ still
> (not tools/environ/) and then update the wrappers in env_attr.c and
> env_flags.c to point to the new correct file.
>
> Reported-by: Peter Robinson <pbrobinson@gmail.com>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>

Works for my use case, thanks for the quick fix.

Regards,
Peter

> ---
>  Makefile              | 2 +-
>  tools/env/env_attr.c  | 2 +-
>  tools/env/env_flags.c | 2 +-
>  tools/env/fw_env.c    | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 792162521155..020ebd50ad22 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1466,7 +1466,7 @@ checkarmreloc: u-boot
>         fi
>
>  environ: scripts_basic
> -       $(Q)$(MAKE) $(build)=tools/$@
> +       $(Q)$(MAKE) $(build)=tools/env
>
>  tools-only: scripts_basic $(version_h) $(timestamp_h)
>         $(Q)$(MAKE) $(build)=tools
> diff --git a/tools/env/env_attr.c b/tools/env/env_attr.c
> index 502d4c900bf2..4d8536335c30 100644
> --- a/tools/env/env_attr.c
> +++ b/tools/env/env_attr.c
> @@ -1 +1 @@
> -#include "../../common/env_attr.c"
> +#include "../../env/attr.c"
> diff --git a/tools/env/env_flags.c b/tools/env/env_flags.c
> index b261cb8e3907..71e13e2021f6 100644
> --- a/tools/env/env_flags.c
> +++ b/tools/env/env_flags.c
> @@ -1 +1 @@
> -#include "../../common/env_flags.c"
> +#include "../../env/flags.c"
> diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
> index 965e1662d702..ab06415898c2 100644
> --- a/tools/env/fw_env.c
> +++ b/tools/env/fw_env.c
> @@ -755,7 +755,7 @@ static int flash_read_buf (int dev, int fd, void *buf, size_t count,
>
>                 /*
>                  * If a block is bad, we retry in the next block at the same
> -                * offset - see common/env_nand.c::writeenv()
> +                * offset - see env/nand.c::writeenv()
>                  */
>                 lseek (fd, blockstart + block_seek, SEEK_SET);
>
> --
> 1.9.1
>

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

* [U-Boot] [PATCH] env: Fix out of tree building of tools-all
  2017-09-05 18:20 [U-Boot] [PATCH] env: Fix out of tree building of tools-all Tom Rini
  2017-09-05 18:30 ` Peter Robinson
@ 2017-09-06  0:36 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2017-09-06  0:36 UTC (permalink / raw)
  To: u-boot

On Tue, Sep 05, 2017 at 02:20:09PM -0400, Tom Rini wrote:

> With the move of environment code from common/ to env/ a number of
> changes needed to be made to various make targets.  We missed updating
> some of the files required for out of tree builds of the tools.  Correct
> the 'environ' target to know that we need to work under tools/env/ still
> (not tools/environ/) and then update the wrappers in env_attr.c and
> env_flags.c to point to the new correct file.
> 
> Reported-by: Peter Robinson <pbrobinson@gmail.com>
> Tested-by: Peter Robinson <pbrobinson@gmail.com>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170905/4290ad35/attachment.sig>

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

end of thread, other threads:[~2017-09-06  0:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 18:20 [U-Boot] [PATCH] env: Fix out of tree building of tools-all Tom Rini
2017-09-05 18:30 ` Peter Robinson
2017-09-06  0:36 ` 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.