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 via email to