xref: /linux/arch/arm64/boot/Makefile (revision 8c2c3df31e3b87cb5348e48776c366ebd1dc5a7a)
1*8c2c3df3SCatalin Marinas#
2*8c2c3df3SCatalin Marinas# arch/arm64/boot/Makefile
3*8c2c3df3SCatalin Marinas#
4*8c2c3df3SCatalin Marinas# This file is included by the global makefile so that you can add your own
5*8c2c3df3SCatalin Marinas# architecture-specific flags and dependencies.
6*8c2c3df3SCatalin Marinas#
7*8c2c3df3SCatalin Marinas# This file is subject to the terms and conditions of the GNU General Public
8*8c2c3df3SCatalin Marinas# License.  See the file "COPYING" in the main directory of this archive
9*8c2c3df3SCatalin Marinas# for more details.
10*8c2c3df3SCatalin Marinas#
11*8c2c3df3SCatalin Marinas# Copyright (C) 2012, ARM Ltd.
12*8c2c3df3SCatalin Marinas# Author: Will Deacon <will.deacon@arm.com>
13*8c2c3df3SCatalin Marinas#
14*8c2c3df3SCatalin Marinas# Based on the ia64 boot/Makefile.
15*8c2c3df3SCatalin Marinas#
16*8c2c3df3SCatalin Marinas
17*8c2c3df3SCatalin Marinastargets := Image Image.gz
18*8c2c3df3SCatalin Marinas
19*8c2c3df3SCatalin Marinas$(obj)/Image: vmlinux FORCE
20*8c2c3df3SCatalin Marinas	$(call if_changed,objcopy)
21*8c2c3df3SCatalin Marinas
22*8c2c3df3SCatalin Marinas$(obj)/Image.gz: $(obj)/Image FORCE
23*8c2c3df3SCatalin Marinas	$(call if_changed,gzip)
24*8c2c3df3SCatalin Marinas
25*8c2c3df3SCatalin Marinas$(obj)/%.dtb: $(src)/dts/%.dts
26*8c2c3df3SCatalin Marinas	$(call cmd,dtc)
27*8c2c3df3SCatalin Marinas
28*8c2c3df3SCatalin Marinasinstall: $(obj)/Image
29*8c2c3df3SCatalin Marinas	$(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \
30*8c2c3df3SCatalin Marinas	$(obj)/Image System.map "$(INSTALL_PATH)"
31*8c2c3df3SCatalin Marinas
32*8c2c3df3SCatalin Marinaszinstall: $(obj)/Image.gz
33*8c2c3df3SCatalin Marinas	$(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \
34*8c2c3df3SCatalin Marinas	$(obj)/Image.gz System.map "$(INSTALL_PATH)"
35*8c2c3df3SCatalin Marinas
36*8c2c3df3SCatalin Marinasclean-files += *.dtb
37