diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-08-10 17:33:24 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-09-25 10:31:54 +1000 |
commit | 1e4a0928f3b3b827824222572e551a60935607e3 (patch) | |
tree | 521d03ff1e3b570ce6330d84cae7054b91930d31 /pylibfdt/Makefile.pylibfdt | |
parent | ca399b14956f1d57fff46e4e847f1448b955d0ec (diff) | |
download | dtc-1e4a0928f3b3b827824222572e551a60935607e3.zip dtc-1e4a0928f3b3b827824222572e551a60935607e3.tar.gz dtc-1e4a0928f3b3b827824222572e551a60935607e3.tar.bz2 |
pylibfdt: Don't have setup.py depend on where it's invoked from
Currently setup.py depends on being invoked from the right directory
(specifically it needs to be run from the root of the project). That's a
bit confusing.
This updates setup.py to no longer depend on the invoking directory by
instead having it change directory to the location of the script itself,
then using internal paths relative to that.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'pylibfdt/Makefile.pylibfdt')
-rw-r--r-- | pylibfdt/Makefile.pylibfdt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt index 0dc5e96..8f00b3d 100644 --- a/pylibfdt/Makefile.pylibfdt +++ b/pylibfdt/Makefile.pylibfdt @@ -13,7 +13,7 @@ endif $(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP) $(VERSION_FILE) @$(VECHO) PYMOD $@ - $(SETUP) $(SETUPFLAGS) build_ext --build-lib=$(PYLIBFDT_objdir) + $(SETUP) $(SETUPFLAGS) build_ext --build-lib=../$(PYLIBFDT_objdir) install_pylibfdt: $(PYMODULE) @$(VECHO) INSTALL-PYLIB |