[PATCH v2 5/7] dts: add support for externally compiled DPDK

Luca Vizzarro Luca.Vizzarro at arm.com
Tue Oct 29 12:43:00 CET 2024


On 25/10/2024 19:29, Dean Marx wrote:
> Just wondering, if the user wants to run DTS using the configuration 
> yaml file or the environment variables instead of the command line args, 
> are they supposed to run main.py by itself after setup? Because right 
> now, it won't run without the --tarball or --dpdk-tree args, even if 
> it's specified in the config file. It seems like it just ignores 
> whatever was specified in the command line if it's specified in the yaml 
> file, but won't execute without the command line args either.

Hi Dean,

If I understood your query correctly, I can't seem to replicate your 
issue, and I need some steps so that I fully understand.

My configuration file is set as:

  dpdk_build:
    dpdk_tree: /home/luca/dpdk
    remote: true
    precompiled_build_dir: build

and running:

   ./main.py --config-file my-conf.yaml

works just as expected. It re-uses my pre-build DPDK repository on my 
SUT node. We tried every setup:

   (tree, tarball)*(local, remote)*(precompiled, build_options)

and we were able to get it to work without issue. In case I 
misunderstood your problem I just attempted to call:

   (cd ../ && git archive --format=tar.gz -o dts/dpdk-HEAD.tar.gz \
     --prefix dpdk-HEAD/ HEAD)
   ./main.py --config-file my-conf.yaml --tarball dpdk.tar.gz

and as expected it failed because my configuration was assuming a 
precompiled build dir in my tarball, but it copied and extracted the 
tarball on the remote correctly. Changing from precompiled to build, 
made it fully work.

Looking forward to hearing back from you.

Best,
Luca


More information about the dev mailing list