Commit c7355265 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Normal sources should not include <linux/compile.h>

include/linux/compile.h is a generated file, only init/Makefile knows 
about it - including it outside of init/* will cause trouble on
parallel builds.

Also, when compile.h already exists when 'make dep' is run, that'll pick
up a dependency on $(TOPDIR)/include/linux/compile.h. So init/Makefile
needs to tell make that this is actually the same file as 
../include/linux.compile.h
parent 71a15636
......@@ -12,6 +12,10 @@ include $(TOPDIR)/Rules.make
version.o: ../include/linux/compile.h
# 'make dep' may add a dependency on $(TOPDIR)/include/linux/compile.h
$(TOPDIR)/include/linux/compile.h: ../include/linux/compile.h ;
# compile.h changes depending on hostname, generation number, etc,
# so we regenerate it always.
# mkcompile_h will make sure to only update the
......
......@@ -49,7 +49,6 @@
#include <linux/file.h>
#include <linux/utsname.h>
#include <linux/version.h>
#include <linux/compile.h>
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/init.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment