[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6b6dd56-c948-54e8-df95-3d170a3c1e7d@infradead.org>
Date: Thu, 7 Jun 2018 17:07:01 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Jayant Chowdhary <jchowdhary@...gle.com>,
linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, kernel-team@...roid.com,
linux-kbuild@...r.kernel.org
Subject: Re: [PATCH] uapi: Make generic uapi headers compile standalone.
On 06/06/2018 04:16 PM, Jayant Chowdhary wrote:
> In order for static analysis tools to analyze each of the uapi headers,
> we need to enable them to compile stand-alone. Some uapi headers were
> missing dependencies which would not make them compile stand-alone in
> user-land. This patch adds those dependencies.
Hi,
Thanks for getting started on this. I see that the kbuild robot and I were
still not able to do successful builds even after this patch is applied.
We were building different targets though. robot was doing kernel builds
and I was doing a large "all-uapi" build.
I started on my all-uapi work about 1 week ago but haven't posted anything yet,
but it's posted (attached) below. It's not yet up to kernel quality yet (for a
Makefile), and I have made very little progress toward a successful userspace build.
If anyone is interested, just put these 3 files in <kernel_tree>/tools/build
and then run:
make ARCH=$some_arch O=build_dir headers_check
so that the headers will be cleaned up and installed in build_dir/usr/.
Then run 'make -f all-uapi.mk'
and the userspace program with all header files found in build_dir/usr/include
will be built -- i.e., attempted (not successfully).
(note: chmod +x hdr-fix-lines.pl)
--
~Randy
View attachment "all-uapi.mk" of type "text/x-makefile" (581 bytes)
View attachment "all-uapi.c" of type "text/x-csrc" (316 bytes)
Download attachment "hdr-fix-lines.pl" of type "application/x-perl" (488 bytes)
Powered by blists - more mailing lists