Makefile (7483d45f0aee3afc0646d185cabd4af9f6cab58c) Makefile (e33936451484b06b61b259172fa3761a7d1cd4dc)
1#
2# arch/arm/boot/Makefile
3#
4# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
7# This file is subject to the terms and conditions of the GNU General Public
8# License. See the file "COPYING" in the main directory of this archive
9# for more details.
10#
11# Copyright (C) 1995-2002 Russell King
12#
13
1#
2# arch/arm/boot/Makefile
3#
4# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
7# This file is subject to the terms and conditions of the GNU General Public
8# License. See the file "COPYING" in the main directory of this archive
9# for more details.
10#
11# Copyright (C) 1995-2002 Russell King
12#
13
14MKIMAGE := $(srctree)/scripts/mkuboot.sh
15
16ifneq ($(MACHINE),)
17include $(srctree)/$(MACHINE)/Makefile.boot
18endif
19
20# Note: the following conditions must always be true:
21# ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET)
22# PARAMS_PHYS must be within 4MB of ZRELADDR
23# INITRD_PHYS must be in RAM

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

64# Rule to build device tree blobs
65$(obj)/%.dtb: $(src)/dts/%.dts FORCE
66 $(call if_changed_dep,dtc)
67
68$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
69
70clean-files := *.dtb
71
14ifneq ($(MACHINE),)
15include $(srctree)/$(MACHINE)/Makefile.boot
16endif
17
18# Note: the following conditions must always be true:
19# ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET)
20# PARAMS_PHYS must be within 4MB of ZRELADDR
21# INITRD_PHYS must be in RAM

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

62# Rule to build device tree blobs
63$(obj)/%.dtb: $(src)/dts/%.dts FORCE
64 $(call if_changed_dep,dtc)
65
66$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
67
68clean-files := *.dtb
69
72quiet_cmd_uimage = UIMAGE $@
73 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \
74 -C none -a $(LOADADDR) -e $(STARTADDR) \
75 -n 'Linux-$(KERNELRELEASE)' -d $< $@
76
77ifeq ($(CONFIG_ZBOOT_ROM),y)
78$(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT)
70ifneq ($(LOADADDR),)
71 UIMAGE_LOADADDR=$(LOADADDR)
79else
72else
80$(obj)/uImage: LOADADDR=$(ZRELADDR)
73 ifeq ($(CONFIG_ZBOOT_ROM),y)
74 UIMAGE_LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT)
75 else
76 UIMAGE_LOADADDR=$(ZRELADDR)
77 endif
81endif
82
78endif
79
83$(obj)/uImage: STARTADDR=$(LOADADDR)
84
85check_for_multiple_loadaddr = \
80check_for_multiple_loadaddr = \
86if [ $(words $(LOADADDR)) -gt 1 ]; then \
87 echo 'multiple load addresses: $(LOADADDR)'; \
81if [ $(words $(UIMAGE_LOADADDR)) -gt 1 ]; then \
82 echo 'multiple load addresses: $(UIMAGE_LOADADDR)'; \
88 echo 'This is incompatible with uImages'; \
89 echo 'Specify LOADADDR on the commandline to build an uImage'; \
90 false; \
91fi
92
93$(obj)/uImage: $(obj)/zImage FORCE
94 @$(check_for_multiple_loadaddr)
95 $(call if_changed,uimage)

--- 38 unchanged lines hidden ---
83 echo 'This is incompatible with uImages'; \
84 echo 'Specify LOADADDR on the commandline to build an uImage'; \
85 false; \
86fi
87
88$(obj)/uImage: $(obj)/zImage FORCE
89 @$(check_for_multiple_loadaddr)
90 $(call if_changed,uimage)

--- 38 unchanged lines hidden ---