[meta-freescale] [PATCH 01/14] linux-libc-headers: Use linux-libc-headers v4.9 for L4.9.123-2.3.0_8mm_ga

Gary Bisson gary.bisson at boundarydevices.com
Sun Oct 7 22:41:02 PDT 2018


Hi Carol,

This is fixed already by pointing to the kernel header directly.
https://github.com/Freescale/meta-freescale/commit/387b285adc25aa244bfe90f4083320304af237c5
https://github.com/Freescale/meta-freescale/commit/476c63185e6864f82e938247235e7ad8ad20af4b

Changing the toolchain header is not flexible enough. First, this is Yocto,
but you need to think about people using other build systems like Buildroot
where such change will never be merged.

Also there's the case of people using pre-built toolchains, you can't
control their headers versions.

All in all, you shouldn't rely on toolchains headers, especially for
LINUX_VERSION_CODE.

Also, in the future, NXP will provide 4.14 kernel version, but what if
someone wants to stick to a 4.9 (GA) kernel? Do you plan on having
libc-headers for all next kernel releases? Doesn't sound like a scalable
approach.

Regards,

Gary Bisson
Boundary Devices, LLC
www.boundarydevices.com <http://www.BoundaryDevices.com>


On Mon, Oct 8, 2018 at 5:15 AM Carol Zhu <carol.zhu at nxp.com> wrote:

> Hi Otavio,
>
> Sorry for the late reply, I just come back from our National Day Holiday.
>
> The current poky master has linux-libc-headers v4.18 but our kernel
> version is 4.9.123, the two version are mismatch.
> And when compiling vpu hantro, I got build break.
> It needs to do LINUX_VERSION_CODE check, which relies on the
> Linux/version.h from Linux-libc-headers.
> So I have to downgrade the Linux-libc-headers to 4.9 to match with our
> kernel version.
>
>
> B.R.
> Carol
> -----Original Message-----
> From: Otavio Salvador <otavio.salvador at ossystems.com.br>
> Sent: 2018年10月2日 1:49
> To: Carol Zhu <carol.zhu at nxp.com>; Tom Hochstein <tom.hochstein at nxp.com>
> Cc: meta-freescale Mailing List <meta-freescale at yoctoproject.org>
> Subject: Re: [meta-freescale] [PATCH 01/14] linux-libc-headers: Use
> linux-libc-headers v4.9 for L4.9.123-2.3.0_8mm_ga
>
> On Sun, Sep 30, 2018 at 5:55 AM Yuqing Zhu <carol.zhu at nxp.com> wrote:
> > Hold linux-libc-headers v4.9 in meta-freescale layer, which matches
> > the current linux-imx version in L4.9.123-2.3.0_8mm_ga.
> >
> > Signed-off-by: Yuqing Zhu <carol.zhu at nxp.com>
>
> I already reported multiple times that we cannot change this recipe.
>
> Both Max and Gary raised the same concerns about it making all packages
> machine specific which is forbidden. Please align with Tom about the
> incoming work of using a set of imx specific headers instead.
>
> --
> Otavio Salvador                             O.S. Systems
>
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=02%7C01%7Ccarol.zhu%40nxp.com%7Cb3d3ad002e774a24ae6808d627c633e2%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636740129563654748&sdata=7gWSdDOkNN4c0EZiO7oXayw5X5Hum9JTo4XHCOvtYYQ%3D&reserved=0
>
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=02%7C01%7Ccarol.zhu%40nxp.com%7Cb3d3ad002e774a24ae6808d627c633e2%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636740129563654748&sdata=T4EZfBHWgktjyz00XYdVi0rZCADIMj9CXIRjgFPECus%3D&reserved=0
> Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20181008/09a6631c/attachment.html>


More information about the meta-freescale mailing list