ci: mark headers under 'drivers' folder as project headers
Mark headers under 'drivers' folder as project headers,
the current script incorrectly categorizes them as third-party
headers, leading to inaccurate ordering suggestions. For
example, the script suggest the following though 'rss'
headers are part of project:
5abcc8399::drivers/arm/rss/rss_comms_protocol_embed.c:
Include ordering error, order should be:
#include "rss_comms_protocol_common.h"
#include "rss_comms_protocol_embed.h"
#include <common/debug.h>
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I803b3ed6add19e64e09050b447181a2bb5f1ed91
(cherry picked from commit 4eae5438dbdd764a6880b83a352eb8ce210d6809)
diff --git a/script/static-checks/check-include-order.py b/script/static-checks/check-include-order.py
index 2788a99..3d6b3a3 100755
--- a/script/static-checks/check-include-order.py
+++ b/script/static-checks/check-include-order.py
@@ -91,7 +91,7 @@
plat_common_incs = dir_include_paths("include/plat/common")
plat_incs.difference_update(plat_common_incs)
libc_incs = dir_include_paths("include/lib/libc")
- proj_incs = dir_include_paths("include/")
+ proj_incs = dir_include_paths("include/") | dir_include_paths("drivers/")
third_party_incs = []
third_party_incs.append(dir_include_paths("mbedtls"))
third_party_incs.append(dir_include_paths("include/lib/libfdt"))