From 8c722087b150c9295a7c2bc7a91962c899bb57d6 Mon Sep 17 00:00:00 2001 From: Eren Terzioglu Date: Mon, 16 Dec 2024 16:06:16 +0100 Subject: [PATCH] tools/Unix.mk: Add debug_info target to print nxdiag output --- tools/Unix.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/Unix.mk b/tools/Unix.mk index e72ecc7743844..ebcb3978a8acb 100644 --- a/tools/Unix.mk +++ b/tools/Unix.mk @@ -162,6 +162,7 @@ all: $(BIN) .PHONY: context clean_context config oldconfig menuconfig nconfig qconfig gconfig export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean .PHONY: pass1 pass1dep .PHONY: pass2 pass2dep +.PHONY: debug_info # Target used to copy include/nuttx/lib/math.h. If CONFIG_ARCH_MATH_H is # defined, then there is an architecture specific math.h header file @@ -618,6 +619,13 @@ bootloader: clean_bootloader: $(Q) $(MAKE) -C $(ARCH_SRC) clean_bootloader +# debug_info: Parse nxdiag example output file (sysinfo.h) and print + +debug_info: +ifneq ($(APPDIR),) + $(Q) $(MAKE) -C $(APPDIR) debug_info +endif + # pass1dep: Create pass1 build dependencies # pass2dep: Create pass2 build dependencies