• Arnd Bergmann's avatar
    Kbuild: always prefix objtree in LINUXINCLUDE · 3308b285
    Arnd Bergmann authored
    When $(LINUXINCLUDE) is added to the cflags of a target that
    normall doesn't have it (e.g. HOSTCFLAGS), each entry in the
    list is expanded so that we search both $(objtree) and $(srctree),
    which is a bit silly, as we already know which of the two we
    want for each entry in LINUXINCLUDE.
    
    Also, a follow-up patch changes the behavior so we only look in
    $(srctree) for manually added include path, and that breaks finding
    the generated headers.
    
    This adds an explicit $(objtree) for each tree that we want to
    look for generated files.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
    3308b285
Makefile 56.1 KB