mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Markus Niebel <niebelm@tqsc.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] use waf in ptxdist
Date: Mon, 30 Jan 2017 16:05:50 +0100	[thread overview]
Message-ID: <1485788750.3287.2.camel@niebel-ws> (raw)
In-Reply-To: <CAEt18EW3=626nMxoC9gUkuzBi8pGHddK7gTkVUuiF+EXmvzseA@mail.gmail.com>

Hello,

should be working this way (just copied from an older project):

8<-----------------------------------------------

LIBIMXVPUAPI_CONF_TOOL	:= NO

LIBIMXVPUAPI_CONF_OPT	:= \
	--prefix="/usr"
	--kernel-headers="$(KERNEL_HEADERS_INCLUDE_DIR)"

LIBIMXVPUAPI_CONF_OPT += \

LIBIMXVPUAPI_ENV	:= \
	$(CROSS_ENV)

#
----------------------------------------------------------------------------
# prepare
#
----------------------------------------------------------------------------
$(STATEDIR)/libimxvpuapi.prepare:
	@$(call targetinfo)
	cd $(LIBIMXVPUAPI_DIR) && \
		$(LIBIMXVPUAPI_PATH) $(LIBIMXVPUAPI_ENV) \
		python2 ./waf configure $(LIBIMXVPUAPI_CONF_OPT)
	@$(call touch)

#
----------------------------------------------------------------------------
# Compile
#
----------------------------------------------------------------------------
$(STATEDIR)/libimxvpuapi.compile:
	@$(call targetinfo)
	cd $(LIBIMXVPUAPI_DIR) && \
		$(LIBIMXVPUAPI_PATH) $(LIBIMXVPUAPI_ENV) \
		python2 ./waf build -j 1
	@$(call touch)

#
----------------------------------------------------------------------------
# Install
#
----------------------------------------------------------------------------
$(STATEDIR)/libimxvpuapi.install:
	@$(call targetinfo)
	rm -rf "$(LIBIMXVPUAPI_PKGDIR)"
	mkdir -p "$(LIBIMXVPUAPI_PKGDIR)"
	cd "$(LIBIMXVPUAPI_DIR)" && \
		$(LIBIMXVPUAPI_PATH) $(LIBIMXVPUAPI_ENV) \
		python2 ./waf --destdir=$(LIBIMXVPUAPI_PKGDIR) install
	@$(call touch)

8<-----------------------------------------------


Am Montag, den 30.01.2017, 13:13 +0100 schrieb Alejandro Vázquez:
> Hi all.
> I have found a project (libimxvpuapi) that is configured and built
> using waf.
> Is there any way I can build this project with ptxdist?
> 
> 
> 
> Thanks!
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2017-01-30 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 12:13 Alejandro Vázquez
2017-01-30 15:05 ` Markus Niebel [this message]
2017-01-31 12:33   ` Alejandro Vázquez
2017-01-31 18:18     ` Markus Niebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1485788750.3287.2.camel@niebel-ws \
    --to=niebelm@tqsc.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox