1 LDFLAGS_vmlinux
:= --no-undefined
-X
2 OBJCOPYFLAGS
:= -O binary
-R .note
-R .note.gnu.build-id
-R .comment
-S
4 KBUILD_DEFCONFIG
:= defconfig
8 ifdef CONFIG_FUNCTION_TRACER
9 arch-y
+= -malways-save-lp
-mno-relax
12 KBUILD_CFLAGS
+= $(call cc-option
, -mno-sched-prolog-epilog
)
13 KBUILD_CFLAGS
+= -mcmodel
=large
15 KBUILD_CFLAGS
+=$(arch-y
) $(tune-y
)
16 KBUILD_AFLAGS
+=$(arch-y
) $(tune-y
)
19 head-y
:= arch
/nds32
/kernel
/head.o
20 textaddr-y
:= $(CONFIG_PAGE_OFFSET
)+0xc000
22 TEXTADDR
:= $(textaddr-y
)
27 # If we have a machine-specific directory, then include it in the build.
28 core-y
+= arch
/nds32
/kernel
/ arch
/nds32
/mm
/
29 libs-y
+= arch
/nds32
/lib
/
31 ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""'
37 ifdef CONFIG_CPU_LITTLE_ENDIAN
38 KBUILD_CFLAGS
+= $(call cc-option
, -EL
)
39 KBUILD_AFLAGS
+= $(call cc-option
, -EL
)
40 KBUILD_LDFLAGS
+= $(call cc-option
, -EL
)
41 CHECKFLAGS
+= -D__NDS32_EL__
43 KBUILD_CFLAGS
+= $(call cc-option
, -EB
)
44 KBUILD_AFLAGS
+= $(call cc-option
, -EB
)
45 KBUILD_LDFLAGS
+= $(call cc-option
, -EB
)
46 CHECKFLAGS
+= -D__NDS32_EB__
49 boot
:= arch
/nds32
/boot
50 core-
$(BUILTIN_DTB
) += $(boot
)/dts
/
55 $(Q
)$(MAKE
) $(build
)=$(boot
) $(boot
)/$@
60 $(Q
)$(MAKE
) $(build
)=arch
/nds32
/kernel
/vdso
$@
63 vdso_prepare
: prepare0
64 $(Q
)$(MAKE
) $(build
)=arch
/nds32
/kernel
/vdso
include/generated
/vdso-offsets.h
66 CLEAN_FILES
+= include/asm-nds32
/constants.h
*
68 # We use MRPROPER_FILES and CLEAN_FILES now
70 $(Q
)$(MAKE
) $(clean)=$(boot
)
73 echo
' Image - kernel image (arch/$(ARCH)/boot/Image)'