Makefile (d5e748ff2b996d83489ac76c072e8b99f9ecef13) Makefile (c931d34ea0853d41349e93f871bd3f17f1c03a6b)
1#
2# arch/arm64/Makefile
3#
4# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
7# This file is subject to the terms and conditions of the GNU General Public
8# License. See the file "COPYING" in the main directory of this archive

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

55
56KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)
57KBUILD_AFLAGS += $(call cc-option,-mabi=lp64)
58
59ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
60KBUILD_CPPFLAGS += -mbig-endian
61CHECKFLAGS += -D__AARCH64EB__
62AS += -EB
1#
2# arch/arm64/Makefile
3#
4# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
7# This file is subject to the terms and conditions of the GNU General Public
8# License. See the file "COPYING" in the main directory of this archive

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

55
56KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)
57KBUILD_AFLAGS += $(call cc-option,-mabi=lp64)
58
59ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
60KBUILD_CPPFLAGS += -mbig-endian
61CHECKFLAGS += -D__AARCH64EB__
62AS += -EB
63LD += -EB
64LDFLAGS += -maarch64linuxb
63# Prefer the baremetal ELF build target, but not all toolchains include
64# it so fall back to the standard linux version if needed.
65LDFLAGS += -EB $(call ld-option, -maarch64elfb, -maarch64linuxb)
65UTS_MACHINE := aarch64_be
66else
67KBUILD_CPPFLAGS += -mlittle-endian
68CHECKFLAGS += -D__AARCH64EL__
69AS += -EL
66UTS_MACHINE := aarch64_be
67else
68KBUILD_CPPFLAGS += -mlittle-endian
69CHECKFLAGS += -D__AARCH64EL__
70AS += -EL
70LD += -EL
71LDFLAGS += -maarch64linux
71# Same as above, prefer ELF but fall back to linux target if needed.
72LDFLAGS += -EL $(call ld-option, -maarch64elf, -maarch64linux)
72UTS_MACHINE := aarch64
73endif
74
75CHECKFLAGS += -D__aarch64__
76
77ifeq ($(CONFIG_ARM64_MODULE_PLTS),y)
78KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/arm64/kernel/module.lds
79endif

--- 90 unchanged lines hidden ---
73UTS_MACHINE := aarch64
74endif
75
76CHECKFLAGS += -D__aarch64__
77
78ifeq ($(CONFIG_ARM64_MODULE_PLTS),y)
79KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/arm64/kernel/module.lds
80endif

--- 90 unchanged lines hidden ---