From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Wed, 17 Oct 2018 13:55:29 +0200 Subject: changing parameters in build In-Reply-To: References: Message-ID: <20181017115529.GA323@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Wed, Oct 17, 2018 at 04:24:13PM +0800, Carter Cheng wrote: > Hi, > > I am having exploring how much work it would be to do whole kernel > optimization using clang on the current kernel. My understanding is the > kernel uses a recursive make file system. I am curious if there are any > easy ways to get the kernel to build llvm bit code for all files without > going through and hand editing hundreds of makefiles. There is no need to modify more than one makefile. Look at how the kernel is built, you should be just fine as-is because people use clang just fine today. good luck! greg k-h