Re: [ptxdist] use waf in ptxdist

2017-01-31 Thread Markus Niebel
Hi Alejandro,

this library comes from Freescale / NXP. as i remember, they have an
EULA which has to be accepted. You have to look inside the FSL yocto BSP
(or maybe buildroot has this packaged also?) for the URL of the correct
version. You can define your own ptxdist package for the lib and have
libimxvpuapi select this package.

I think the spirit of ptxdist is to avoid such packages - or is there a
need to have them in ptxdist?

Markus

Am Dienstag, den 31.01.2017, 13:33 +0100 schrieb Alejandro Vázquez:
> Hi Markus!!
> I have other question.
> When I try configure this lib, I need imx-vpu 3.10.17 or newer.
> How do I install it through ptxdist so that it detects it and does not
> give me error?
> 
> 
> 
> Thanks!
> 
> 
> 
> 
> 
> 2017-01-30 16:05 GMT+01:00 Markus Niebel :
> 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
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de



___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] use waf in ptxdist

2017-01-31 Thread Alejandro Vázquez
Hi Markus!!
I have other question.
When I try configure this lib, I need imx-vpu 3.10.17 or newer.
How do I install it through ptxdist so that it detects it and does not give
me error?

Thanks!



2017-01-30 16:05 GMT+01:00 Markus Niebel :

> 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
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] use waf in ptxdist

2017-01-30 Thread Markus Niebel
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