[Buildroot] Question about pkg-config pc files

Arnout Vandecappelle arnout at mind.be
Fri Jul 23 20:57:23 UTC 2021



On 23/07/2021 20:52, Patricia Holden wrote:
> 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.

 ti-sgx consists of two separate packages: ti-sgx-km which is the kernel module,
and ti-sgx-um which is the userspace library.

> 
> On Thu, Jul 22, 2021 at 11:39 PM Baruch Siach <baruch at tkos.co.il
> <mailto: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.

 More precisely, the current Buildroot master version corresponds to TI SDK
06.01.00.08, so you'll probably need a kernel from the same SDK version.

 Regards,
 Arnout

> 
>     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 <mailto:baruch at tkos.co.il> - tel: +972.52.368.4656,
>     http://www.tkos.co.il <http://www.tkos.co.il> -
> 
> 
> 
> -- 
> Patricia A. Holden


More information about the buildroot mailing list