aports/main/dtc/install-pylibfdt-to-destdir.patch
Minecrell 46b30a2d21 main/dtc: add py3-libfdt subpackage
pylibfdt is included in the dtc sources and allows using libfdt
from Python.

For some reason, the pylibfdt Makefile ignores $(DESTDIR) at the
moment. Add a small patch to fix this so the Python library is
installed properly. This is just temporary, the next release will
introduce Meson build scripts which do not seem to have that problem.
2021-01-16 01:02:36 +00:00

13 lines
507 B
Diff

diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt
index 6866a0b..6363840 100644
--- a/pylibfdt/Makefile.pylibfdt
+++ b/pylibfdt/Makefile.pylibfdt
@@ -22,7 +22,7 @@ $(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP) $(VERSION_FILE)
install_pylibfdt: $(PYMODULE)
@$(VECHO) INSTALL-PYLIB
- $(PYTHON) $(SETUP) $(SETUPFLAGS) install --prefix=$(PREFIX)
+ $(PYTHON) $(SETUP) $(SETUPFLAGS) install --prefix=$(PREFIX) --root=$(DESTDIR)
pylibfdt_clean:
@$(VECHO) CLEAN "(pylibfdt)"