Makefile (596b0474d3d9b1242eab713f84d8873f9887d980) Makefile (d7071743db31b4f6898b1c742e4b451bb4bc4b02)
1# This file is included by the global makefile so that you can add your own
2# architecture-specific flags and dependencies. Remember to do have actions
3# for "archclean" and "archdep" for cleaning up and making dependencies for
4# this architecture
5#
6# This file is subject to the terms and conditions of the GNU General Public
7# License. See the file "COPYING" in the main directory of this archive
8# for more details.

--- 39 unchanged lines hidden (view full) ---

48KBUILD_CFLAGS += -DCONFIG_PAGE_OFFSET=$(CONFIG_PAGE_OFFSET)
49
50ifeq ($(CONFIG_CMODEL_MEDLOW),y)
51 KBUILD_CFLAGS += -mcmodel=medlow
52endif
53ifeq ($(CONFIG_CMODEL_MEDANY),y)
54 KBUILD_CFLAGS += -mcmodel=medany
55endif
1# This file is included by the global makefile so that you can add your own
2# architecture-specific flags and dependencies. Remember to do have actions
3# for "archclean" and "archdep" for cleaning up and making dependencies for
4# this architecture
5#
6# This file is subject to the terms and conditions of the GNU General Public
7# License. See the file "COPYING" in the main directory of this archive
8# for more details.

--- 39 unchanged lines hidden (view full) ---

48KBUILD_CFLAGS += -DCONFIG_PAGE_OFFSET=$(CONFIG_PAGE_OFFSET)
49
50ifeq ($(CONFIG_CMODEL_MEDLOW),y)
51 KBUILD_CFLAGS += -mcmodel=medlow
52endif
53ifeq ($(CONFIG_CMODEL_MEDANY),y)
54 KBUILD_CFLAGS += -mcmodel=medany
55endif
56ifeq ($(CONFIG_MODULE_SECTIONS),y)
57 KBUILD_LDS_MODULE += $(srctree)/arch/riscv/kernel/module.lds
58endif
56ifeq ($(CONFIG_PERF_EVENTS),y)
57 KBUILD_CFLAGS += -fno-omit-frame-pointer
58endif
59
60KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
61
62# GCC versions that support the "-mstrict-align" option default to allowing
63# unaligned accesses. While unaligned accesses are explicitly allowed in the

--- 8 unchanged lines hidden (view full) ---

72boot := arch/riscv/boot
73KBUILD_IMAGE := $(boot)/Image.gz
74
75head-y := arch/riscv/kernel/head.o
76
77core-y += arch/riscv/
78
79libs-y += arch/riscv/lib/
59ifeq ($(CONFIG_PERF_EVENTS),y)
60 KBUILD_CFLAGS += -fno-omit-frame-pointer
61endif
62
63KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
64
65# GCC versions that support the "-mstrict-align" option default to allowing
66# unaligned accesses. While unaligned accesses are explicitly allowed in the

--- 8 unchanged lines hidden (view full) ---

75boot := arch/riscv/boot
76KBUILD_IMAGE := $(boot)/Image.gz
77
78head-y := arch/riscv/kernel/head.o
79
80core-y += arch/riscv/
81
82libs-y += arch/riscv/lib/
83libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
80
81PHONY += vdso_install
82vdso_install:
83 $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@
84
85ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_KENDRYTE),yy)
86KBUILD_IMAGE := $(boot)/loader.bin
87else

--- 12 unchanged lines hidden ---
84
85PHONY += vdso_install
86vdso_install:
87 $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@
88
89ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_KENDRYTE),yy)
90KBUILD_IMAGE := $(boot)/loader.bin
91else

--- 12 unchanged lines hidden ---