| .. | .. |
|---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | LDFLAGS_vmlinux := --no-undefined -X |
|---|
| 2 | 3 | OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S |
|---|
| 3 | | - |
|---|
| 4 | | -KBUILD_DEFCONFIG := defconfig |
|---|
| 5 | | - |
|---|
| 6 | | -comma = , |
|---|
| 7 | 4 | |
|---|
| 8 | 5 | ifdef CONFIG_FUNCTION_TRACER |
|---|
| 9 | 6 | arch-y += -malways-save-lp -mno-relax |
|---|
| 10 | 7 | endif |
|---|
| 8 | + |
|---|
| 9 | +# Avoid generating FPU instructions |
|---|
| 10 | +arch-y += -mno-ext-fpu-sp -mno-ext-fpu-dp -mfloat-abi=soft |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog) |
|---|
| 13 | 13 | KBUILD_CFLAGS += -mcmodel=large |
|---|
| .. | .. |
|---|
| 26 | 26 | |
|---|
| 27 | 27 | # If we have a machine-specific directory, then include it in the build. |
|---|
| 28 | 28 | core-y += arch/nds32/kernel/ arch/nds32/mm/ |
|---|
| 29 | +core-$(CONFIG_FPU) += arch/nds32/math-emu/ |
|---|
| 29 | 30 | libs-y += arch/nds32/lib/ |
|---|
| 30 | 31 | |
|---|
| 31 | 32 | ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""' |
|---|
| .. | .. |
|---|
| 47 | 48 | endif |
|---|
| 48 | 49 | |
|---|
| 49 | 50 | boot := arch/nds32/boot |
|---|
| 50 | | -core-$(BUILTIN_DTB) += $(boot)/dts/ |
|---|
| 51 | | - |
|---|
| 52 | | -.PHONY: FORCE |
|---|
| 51 | +core-y += $(boot)/dts/ |
|---|
| 53 | 52 | |
|---|
| 54 | 53 | Image: vmlinux |
|---|
| 55 | 54 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
|---|
| .. | .. |
|---|
| 63 | 62 | vdso_prepare: prepare0 |
|---|
| 64 | 63 | $(Q)$(MAKE) $(build)=arch/nds32/kernel/vdso include/generated/vdso-offsets.h |
|---|
| 65 | 64 | |
|---|
| 66 | | -CLEAN_FILES += include/asm-nds32/constants.h* |
|---|
| 67 | | - |
|---|
| 68 | | -# We use MRPROPER_FILES and CLEAN_FILES now |
|---|
| 69 | 65 | archclean: |
|---|
| 70 | 66 | $(Q)$(MAKE) $(clean)=$(boot) |
|---|
| 71 | 67 | |
|---|