[Buildroot] Question about pkg-config pc files

Patricia Holden pholden at nklabs.com
Fri Jul 23 18:52:52 UTC 2021


I have a TI specific kernel, I got it directly from a TI SDK.   The
comments in ti-sgx-km Config.in says to use ti-sgx, however, there is no
choice in packages for ti-sgx.  I can only choose "ti-sgx-km" or "ti-gfx".
I guess I can pull ti-sgx & create package for it.  Unless someone else has
a better suggestion.

On Thu, Jul 22, 2021 at 11:39 PM Baruch Siach <baruch at tkos.co.il> wrote:

> Hi Patricia,
>
> On Fri, Jul 23 2021, Patricia Holden wrote:
> > I switched from ti-gfx to ti-sgx, now I get another error:
> >
> >
> /home/patricaholden/williamson/build07062021/Pro3-Linux/buildroot-2020.02/output/build/ti-sgx-km-4519ed3b83d1d72207ddc2874c7eb5e5a7f20d8d/eurasia_km/eurasiacon/binary_omap_linux_xorg_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.c:69:10:
> > fatal error: linux/dma-direct.h: No such file or directory
> >    69 | #include <linux/dma-direct.h>
> >       |          ^~~~~~~~~~~~~~~~~~~~
> >
> >
> > I checked linux-headers and only see "include/linux/dma-direction.h", no
> > "include/linux/dma-direct.h".
>
> The linux-headers package is for userspace API (uapi) headers that are
> part of the toolchain. dma-direction.h is for kernel code. The 'kbuild'
> part in the path above indicates that you are building a kernel module.
>
> linux/dma-direct.h was introduced in kernel version 4.16 (commit
> ea8c64ace866). But ti-sgx-km commit cf7f48cb30a predates this kernel by
> few years. So this it probably a TI kernel that carries the header.
>
> The BR2_PACKAGE_TI_SGX_KM help text says this:
>
>           Note: it needs a TI specific kernel to build properly.
>
> baruch
>
> > Not sure if this is the same file this package is looking for, but just
> > renamed.  Looking through config for the kernel to see if I missed
> > something.
>
> --
>                                                      ~. .~   Tk Open
> Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
>


-- 
Patricia A. Holden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210723/1c1b5a4c/attachment.html>


More information about the buildroot mailing list