Question regarding headers to be exported
Szabolcs Nagy
szabolcs.nagy@arm.com
Thu Nov 12 08:11:06 GMT 2020
The 11/10/2020 17:27, Lukasz Majewski wrote:
> Dear Community,
>
> Recently, I've been delving into Makefiles to understand the idea
> behind the way headers are exported (installed) on the target system.
>
> There is sysdep_headers variable, which adds some files (like
> sys/timerfd.h, bits/shmlba.h) but also some files are exported when
> they are placed in the ./include/* directory (includedir variable).
>
> One example is struct_timespec.h:
>
> ./include/bits/types/struct_timespec.h -> here we just have #include to
> exported one
> ./time/bits/types/struct_timespec.h
>
>
> I'm wondering why all exported files are not just added to
> "sysdep_headers" (or any other variable)?
>
> Why do we have some indirection with "includedir" variable (and
> repetition of directory tree) ?
i'd expect sysdep_headers to be installed from
the sysdep directories (with a precedence order
based on current config)
and other headers are installed from generic
directories.
(but i havent checked the details)
>
> Thanks in advance for the explanation.
>
>
> Best regards,
>
> Lukasz Majewski
>
> --
>
> DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
More information about the Libc-help
mailing list