forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/x86/realmode/rm/Makefile
....@@ -6,13 +6,16 @@
66 # for more details.
77 #
88 #
9
+
10
+# Sanitizer runtimes are unavailable and cannot be linked here.
911 KASAN_SANITIZE := n
12
+KCSAN_SANITIZE := n
1013 OBJECT_FILES_NON_STANDARD := y
1114
1215 # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
1316 KCOV_INSTRUMENT := n
1417
15
-always := realmode.bin realmode.relocs
18
+always-y := realmode.bin realmode.relocs
1619
1720 wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
1821 wakeup-objs += copy.o bioscall.o regs.o
....@@ -37,8 +40,7 @@
3740 sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p'
3841
3942 quiet_cmd_pasyms = PASYMS $@
40
- cmd_pasyms = $(NM) $(filter-out FORCE,$^) | \
41
- sed $(sed-pasyms) | sort | uniq > $@
43
+ cmd_pasyms = $(NM) $(real-prereqs) | sed $(sed-pasyms) | sort | uniq > $@
4244
4345 targets += pasyms.h
4446 $(obj)/pasyms.h: $(REALMODE_OBJS) FORCE
....@@ -72,5 +74,6 @@
7274 KBUILD_CFLAGS := $(REALMODE_CFLAGS) -D_SETUP -D_WAKEUP \
7375 -I$(srctree)/arch/x86/boot
7476 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
77
+KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
7578 GCOV_PROFILE := n
7679 UBSAN_SANITIZE := n