18c2ecf20Sopenharmony_ci#
28c2ecf20Sopenharmony_ci# arch/nios2/boot/Makefile
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ci# This file is subject to the terms and conditions of the GNU General Public
58c2ecf20Sopenharmony_ci# License.  See the file "COPYING" in the main directory of this archive
68c2ecf20Sopenharmony_ci# for more details.
78c2ecf20Sopenharmony_ci#
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciUIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_stext" {print $$1}')
108c2ecf20Sopenharmony_ciUIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
118c2ecf20Sopenharmony_ciUIMAGE_COMPRESSION = gzip
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciOBJCOPYFLAGS_vmlinux.bin := -O binary
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_citargets += vmlinux.bin vmlinux.gz vmImage
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci$(obj)/vmlinux.bin: vmlinux FORCE
188c2ecf20Sopenharmony_ci	$(call if_changed,objcopy)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
218c2ecf20Sopenharmony_ci	$(call if_changed,gzip)
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci$(obj)/vmImage: $(obj)/vmlinux.gz FORCE
248c2ecf20Sopenharmony_ci	$(call if_changed,uimage)
258c2ecf20Sopenharmony_ci	@$(kecho) 'Kernel: $@ is ready'
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
288c2ecf20Sopenharmony_ci	$(call if_changed,objcopy)
298c2ecf20Sopenharmony_ci	@$(kecho) 'Kernel: $@ is ready'
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci$(obj)/compressed/vmlinux: $(obj)/vmlinux.gz FORCE
328c2ecf20Sopenharmony_ci	$(Q)$(MAKE) $(build)=$(obj)/compressed $@
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciinstall:
358c2ecf20Sopenharmony_ci	sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
36