From 7f159889c17857ad2f740e8e00d1c329fc10eee0 Mon Sep 17 00:00:00 2001 From: gaoyang3513 Date: Fri, 25 Oct 2024 23:03:56 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E6=96=B0=E5=A2=9E=E5=8F=8D=E6=B1=87?= =?UTF-8?q?=E7=BC=96=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ 01-Debug/01-Panic/Makefile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5ca55b21c..0bcb41fd0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ .modules.order.cmd .Module.symvers.cmd +*.dmp + Module.symvers modules.order compile_commands.json diff --git a/01-Debug/01-Panic/Makefile b/01-Debug/01-Panic/Makefile index 71b7ef1c6..6f5b4dea8 100644 --- a/01-Debug/01-Panic/Makefile +++ b/01-Debug/01-Panic/Makefile @@ -40,6 +40,7 @@ CC := $(CROSS_COMPILE)gcc LD := $(CROSS_COMPILE)ld AR := $(CROSS_COMPILE)ar STRIP := $(CROSS_COMPILE)strip +OBJDUMP := $(CROSS_COMPILE)objdump export ARCH CROSS_COMPILE @@ -52,6 +53,7 @@ ifeq ($(KERNELRELEASE),) all: init @$(MAKE) modules -C $(KERNEL_DIR) M=$(LOCAL_DIR) -j$(MULTI_CORES) # @$(MAKE) modules_install -C $(KERNEL_DIR) M=$(LOCAL_DIR) INSTALL_MOD_PATH=$(KERNEL_DIR)/_install_modules INSTALL_MOD_DIR=private + @$(OBJDUMP) -hdS test_ps.o > test_ps.dmp clean: # File @@ -81,5 +83,5 @@ INC_DIRS := ccflags-y += EXTRA_CFLAGS += -Wno-error=date-time # Fix compile error on gcc 4.9 and later -EXTRA_CFLAGS += -Wno-date-time +EXTRA_CFLAGS += -Wno-date-time -g endif # ifeq ($(KERNELRELEASE),)