forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/platforms/powermac/Makefile
....@@ -1,5 +1,12 @@
11 # SPDX-License-Identifier: GPL-2.0
22 CFLAGS_bootx_init.o += -fPIC
3
+CFLAGS_bootx_init.o += -fno-stack-protector
4
+
5
+KASAN_SANITIZE_bootx_init.o := n
6
+
7
+ifdef CONFIG_KASAN
8
+CFLAGS_bootx_init.o += -DDISABLE_BRANCH_PROFILING
9
+endif
310
411 ifdef CONFIG_FUNCTION_TRACER
512 # Do not trace early boot code
....@@ -14,7 +21,5 @@
1421 # need this to be a bool. Cheat here and pretend CONFIG_NVRAM=m is really
1522 # CONFIG_NVRAM=y
1623 obj-$(CONFIG_NVRAM:m=y) += nvram.o
17
-# ppc64 pmac doesn't define CONFIG_NVRAM but needs nvram stuff
18
-obj-$(CONFIG_PPC64) += nvram.o
1924 obj-$(CONFIG_PPC32) += bootx_init.o
2025 obj-$(CONFIG_SMP) += smp.o