pci_ids: no not include loader.h
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 11 Jan 2014 05:16:06 +0000 (05:16 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 18 Jan 2014 18:51:54 +0000 (18:51 +0000)
As per original approach by Rob, each user of the loader lib should include
loader.h and the pci_id_driver_map.h header will be used exclusively by the
loader.

Add back the include guard __IS_LOADER and remove no longer needed include
folder in the scons build.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
include/pci_ids/pci_id_driver_map.h
src/loader/SConscript

index 2e88451e018816a849ac22b28a31ad374381272f..db9e07fbb282fad08efe634d4af3797985fa1fe7 100644 (file)
@@ -2,12 +2,15 @@
 #define _PCI_ID_DRIVER_MAP_H_
 
 #include <stddef.h>
-#include "loader.h"
 
 #ifndef ARRAY_SIZE
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
 #endif
 
+#ifndef __IS_LOADER
+#  error "Only include from loader.c"
+#endif
+
 static const int i915_chip_ids[] = {
 #define CHIPSET(chip, desc, name) chip,
 #include "pci_ids/i915_pci_ids.h"
index 454e3284491b691a5f82892c1d95ca1b06bdd4a3..76b0871005be210049be05276041ba69e7bb20da 100644 (file)
@@ -6,7 +6,6 @@ if not env['drm']:
 env = env.Clone()
 
 env.Prepend(CPPPATH = [
-    '.',
     '#include'
 ])