forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/nds32/Makefile
....@@ -1,13 +1,13 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 LDFLAGS_vmlinux := --no-undefined -X
23 OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S
3
-
4
-KBUILD_DEFCONFIG := defconfig
5
-
6
-comma = ,
74
85 ifdef CONFIG_FUNCTION_TRACER
96 arch-y += -malways-save-lp -mno-relax
107 endif
8
+
9
+# Avoid generating FPU instructions
10
+arch-y += -mno-ext-fpu-sp -mno-ext-fpu-dp -mfloat-abi=soft
1111
1212 KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog)
1313 KBUILD_CFLAGS += -mcmodel=large
....@@ -26,6 +26,7 @@
2626
2727 # If we have a machine-specific directory, then include it in the build.
2828 core-y += arch/nds32/kernel/ arch/nds32/mm/
29
+core-$(CONFIG_FPU) += arch/nds32/math-emu/
2930 libs-y += arch/nds32/lib/
3031
3132 ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""'
....@@ -47,9 +48,7 @@
4748 endif
4849
4950 boot := arch/nds32/boot
50
-core-$(BUILTIN_DTB) += $(boot)/dts/
51
-
52
-.PHONY: FORCE
51
+core-y += $(boot)/dts/
5352
5453 Image: vmlinux
5554 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
....@@ -63,9 +62,6 @@
6362 vdso_prepare: prepare0
6463 $(Q)$(MAKE) $(build)=arch/nds32/kernel/vdso include/generated/vdso-offsets.h
6564
66
-CLEAN_FILES += include/asm-nds32/constants.h*
67
-
68
-# We use MRPROPER_FILES and CLEAN_FILES now
6965 archclean:
7066 $(Q)$(MAKE) $(clean)=$(boot)
7167