hp/pavilion_m6_1035dx: Sanitize #includes
commit1d87dac4e478608a2605b3e983128d32df8526f3
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Fri, 28 Mar 2014 19:48:13 +0000 (28 14:48 -0500)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 3 Apr 2014 18:19:22 +0000 (3 20:19 +0200)
tree4bc30a5269bdf0fbf93b214aef402d08171098e4
parentcb3ba5fdbc5cc9bd02b4aacf569cb455c34b81bc
hp/pavilion_m6_1035dx: Sanitize #includes

There were a number of things wrong with the includes. First, The
includes did not use paths to AGESA files, thus relying on the
compiler include paths to find the correct file. This made it unclear
where the file included was located, and whether it was local, under
vendorcode, or under a different directory. Instead, use full paths
for each non-local include.

Second, the local includes were mixed with the rest, making it unclear
which file is local and which one is not. Keep the local includes at
the top. This also prevents us from polluting the namespace of local
headers, with library definitions, and allows us to catch if we missed
an otherwise needed external header.

Thirdly, alphabetize the order of includes where possible.

Change-Id: I22c543291beabb83c16d912ea0a490be6ca4e03c
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/5412
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
12 files changed:
src/mainboard/hp/pavilion_m6_1035dx/BiosCallOuts.c
src/mainboard/hp/pavilion_m6_1035dx/PlatformGnbPcie.c
src/mainboard/hp/pavilion_m6_1035dx/PlatformGnbPcieComplex.h
src/mainboard/hp/pavilion_m6_1035dx/acpi_tables.c
src/mainboard/hp/pavilion_m6_1035dx/agesawrapper.c
src/mainboard/hp/pavilion_m6_1035dx/agesawrapper.h
src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
src/mainboard/hp/pavilion_m6_1035dx/get_bus_conf.c
src/mainboard/hp/pavilion_m6_1035dx/irq_tables.c
src/mainboard/hp/pavilion_m6_1035dx/mainboard.c
src/mainboard/hp/pavilion_m6_1035dx/mptable.c
src/mainboard/hp/pavilion_m6_1035dx/romstage.c