From d832f1a58cd36a390148a1ba7258f77b2003fecc Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Fri, 28 Sep 2018 20:33:47 +0200 Subject: Makefile: explain the purpose of sorting initialization operations --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 996f0dbf..94db3b6c 100644 --- a/Makefile +++ b/Makefile @@ -330,6 +330,8 @@ endef .x15.sorted_init_ops: $(filter %.c,$(x15_SOURCES)) include/generated/autoconf.h $(call gen_sorted_init_ops) +# Adding the sorted initialization operations as a dependency allows checking +# for loops at build time. x15_DEPS := $(x15_LDS) .x15.sorted_init_ops # Compiling produces dependency rules as a side-effect. When the dependency -- cgit v1.2.3