1c0fbcd99SAnup Patel# 2c0fbcd99SAnup Patel# arch/riscv/boot/Makefile 3c0fbcd99SAnup Patel# 4c0fbcd99SAnup Patel# This file is included by the global makefile so that you can add your own 5c0fbcd99SAnup Patel# architecture-specific flags and dependencies. 6c0fbcd99SAnup Patel# 7c0fbcd99SAnup Patel# This file is subject to the terms and conditions of the GNU General Public 8c0fbcd99SAnup Patel# License. See the file "COPYING" in the main directory of this archive 9c0fbcd99SAnup Patel# for more details. 10c0fbcd99SAnup Patel# 11c0fbcd99SAnup Patel# Copyright (C) 2018, Anup Patel. 12c0fbcd99SAnup Patel# Author: Anup Patel <anup@brainfault.org> 13c0fbcd99SAnup Patel# 14c0fbcd99SAnup Patel# Based on the ia64 and arm64 boot/Makefile. 15c0fbcd99SAnup Patel# 16c0fbcd99SAnup Patel 17c0fbcd99SAnup PatelOBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S 18c0fbcd99SAnup Patel 19*405fe7aaSChristoph Hellwigtargets := Image loader 20c0fbcd99SAnup Patel 21c0fbcd99SAnup Patel$(obj)/Image: vmlinux FORCE 22c0fbcd99SAnup Patel $(call if_changed,objcopy) 23c0fbcd99SAnup Patel 24c0fbcd99SAnup Patel$(obj)/Image.gz: $(obj)/Image FORCE 25c0fbcd99SAnup Patel $(call if_changed,gzip) 26c0fbcd99SAnup Patel 27*405fe7aaSChristoph Hellwigloader.o: $(src)/loader.S $(obj)/Image 28*405fe7aaSChristoph Hellwig 29*405fe7aaSChristoph Hellwig$(obj)/loader: $(obj)/loader.o $(obj)/Image $(obj)/loader.lds FORCE 30*405fe7aaSChristoph Hellwig $(Q)$(LD) -T $(obj)/loader.lds -o $@ $(obj)/loader.o 31*405fe7aaSChristoph Hellwig 32c0fbcd99SAnup Patelinstall: 33c0fbcd99SAnup Patel $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 34c0fbcd99SAnup Patel $(obj)/Image System.map "$(INSTALL_PATH)" 35c0fbcd99SAnup Patel 36c0fbcd99SAnup Patelzinstall: 37c0fbcd99SAnup Patel $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 38c0fbcd99SAnup Patel $(obj)/Image.gz System.map "$(INSTALL_PATH)" 39