diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-06-04 21:47:07 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-06-09 11:20:36 +0200 |
commit | 5495f8fe63f89e83642c18fb385857cb7bce6430 (patch) | |
tree | 0267589f9eaecbce713b0e2f2f35d068367a4875 /rules/pyserial3.make | |
parent | 280faabeb6023888c4ecdb5df125221bf5d5035a (diff) | |
download | ptxdist-5495f8fe63f89e83642c18fb385857cb7bce6430.tar.gz ptxdist-5495f8fe63f89e83642c18fb385857cb7bce6430.tar.xz |
pyserial3: build with new python helper
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pyserial3.make')
-rw-r--r-- | rules/pyserial3.make | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/rules/pyserial3.make b/rules/pyserial3.make index 534ced6eb..dc8bb61b2 100644 --- a/rules/pyserial3.make +++ b/rules/pyserial3.make @@ -44,28 +44,8 @@ $(STATEDIR)/pyserial3.extract: # Prepare # ---------------------------------------------------------------------------- -PYSERIAL3_PATH := PATH=$(CROSS_PATH) -PYSERIAL3_CONF_TOOL := NO -PYSERIAL3_MAKE_ENV := $(CROSS_ENV) - -# ---------------------------------------------------------------------------- -# Compile -# ---------------------------------------------------------------------------- - -$(STATEDIR)/pyserial3.compile: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# Install -# ---------------------------------------------------------------------------- - -$(STATEDIR)/pyserial3.install: - @$(call targetinfo) - @cd $(PYSERIAL3_DIR) && \ - $(PYSERIAL3_PATH) $(PYSERIAL3_MAKE_ENV) \ - python3 setup.py install --root=$(PYSERIAL3_PKGDIR) --prefix=/usr - @$(call touch) +PYSERIAL3_CONF_TOOL := python3 +PYSERIAL3_MAKE_OPT = build -e "/usr/bin/python$(PYTHON3_MAJORMINOR)" # ---------------------------------------------------------------------------- # Target-Install @@ -90,12 +70,9 @@ $(STATEDIR)/pyserial3.targetinstall: $(call install_copy, pyserial3, 0, 0, 0644, -, /$$file); \ done -# note: the setup.py also installs the miniterm.py script, but with a really -# broken path to the python interpreter. As a workaround we use the plain script -# from the build directory instead ifdef PTXCONF_PYSERIAL3_MINITERM $(call install_copy, pyserial3, 0, 0, 0755, \ - $(PYSERIAL3_DIR)/build/lib/serial/tools/miniterm.py, /usr/bin/miniterm3.py) + $(PYSERIAL3_PKGDIR)/usr/bin/miniterm.py, /usr/bin/miniterm3.py) endif @$(call install_finish, pyserial3) |