sh: get_user fixes and nommu consolidation.
[deliverable/linux.git] / arch / sh / boot / Makefile
CommitLineData
1da177e4
LT
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
cf00e204
PM
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
1da177e4
LT
26subdir- := compressed
27
28$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
29 $(call if_changed,objcopy)
cf00e204 30 @echo ' Kernel: $@ is ready'
1da177e4
LT
31
32$(obj)/compressed/vmlinux: FORCE
33 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
34
1f25756a
DM
35KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \
36 $$[$(CONFIG_PAGE_OFFSET) + \
37 $(CONFIG_MEMORY_START) + \
38 $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]')
cf00e204
PM
39
40quiet_cmd_uimage = UIMAGE $@
41 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \
f7b6130e 42 -C none -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \
cf00e204
PM
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
This page took 0.358365 seconds and 5 git commands to generate.