12fc8483fSLey Foon Tan# 22fc8483fSLey Foon Tan# arch/nios2/boot/Makefile 32fc8483fSLey Foon Tan# 42fc8483fSLey Foon Tan# This file is subject to the terms and conditions of the GNU General Public 52fc8483fSLey Foon Tan# License. See the file "COPYING" in the main directory of this archive 62fc8483fSLey Foon Tan# for more details. 72fc8483fSLey Foon Tan# 82fc8483fSLey Foon Tan 92fc8483fSLey Foon TanUIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_stext" {print $$1}') 102fc8483fSLey Foon TanUIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}') 112fc8483fSLey Foon TanUIMAGE_COMPRESSION = gzip 122fc8483fSLey Foon Tan 132fc8483fSLey Foon TanOBJCOPYFLAGS_vmlinux.bin := -O binary 142fc8483fSLey Foon Tan 152fc8483fSLey Foon Tantargets += vmlinux.bin vmlinux.gz vmImage 162fc8483fSLey Foon Tan 172fc8483fSLey Foon Tan$(obj)/vmlinux.bin: vmlinux FORCE 182fc8483fSLey Foon Tan $(call if_changed,objcopy) 192fc8483fSLey Foon Tan 202fc8483fSLey Foon Tan$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE 212fc8483fSLey Foon Tan $(call if_changed,gzip) 222fc8483fSLey Foon Tan 23*869e4ae4SRandy Dunlap$(obj)/vmImage: $(obj)/vmlinux.gz FORCE 242fc8483fSLey Foon Tan $(call if_changed,uimage) 252fc8483fSLey Foon Tan @$(kecho) 'Kernel: $@ is ready' 262fc8483fSLey Foon Tan 2701623627SLey Foon Tan$(obj)/zImage: $(obj)/compressed/vmlinux FORCE 2801623627SLey Foon Tan $(call if_changed,objcopy) 2901623627SLey Foon Tan @$(kecho) 'Kernel: $@ is ready' 3001623627SLey Foon Tan 3101623627SLey Foon Tan$(obj)/compressed/vmlinux: $(obj)/vmlinux.gz FORCE 3201623627SLey Foon Tan $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 33