18c2ecf20Sopenharmony_ci# 28c2ecf20Sopenharmony_ci# arch/riscv/boot/Makefile 38c2ecf20Sopenharmony_ci# 48c2ecf20Sopenharmony_ci# This file is included by the global makefile so that you can add your own 58c2ecf20Sopenharmony_ci# architecture-specific flags and dependencies. 68c2ecf20Sopenharmony_ci# 78c2ecf20Sopenharmony_ci# This file is subject to the terms and conditions of the GNU General Public 88c2ecf20Sopenharmony_ci# License. See the file "COPYING" in the main directory of this archive 98c2ecf20Sopenharmony_ci# for more details. 108c2ecf20Sopenharmony_ci# 118c2ecf20Sopenharmony_ci# Copyright (C) 2018, Anup Patel. 128c2ecf20Sopenharmony_ci# Author: Anup Patel <anup@brainfault.org> 138c2ecf20Sopenharmony_ci# 148c2ecf20Sopenharmony_ci# Based on the ia64 and arm64 boot/Makefile. 158c2ecf20Sopenharmony_ci# 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciKCOV_INSTRUMENT := n 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciOBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_citargets := Image loader 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci$(obj)/Image: vmlinux FORCE 248c2ecf20Sopenharmony_ci $(call if_changed,objcopy) 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci$(obj)/Image.gz: $(obj)/Image FORCE 278c2ecf20Sopenharmony_ci $(call if_changed,gzip) 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci$(obj)/loader.o: $(src)/loader.S $(obj)/Image 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci$(obj)/loader: $(obj)/loader.o $(obj)/Image $(obj)/loader.lds FORCE 328c2ecf20Sopenharmony_ci $(Q)$(LD) -T $(obj)/loader.lds -o $@ $(obj)/loader.o 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci$(obj)/Image.bz2: $(obj)/Image FORCE 358c2ecf20Sopenharmony_ci $(call if_changed,bzip2) 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci$(obj)/Image.lz4: $(obj)/Image FORCE 388c2ecf20Sopenharmony_ci $(call if_changed,lz4) 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci$(obj)/Image.lzma: $(obj)/Image FORCE 418c2ecf20Sopenharmony_ci $(call if_changed,lzma) 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci$(obj)/Image.lzo: $(obj)/Image FORCE 448c2ecf20Sopenharmony_ci $(call if_changed,lzo) 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci$(obj)/loader.bin: $(obj)/loader FORCE 478c2ecf20Sopenharmony_ci $(call if_changed,objcopy) 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciinstall: 508c2ecf20Sopenharmony_ci $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 518c2ecf20Sopenharmony_ci $(obj)/Image System.map "$(INSTALL_PATH)" 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_cizinstall: 548c2ecf20Sopenharmony_ci $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 558c2ecf20Sopenharmony_ci $(obj)/Image.gz System.map "$(INSTALL_PATH)" 56