On 08/31/2011 07:01 AM, Michal Marek wrote: >>> >>> For reference, putting the following in arch/x86/include/asm/Kbuild does >>> *not* work, because $(objtree)/arch/x86/include/asm doesn't exist, and >>> so Kbuild generates an invalid path: >>> >>> objhdr-y += ../generated/asm/unistd_32.h >>> objhdr-y += ../generated/asm/unistd_64.h >> >> Similarly, overriding obj in the same file does not work, because >> scripts/Makefile.headersinst uses $(srctree)/$(obj) not >> $(srctree)/$(src) ... is that normal/expected? > > Can you either post a patch or a link to a git tree with your current > status? > git://git.zytor.com/users/hpa/kernel/autogen.git Patch attached. -hpa