diff --git a/Makefile b/Makefile
index 94ae63ea2f864dd1b1e337ce4f7c7ec467e166aa..ca91e69a5bba2b559b07e4abe0805b1e85ae9958 100644
--- a/Makefile
+++ b/Makefile
@@ -274,13 +274,6 @@ endif
         # over the sources.
 endif
 
-################################################################################
-# Include libraries' Makefile that are used in all BL
-################################################################################
-
-include lib/stack_protector/stack_protector.mk
-
-
 ################################################################################
 # Include the platform specific Makefile after the SPD Makefile (the platform
 # makefile may use all previous definitions in this file)
@@ -440,6 +433,12 @@ ifneq (${FIP_ALIGN},0)
 FIP_ARGS += --align ${FIP_ALIGN}
 endif
 
+################################################################################
+# Include libraries' Makefile that are used in all BL
+################################################################################
+
+include lib/stack_protector/stack_protector.mk
+
 ################################################################################
 # Auxiliary tools (fiptool, cert_create, etc)
 ################################################################################