Makefile (a9de18eb761f7c1c860964b2e5addc1a35c7e861) Makefile (2f47f44790a9c8fc43e515df3c6be19a35ee5de5)
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

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

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

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

28
29$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
30 $(call if_changed,objcopy)
31 @echo ' Kernel: $@ is ready'
32
33$(obj)/compressed/vmlinux: FORCE
34 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
35
36ifeq ($(CONFIG_32BIT),y)
36KERNEL_MEMORY := 0x00000000
37ifeq ($(CONFIG_PMB_FIXED),y)
38KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \
39 $$[$(CONFIG_MEMORY_START) & 0x1fffffff]')
40endif
41ifeq ($(CONFIG_29BIT),y)
42KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \
43 $$[$(CONFIG_MEMORY_START)]')
44endif
45
37KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \
38 $$[$(CONFIG_PAGE_OFFSET) + \
46KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \
47 $$[$(CONFIG_PAGE_OFFSET) + \
48 $(KERNEL_MEMORY) + \
39 $(CONFIG_ZERO_PAGE_OFFSET)]')
49 $(CONFIG_ZERO_PAGE_OFFSET)]')
40else
41KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \
42 $$[$(CONFIG_PAGE_OFFSET) + \
43 $(CONFIG_MEMORY_START) + \
44 $(CONFIG_ZERO_PAGE_OFFSET)]')
45endif
46
47KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \
48 $$[$(CONFIG_PAGE_OFFSET) + \
50
51KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \
52 $$[$(CONFIG_PAGE_OFFSET) + \
49 $(CONFIG_MEMORY_START) + \
53 $(KERNEL_MEMORY) + \
50 $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]')
51
52quiet_cmd_uimage = UIMAGE $@
53 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
54 -C gzip -a $(KERNEL_LOAD) -e $(KERNEL_ENTRY) \
55 -n 'Linux-$(KERNELRELEASE)' -d $< $@
56
57$(obj)/uImage: $(obj)/vmlinux.bin.gz FORCE

--- 19 unchanged lines hidden ---
54 $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]')
55
56quiet_cmd_uimage = UIMAGE $@
57 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
58 -C gzip -a $(KERNEL_LOAD) -e $(KERNEL_ENTRY) \
59 -n 'Linux-$(KERNELRELEASE)' -d $< $@
60
61$(obj)/uImage: $(obj)/vmlinux.bin.gz FORCE

--- 19 unchanged lines hidden ---