Makefile (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | Makefile (cf00e20444fc39fe37691ca32919061bf65527b0) |
---|---|
1# 2# arch/sh/boot/Makefile 3# 4# This file is subject to the terms and conditions of the GNU General Public 5# License. See the file "COPYING" in the main directory of this archive 6# for more details. 7# 8# Copyright (C) 1999 Stuart Menefy 9# 10 | 1# 2# arch/sh/boot/Makefile 3# 4# This file is subject to the terms and conditions of the GNU General Public 5# License. See the file "COPYING" in the main directory of this archive 6# for more details. 7# 8# Copyright (C) 1999 Stuart Menefy 9# 10 |
11targets := zImage | 11MKIMAGE := $(srctree)/scripts/mkuboot.sh 12 13# 14# Assign safe dummy values if these variables are not defined, 15# in order to suppress error message. 16# 17CONFIG_PAGE_OFFSET ?= 0x80000000 18CONFIG_MEMORY_START ?= 0x0c000000 19CONFIG_BOOT_LINK_OFFSET ?= 0x00800000 20CONFIG_ZERO_PAGE_OFFSET ?= 0x00001000 21 22export CONFIG_PAGE_OFFSET CONFIG_MEMORY_START CONFIG_BOOT_LINK_OFFSET \ 23 CONFIG_ZERO_PAGE_OFFSET 24 25targets := zImage vmlinux.srec uImage uImage.srec |
12subdir- := compressed 13 14$(obj)/zImage: $(obj)/compressed/vmlinux FORCE 15 $(call if_changed,objcopy) | 26subdir- := compressed 27 28$(obj)/zImage: $(obj)/compressed/vmlinux FORCE 29 $(call if_changed,objcopy) |
16 @echo 'Kernel: $@ is ready' | 30 @echo ' Kernel: $@ is ready' |
17 18$(obj)/compressed/vmlinux: FORCE 19 $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 20 | 31 32$(obj)/compressed/vmlinux: FORCE 33 $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 34 |
35KERNEL_LOAD := $(shell printf "0x%8x" $$[$(CONFIG_PAGE_OFFSET) + \ 36 $(CONFIG_MEMORY_START) + \ 37 $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]) 38 39quiet_cmd_uimage = UIMAGE $@ 40 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ 41 -C gzip -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \ 42 -n 'Linux-$(KERNELRELEASE)' -d $< $@ 43 44$(obj)/uImage: $(obj)/zImage FORCE 45 $(call if_changed,uimage) 46 @echo ' Image $@ is ready' 47 48OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec 49$(obj)/vmlinux.srec: $(obj)/compressed/vmlinux 50 $(call if_changed,objcopy) 51 52OBJCOPYFLAGS_uImage.srec := -I binary -O srec 53$(obj)/uImage.srec: $(obj)/uImage 54 $(call if_changed,objcopy) 55 56clean-files += uImage uImage.srec vmlinux.srec |
|