]> Pileus Git - ~andy/linux/blobdiff - arch/x86/boot/Makefile
x86, boot: Restrict CFLAGS for hostprogs
[~andy/linux] / arch / x86 / boot / Makefile
index 95365a82b6a05b06051217e821ad79118998e2ca..3e02148bb7744181d7ad8c27a23c0870c81ef9ff 100644 (file)
@@ -37,8 +37,9 @@ setup-y               += video-bios.o
 targets                += $(setup-y)
 hostprogs-y    := mkcpustr tools/build
 
-HOST_EXTRACFLAGS += $(LINUXINCLUDE)
-
+HOSTCFLAGS_mkcpustr.o := -I$(srctree)/arch/$(SRCARCH)/include
+HOST_EXTRACFLAGS += -I$(objtree)/include -I$(srctree)/tools/include \
+                   -include $(srctree)/include/linux/kconfig.h
 $(obj)/cpu.o: $(obj)/cpustr.h
 
 quiet_cmd_cpustr = CPUSTR  $@