build: Refactor the stack trace lib. [1/1]

PD#SWPL-68240

Problem:
Refactor for all.

Solution:
Fixed invalid symbol table error.

Verify:
N/A

Change-Id: I870170306faac773b5b37556179945dfdfd4c5df
Signed-off-by: Xiaohu.Huang <xiaohu.huang@amlogic.com>
diff --git a/Makefile b/Makefile
index 4c28e65..be7e9c2 100755
--- a/Makefile
+++ b/Makefile
@@ -282,9 +282,10 @@
 	fi
 
 .PHONY: stacktrace
-stacktrace: kernel
+stacktrace:
+	@make && \
 	make -f $(PRJDIR)/build/symtable.mk backtrace && \
-	cmake --build $(kernel_BUILD_DIR) && \
+	make && \
 	make -f $(PRJDIR)/build/symtable.mk clean
 
 .PHONY: release