build: Unset CDPATH to avoid problems
authorThomas Langer <thomas.langer@intel.com>
Mon, 20 Aug 2018 10:13:29 +0000 (12:13 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 25 Aug 2018 09:10:28 +0000 (11:10 +0200)
commit41faf52b0ffe902381e75a35e886f635321347b5
tree95adccf02e32659cef090e5fef498f73b2fc95cb
parentb6adfde0c6b6fba56e0fcf8c3166b6524678d950
build: Unset CDPATH to avoid problems

In some places the output of commands, which include "cd" are used.
In case of CDPATH the new path is printed, which might not be expected.
Disable the variable to avoid these problem.

When CDPATH was set by the user to some value like "export CDPATH=."
the git checkout done by the build system did not work anymore, the
git cloning aborted with such an error message for example:
....
Packing checkout...
tar: /disk/fs1/tmp2/mehrtens/pon-ugw/ugw-haps/openwrt/tmp/dl/ppa-drv-1.0\n@1534240258: Cannot stat: No such file or directory
tar: Date sample file not found
Try 'tar --help' or 'tar --usage' for more information.
.....

To avoid this, this patch makes the build system unset CDPATH inside
the build system, so the build system will still work even when the
user set this variable in his local environment.

Signed-off-by: Thomas Langer <thomas.langer@intel.com>
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
Acked-by: Hans Dedecker <dedeckeh@gmail.com>
Makefile