Makefile (2383050f6a3a2e00636eabfcf66445af653ddd80) Makefile (f8fa70f392fab8697b6358bb7e4f8c3e8429ec7b)
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
9# for more details.
10#
11# Copyright (C) 1995-2001 by Russell King
12
13LDFLAGS_vmlinux :=-p --no-undefined -X
14CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET)
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
9# for more details.
10#
11# Copyright (C) 1995-2001 by Russell King
12
13LDFLAGS_vmlinux :=-p --no-undefined -X
14CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET)
15OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
16GZFLAGS :=-9
17
18ifneq ($(CONFIG_RELOCATABLE),)
19LDFLAGS_vmlinux += -pie
20endif
21
22KBUILD_DEFCONFIG := defconfig
23

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

90
91all: $(KBUILD_IMAGE) $(KBUILD_DTBS)
92
93boot := arch/arm64/boot
94
95Image: vmlinux
96 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
97
15GZFLAGS :=-9
16
17ifneq ($(CONFIG_RELOCATABLE),)
18LDFLAGS_vmlinux += -pie
19endif
20
21KBUILD_DEFCONFIG := defconfig
22

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

89
90all: $(KBUILD_IMAGE) $(KBUILD_DTBS)
91
92boot := arch/arm64/boot
93
94Image: vmlinux
95 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
96
98Image.%: Image
97Image.%: vmlinux
99 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
100
101zinstall install:
102 $(Q)$(MAKE) $(build)=$(boot) $@
103
104%.dtb: scripts
105 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
106

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

116vdso_install:
117 $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@
118
119# We use MRPROPER_FILES and CLEAN_FILES now
120archclean:
121 $(Q)$(MAKE) $(clean)=$(boot)
122 $(Q)$(MAKE) $(clean)=$(boot)/dts
123
98 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
99
100zinstall install:
101 $(Q)$(MAKE) $(build)=$(boot) $@
102
103%.dtb: scripts
104 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
105

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

115vdso_install:
116 $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@
117
118# We use MRPROPER_FILES and CLEAN_FILES now
119archclean:
120 $(Q)$(MAKE) $(clean)=$(boot)
121 $(Q)$(MAKE) $(clean)=$(boot)/dts
122
123# We need to generate vdso-offsets.h before compiling certain files in kernel/.
124# In order to do that, we should use the archprepare target, but we can't since
125# asm-offsets.h is included in some files used to generate vdso-offsets.h, and
126# asm-offsets.h is built in prepare0, for which archprepare is a dependency.
127# Therefore we need to generate the header after prepare0 has been made, hence
128# this hack.
129prepare: vdso_prepare
130vdso_prepare: prepare0
131 $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso include/generated/vdso-offsets.h
132
124define archhelp
125 echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
126 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
127 echo '* dtbs - Build device tree blobs for enabled boards'
128 echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
129 echo ' install - Install uncompressed kernel'
130 echo ' zinstall - Install compressed kernel'
131 echo ' Install using (your) ~/bin/installkernel or'
132 echo ' (distribution) /sbin/installkernel or'
133 echo ' install to $$(INSTALL_PATH) and run lilo'
134endef
133define archhelp
134 echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
135 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
136 echo '* dtbs - Build device tree blobs for enabled boards'
137 echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
138 echo ' install - Install uncompressed kernel'
139 echo ' zinstall - Install compressed kernel'
140 echo ' Install using (your) ~/bin/installkernel or'
141 echo ' (distribution) /sbin/installkernel or'
142 echo ' install to $$(INSTALL_PATH) and run lilo'
143endef