Makefile.config (edd1533d3ccd82dd5d600986d27d524e6be4c5fd) Makefile.config (34bec35cbbb23e5fd18100f2a2b217ebb6cb129c)
1# SPDX-License-Identifier: GPL-2.0-only
2
3ifeq ($(src-perf),)
4src-perf := $(srctree)/tools/perf
5endif
6
7ifeq ($(obj-perf),)
8obj-perf := $(OUTPUT)

--- 5 unchanged lines hidden (view full) ---

14
15$(shell printf "" > $(OUTPUT).config-detected)
16detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected)
17detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected)
18
19CFLAGS := $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS))
20HOSTCFLAGS := $(filter-out -Wnested-externs,$(EXTRA_WARNINGS))
21
1# SPDX-License-Identifier: GPL-2.0-only
2
3ifeq ($(src-perf),)
4src-perf := $(srctree)/tools/perf
5endif
6
7ifeq ($(obj-perf),)
8obj-perf := $(OUTPUT)

--- 5 unchanged lines hidden (view full) ---

14
15$(shell printf "" > $(OUTPUT).config-detected)
16detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected)
17detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected)
18
19CFLAGS := $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS))
20HOSTCFLAGS := $(filter-out -Wnested-externs,$(EXTRA_WARNINGS))
21
22# Enabled Wthread-safety analysis for clang builds.
23ifeq ($(CC_NO_CLANG), 0)
24 CFLAGS += -Wthread-safety
25endif
26
22include $(srctree)/tools/scripts/Makefile.arch
23
24$(call detected_var,SRCARCH)
25
26NO_PERF_REGS := 1
27
28ifneq ($(NO_SYSCALL_TABLE),1)
29 NO_SYSCALL_TABLE := 1

--- 1256 unchanged lines hidden (view full) ---

1286tip_instdir = $(prefix)/$(tipdir)
1287endif
1288perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
1289perf_include_instdir_SQ = $(subst ','\'',$(perf_include_instdir))
1290perf_examples_instdir_SQ = $(subst ','\'',$(perf_examples_instdir))
1291STRACE_GROUPS_INSTDIR_SQ = $(subst ','\'',$(STRACE_GROUPS_INSTDIR))
1292tip_instdir_SQ = $(subst ','\'',$(tip_instdir))
1293
27include $(srctree)/tools/scripts/Makefile.arch
28
29$(call detected_var,SRCARCH)
30
31NO_PERF_REGS := 1
32
33ifneq ($(NO_SYSCALL_TABLE),1)
34 NO_SYSCALL_TABLE := 1

--- 1256 unchanged lines hidden (view full) ---

1291tip_instdir = $(prefix)/$(tipdir)
1292endif
1293perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
1294perf_include_instdir_SQ = $(subst ','\'',$(perf_include_instdir))
1295perf_examples_instdir_SQ = $(subst ','\'',$(perf_examples_instdir))
1296STRACE_GROUPS_INSTDIR_SQ = $(subst ','\'',$(STRACE_GROUPS_INSTDIR))
1297tip_instdir_SQ = $(subst ','\'',$(tip_instdir))
1298
1299export perfexec_instdir_SQ
1300
1294# If we install to $(HOME) we keep the traceevent default:
1295# $(HOME)/.traceevent/plugins
1296# Otherwise we install plugins into the global $(libdir).
1297ifdef DESTDIR
1298plugindir=$(libdir)/traceevent/plugins
1299plugindir_SQ= $(subst ','\'',$(plugindir))
1300endif
1301
1302print_var = $(eval $(print_var_code)) $(info $(MSG))
1303define print_var_code
1301# If we install to $(HOME) we keep the traceevent default:
1302# $(HOME)/.traceevent/plugins
1303# Otherwise we install plugins into the global $(libdir).
1304ifdef DESTDIR
1305plugindir=$(libdir)/traceevent/plugins
1306plugindir_SQ= $(subst ','\'',$(plugindir))
1307endif
1308
1309print_var = $(eval $(print_var_code)) $(info $(MSG))
1310define print_var_code
1304 MSG = $(shell printf '...%30s: %s' $(1) $($(1)))
1311 MSG = $(shell printf '...%40s: %s' $(1) $($(1)))
1305endef
1306
1312endef
1313
1314ifeq ($(feature_display),1)
1315 $(call feature_display_entries)
1316endif
1317
1307ifeq ($(VF),1)
1308 # Display EXTRA features which are detected manualy
1309 # from here with feature_check call and thus cannot
1310 # be partof global state output.
1318ifeq ($(VF),1)
1319 # Display EXTRA features which are detected manualy
1320 # from here with feature_check call and thus cannot
1321 # be partof global state output.
1311 $(foreach feat,$(FEATURE_TESTS_EXTRA),$(call feature_print_status,$(feat),))
1322 $(foreach feat,$(FEATURE_TESTS_EXTRA),$(call feature_print_status,$(feat),) $(info $(MSG)))
1312 $(call print_var,prefix)
1313 $(call print_var,bindir)
1314 $(call print_var,libdir)
1315 $(call print_var,sysconfdir)
1316 $(call print_var,LIBUNWIND_DIR)
1317 $(call print_var,LIBDW_DIR)
1318 $(call print_var,JDIR)
1319
1320 ifeq ($(dwarf-post-unwind),1)
1323 $(call print_var,prefix)
1324 $(call print_var,bindir)
1325 $(call print_var,libdir)
1326 $(call print_var,sysconfdir)
1327 $(call print_var,LIBUNWIND_DIR)
1328 $(call print_var,LIBDW_DIR)
1329 $(call print_var,JDIR)
1330
1331 ifeq ($(dwarf-post-unwind),1)
1321 $(call feature_print_text,"DWARF post unwind library", $(dwarf-post-unwind-text))
1332 $(call feature_print_text,"DWARF post unwind library", $(dwarf-post-unwind-text)) $(info $(MSG))
1322 endif
1333 endif
1323 $(info )
1324endif
1325
1334endif
1335
1336$(info )
1337
1326$(call detected_var,bindir_SQ)
1327$(call detected_var,PYTHON_WORD)
1328ifneq ($(OUTPUT),)
1329$(call detected_var,OUTPUT)
1330endif
1331$(call detected_var,htmldir_SQ)
1332$(call detected_var,infodir_SQ)
1333$(call detected_var,mandir_SQ)

--- 13 unchanged lines hidden (view full) ---

1347$(call detected_var,BISON_FILE_PREFIX_MAP)
1348endif
1349
1350# re-generate FEATURE-DUMP as we may have called feature_check, found out
1351# extra libraries to add to LDFLAGS of some other test and then redo those
1352# tests.
1353$(shell rm -f $(FEATURE_DUMP_FILENAME))
1354$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FILENAME)))
1338$(call detected_var,bindir_SQ)
1339$(call detected_var,PYTHON_WORD)
1340ifneq ($(OUTPUT),)
1341$(call detected_var,OUTPUT)
1342endif
1343$(call detected_var,htmldir_SQ)
1344$(call detected_var,infodir_SQ)
1345$(call detected_var,mandir_SQ)

--- 13 unchanged lines hidden (view full) ---

1359$(call detected_var,BISON_FILE_PREFIX_MAP)
1360endif
1361
1362# re-generate FEATURE-DUMP as we may have called feature_check, found out
1363# extra libraries to add to LDFLAGS of some other test and then redo those
1364# tests.
1365$(shell rm -f $(FEATURE_DUMP_FILENAME))
1366$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FILENAME)))
1355
1356ifeq ($(feature_display),1)
1357 $(call feature_display_entries)
1358endif