Re: [PATCH v6 1/4] pylibfdt: allow build out of tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Nov 4, 2020 at 1:45 PM <marcandre.lureau@xxxxxxxxxx> wrote:
>
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
>
> With meson, we have to support out-of-tree build.

I noticed that meson still builds pylibfdt/libfdt.py and
pylibfdt/libfdt_wrap.c in tree. And it makes the result unusable
without installing. For example the README instructions don't work:

    $ cd pylibfdt
    $ python3 -c "import libfdt; help(libfdt)"

I tried to fix the in tree part with swig option '-outdir', but that
didn't work.

Really what I'm after is what uses need to be supported? I'm looking
at getting pip and pypi packaging to work. I'm actually wondering if
pylibfdt needs to be so tightly coupled to the build system(s!) and
source tree. The dependencies are really just libfdt headers and
library which are easily installed either from source or a distro pkg.
The '..libfdt/' references are problematic with the packaging tools.
The easier route may be a standalone repo with a copy of libfdt.i and
a different setup.py.

Rob




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux