Makefile (f632265d0ffb5acf331252d98c64939849d96bb2) | Makefile (9e84ed63dc71e13b62cea5ec6b0049260cca0b7a) |
---|---|
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),) | 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),) |
17-include $(srctree)/$(MACHINE)/Makefile.boot | 17include $(srctree)/$(MACHINE)/Makefile.boot |
18endif 19 20# Note: the following conditions must always be true: | 18endif 19 20# Note: the following conditions must always be true: |
21# ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) |
|
21# PARAMS_PHYS must be within 4MB of ZRELADDR 22# INITRD_PHYS must be in RAM | 22# PARAMS_PHYS must be within 4MB of ZRELADDR 23# INITRD_PHYS must be in RAM |
24ZRELADDR := $(zreladdr-y) |
|
23PARAMS_PHYS := $(params_phys-y) 24INITRD_PHYS := $(initrd_phys-y) 25 | 25PARAMS_PHYS := $(params_phys-y) 26INITRD_PHYS := $(initrd_phys-y) 27 |
26export INITRD_PHYS PARAMS_PHYS | 28export ZRELADDR INITRD_PHYS PARAMS_PHYS |
27 28targets := Image zImage xipImage bootpImage uImage 29 30ifeq ($(CONFIG_XIP_KERNEL),y) 31 32$(obj)/xipImage: vmlinux FORCE 33 $(call if_changed,objcopy) 34 @echo ' Kernel: $@ is ready (physical address: $(CONFIG_XIP_PHYS_ADDR))' --- 25 unchanged lines hidden (view full) --- 60quiet_cmd_uimage = UIMAGE $@ 61 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \ 62 -C none -a $(LOADADDR) -e $(STARTADDR) \ 63 -n 'Linux-$(KERNELRELEASE)' -d $< $@ 64 65ifeq ($(CONFIG_ZBOOT_ROM),y) 66$(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT) 67else | 29 30targets := Image zImage xipImage bootpImage uImage 31 32ifeq ($(CONFIG_XIP_KERNEL),y) 33 34$(obj)/xipImage: vmlinux FORCE 35 $(call if_changed,objcopy) 36 @echo ' Kernel: $@ is ready (physical address: $(CONFIG_XIP_PHYS_ADDR))' --- 25 unchanged lines hidden (view full) --- 62quiet_cmd_uimage = UIMAGE $@ 63 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \ 64 -C none -a $(LOADADDR) -e $(STARTADDR) \ 65 -n 'Linux-$(KERNELRELEASE)' -d $< $@ 66 67ifeq ($(CONFIG_ZBOOT_ROM),y) 68$(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT) 69else |
68$(obj)/uImage: LOADADDR=$(CONFIG_ZRELADDR) | 70$(obj)/uImage: LOADADDR=$(ZRELADDR) |
69endif 70 71ifeq ($(CONFIG_THUMB2_KERNEL),y) 72# Set bit 0 to 1 so that "mov pc, rx" switches to Thumb-2 mode 73$(obj)/uImage: STARTADDR=$(shell echo $(LOADADDR) | sed -e "s/.$$/1/") 74else 75$(obj)/uImage: STARTADDR=$(LOADADDR) 76endif --- 37 unchanged lines hidden --- | 71endif 72 73ifeq ($(CONFIG_THUMB2_KERNEL),y) 74# Set bit 0 to 1 so that "mov pc, rx" switches to Thumb-2 mode 75$(obj)/uImage: STARTADDR=$(shell echo $(LOADADDR) | sed -e "s/.$$/1/") 76else 77$(obj)/uImage: STARTADDR=$(LOADADDR) 78endif --- 37 unchanged lines hidden --- |