]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
env: Fix operation of 'make environ'
authorSimon Glass <sjg@chromium.org>
Tue, 5 Sep 2017 07:53:58 +0000 (01:53 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 6 Sep 2017 00:34:08 +0000 (20:34 -0400)
This was broken by the recent environment refactoring. Specifically:

$  make environ
scripts/Makefile.build:59: tools/environ/Makefile: No such file or directory
make[1]: *** No rule to make target 'tools/environ/Makefile'.  Stop.
make: *** [Makefile:1469: environ] Error 2

Fix this by updating the Makefile and adjusting the #include filesnames in
two C files.

Fixes: ec74f5f (Makefile: Rename 'env' target to 'environ')
Reported-by: Måns Rullgård <mans@mansr.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile
tools/env/README

index 020ebd50ad2293687f784ed9df45061a69788d0f..70971b110148b001354a82b4cb75b3ee79453395 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1465,14 +1465,14 @@ checkarmreloc: u-boot
                false; \
        fi
 
-environ: scripts_basic
+envtools: scripts_basic
        $(Q)$(MAKE) $(build)=tools/env
 
 tools-only: scripts_basic $(version_h) $(timestamp_h)
        $(Q)$(MAKE) $(build)=tools
 
 tools-all: export HOST_TOOLS_ALL=y
-tools-all: environ tools ;
+tools-all: envtools tools ;
 
 cross_tools: export CROSS_BUILD_TOOLS=y
 cross_tools: tools ;
index 24e31bc9f808fd6513893b44aefa2d29134e97ef..bc6e2c11efde03d7220acd1ddbff71c945d6aa7e 100644 (file)
@@ -3,9 +3,9 @@ This is a demo implementation of a Linux command line tool to access
 the U-Boot's environment variables.
 
 In order to cross-compile fw_printenv, run
-    make CROSS_COMPILE=<your cross-compiler prefix> env
+    make CROSS_COMPILE=<your cross-compiler prefix> envtools
 in the root directory of the U-Boot distribution. For example,
-    make CROSS_COMPILE=arm-linux- env
+    make CROSS_COMPILE=arm-linux- envtools
 
 For the run-time utility configuration uncomment the line
 #define CONFIG_FILE  "/etc/fw_env.config"