mirror of
https://github.com/dgibson/dtc.git
synced 2026-10-10 08:03:00 -04:00
At present we manually move _libfdt.so into the correct place. Provide a package directory so we can avoid needing to do this. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
17 lines
511 B
Text
17 lines
511 B
Text
# Makefile.pylibfdt
|
|
#
|
|
|
|
PYLIBFDT_srcs = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_SRCS))
|
|
WRAP = $(PYLIBFDT_objdir)/libfdt_wrap.c
|
|
PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so
|
|
|
|
$(PYMODULE): $(PYLIBFDT_srcs) $(WRAP)
|
|
@$(VECHO) PYMOD $@
|
|
SOURCES="$^" CPPFLAGS="$(CPPFLAGS)" OBJDIR="$(PYLIBFDT_objdir)" \
|
|
python $(PYLIBFDT_objdir)/setup.py --quiet build_ext --inplace
|
|
|
|
$(WRAP): $(PYLIBFDT_srcdir)/libfdt.swig
|
|
@$(VECHO) SWIG $@
|
|
$(SWIG) -python -o $@ $<
|
|
|
|
PYLIBFDT_cleanfiles = libfdt_wrap.c libfdt.py libfdt.pyc _libfdt.so
|