Makefile revision 63917f0b5ba2a932d4fca7f67d1a1eae9034269e
18c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# 28c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# arch/arm64/Makefile 38c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# 48c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# This file is included by the global makefile so that you can add your own 58c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# architecture-specific flags and dependencies. 68c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# 78c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# This file is subject to the terms and conditions of the GNU General Public 88c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# License. See the file "COPYING" in the main directory of this archive 98c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# for more details. 108c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# 118c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# Copyright (C) 1995-2001 by Russell King 128c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 138c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasLDFLAGS_vmlinux :=-p --no-undefined -X 148c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasCPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET) 158c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasOBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S 168c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasGZFLAGS :=-9 178c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 188c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasLIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 198c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 208c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasKBUILD_DEFCONFIG := defconfig 218c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 228c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasKBUILD_CFLAGS += -mgeneral-regs-only 238c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasKBUILD_CPPFLAGS += -mlittle-endian 248c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasAS += -EL 258c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasLD += -EL 268c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 278c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinascomma = , 288c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 298c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasCHECKFLAGS += -D__aarch64__ 308c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 318c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# Default value 328c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinashead-y := arch/arm64/kernel/head.o 338c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 348c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# The byte offset of the kernel image in RAM from the start of RAM. 358c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasTEXT_OFFSET := 0x00080000 368c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 378c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinasexport TEXT_OFFSET GZFLAGS 388c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 398c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinascore-y += arch/arm64/kernel/ arch/arm64/mm/ 406211753fdfd05af9e08f54c8d0ba3ee516034878Marc Zyngiercore-$(CONFIG_KVM) += arch/arm64/kvm/ 4163917f0b5ba2a932d4fca7f67d1a1eae9034269eCatalin Marinascore-$(CONFIG_XEN) += arch/arm64/xen/ 428c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinaslibs-y := arch/arm64/lib/ $(libs-y) 438c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinaslibs-y += $(LIBGCC) 448c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 458c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# Default target when executing plain make 4670f915a299bc72424fc2d3498284f6d48b880afaRob HerringKBUILD_IMAGE := Image.gz 4770f915a299bc72424fc2d3498284f6d48b880afaRob HerringKBUILD_DTBS := dtbs 488c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 4970f915a299bc72424fc2d3498284f6d48b880afaRob Herringall: $(KBUILD_IMAGE) $(KBUILD_DTBS) 508c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 518c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinasboot := arch/arm64/boot 528c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 538c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin MarinasImage Image.gz: vmlinux 5470f915a299bc72424fc2d3498284f6d48b880afaRob Herring $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 558c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 568c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinaszinstall install: vmlinux 5770f915a299bc72424fc2d3498284f6d48b880afaRob Herring $(Q)$(MAKE) $(build)=$(boot) $@ 588c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 5970f915a299bc72424fc2d3498284f6d48b880afaRob Herring%.dtb: scripts 6070f915a299bc72424fc2d3498284f6d48b880afaRob Herring $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ 6170f915a299bc72424fc2d3498284f6d48b880afaRob Herring 6270f915a299bc72424fc2d3498284f6d48b880afaRob Herringdtbs: scripts 6358fea354d887fddddd342a8d14b02069161ca904Catalin Marinas $(Q)$(MAKE) $(build)=$(boot)/dts dtbs 648c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 658c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas# We use MRPROPER_FILES and CLEAN_FILES now 668c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinasarchclean: 678c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas $(Q)$(MAKE) $(clean)=$(boot) 688c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas 698c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinasdefine archhelp 708c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)' 718c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' 7270f915a299bc72424fc2d3498284f6d48b880afaRob Herring echo '* dtbs - Build device tree blobs for enabled boards' 738c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo ' install - Install uncompressed kernel' 748c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo ' zinstall - Install compressed kernel' 758c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo ' Install using (your) ~/bin/installkernel or' 768c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo ' (distribution) /sbin/installkernel or' 778c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinas echo ' install to $$(INSTALL_PATH) and run lilo' 788c2c3df31e3b87cb5348e48776c366ebd1dc5a7aCatalin Marinasendef 79