Makefile (a80b824f0b63fa3a8c269903828beb0837d738e7) Makefile (453ec9c1c3808b051347edbbf637f997add7b85b)
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

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

30 @echo ' Kernel: $@ is ready'
31
32$(obj)/compressed/vmlinux: FORCE
33 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
34
35KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \
36 $$[$(CONFIG_PAGE_OFFSET) + \
37 $(CONFIG_MEMORY_START) + \
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

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

30 @echo ' Kernel: $@ is ready'
31
32$(obj)/compressed/vmlinux: FORCE
33 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
34
35KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \
36 $$[$(CONFIG_PAGE_OFFSET) + \
37 $(CONFIG_MEMORY_START) + \
38 $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]')
38 $(CONFIG_ZERO_PAGE_OFFSET)]')
39
39
40KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%8x" \
41 $$[$(KERNEL_LOAD)+0x1000]')
42
43
40quiet_cmd_uimage = UIMAGE $@
41 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
44quiet_cmd_uimage = UIMAGE $@
45 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
42 -C none -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \
46 -C none -a $(KERNEL_LOAD) -e $(KERNEL_ENTRY) \
43 -n 'Linux-$(KERNELRELEASE)' -d $< $@
44
47 -n 'Linux-$(KERNELRELEASE)' -d $< $@
48
45$(obj)/uImage: $(obj)/zImage FORCE
49$(obj)/uImage: $(obj)/vmlinux.bin.gz FORCE
46 $(call if_changed,uimage)
47 @echo ' Image $@ is ready'
48
50 $(call if_changed,uimage)
51 @echo ' Image $@ is ready'
52
53$(obj)/vmlinux.bin: vmlinux FORCE
54 $(call if_changed,objcopy)
55
56$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
57 $(call if_changed,gzip)
58
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
59OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec
60$(obj)/vmlinux.srec: $(obj)/compressed/vmlinux
61 $(call if_changed,objcopy)
62
63OBJCOPYFLAGS_uImage.srec := -I binary -O srec
64$(obj)/uImage.srec: $(obj)/uImage
65 $(call if_changed,objcopy)
66
57clean-files += uImage uImage.srec vmlinux.srec
67clean-files += uImage uImage.srec vmlinux.srec \
68 vmlinux.bin vmlinux.bin.gz