Makefile (b22364c8eec89e6b0c081a237f3b6348df87796f) Makefile (1f25756a11d662a986553754bf398ccc38f3925e)
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

--- 18 unchanged lines hidden (view full) ---

27
28$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
29 $(call if_changed,objcopy)
30 @echo ' Kernel: $@ is ready'
31
32$(obj)/compressed/vmlinux: FORCE
33 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
34
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

--- 18 unchanged lines hidden (view full) ---

27
28$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
29 $(call if_changed,objcopy)
30 @echo ' Kernel: $@ is ready'
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])
35KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \
36 $$[$(CONFIG_PAGE_OFFSET) + \
37 $(CONFIG_MEMORY_START) + \
38 $(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
39
40quiet_cmd_uimage = UIMAGE $@
41 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
42 -C gzip -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \
43 -n 'Linux-$(KERNELRELEASE)' -d $< $@
44
45$(obj)/uImage: $(obj)/zImage FORCE
46 $(call if_changed,uimage)
47 @echo ' Image $@ is ready'
48
49OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec
50$(obj)/vmlinux.srec: $(obj)/compressed/vmlinux
51 $(call if_changed,objcopy)
52
53OBJCOPYFLAGS_uImage.srec := -I binary -O srec
54$(obj)/uImage.srec: $(obj)/uImage
55 $(call if_changed,objcopy)
56
57clean-files += uImage uImage.srec vmlinux.srec