hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/lib.mk
....@@ -128,6 +128,11 @@
128128 clean:
129129 $(CLEAN)
130130
131
+# Enables to extend CFLAGS and LDFLAGS from command line, e.g.
132
+# make USERCFLAGS=-Werror USERLDFLAGS=-static
133
+CFLAGS += $(USERCFLAGS)
134
+LDFLAGS += $(USERLDFLAGS)
135
+
131136 # When make O= with kselftest target from main level
132137 # the following aren't defined.
133138 #