Makefile (c002c27874faaa170b535d03d7efee89ecdd9be4) Makefile (436c6a4452cb610e6293ba3fda2310cf09461fc1)
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1995, 1998, 2001, 2002 by Ralf Baechle
7# Copyright (C) 2004 Maciej W. Rozycki
8#

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

113
114ifeq ($(ADDR_BITS),32)
115 itb_addr_cells = 1
116endif
117ifeq ($(ADDR_BITS),64)
118 itb_addr_cells = 2
119endif
120
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1995, 1998, 2001, 2002 by Ralf Baechle
7# Copyright (C) 2004 Maciej W. Rozycki
8#

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

113
114ifeq ($(ADDR_BITS),32)
115 itb_addr_cells = 1
116endif
117ifeq ($(ADDR_BITS),64)
118 itb_addr_cells = 2
119endif
120
121quiet_cmd_its_cat = CAT $@
122 cmd_its_cat = cat $^ >$@
123
124$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS))
125 $(call if_changed,its_cat)
126
121quiet_cmd_cpp_its_S = ITS $@
122 cmd_cpp_its_S = $(CPP) $(cpp_flags) -P -C -o $@ $< \
123 -DKERNEL_NAME="\"Linux $(KERNELRELEASE)\"" \
124 -DVMLINUX_BINARY="\"$(3)\"" \
125 -DVMLINUX_COMPRESSION="\"$(2)\"" \
126 -DVMLINUX_LOAD_ADDRESS=$(VMLINUX_LOAD_ADDRESS) \
127 -DVMLINUX_ENTRY_ADDRESS=$(VMLINUX_ENTRY_ADDRESS) \
128 -DADDR_BITS=$(ADDR_BITS) \
129 -DADDR_CELLS=$(itb_addr_cells)
130
127quiet_cmd_cpp_its_S = ITS $@
128 cmd_cpp_its_S = $(CPP) $(cpp_flags) -P -C -o $@ $< \
129 -DKERNEL_NAME="\"Linux $(KERNELRELEASE)\"" \
130 -DVMLINUX_BINARY="\"$(3)\"" \
131 -DVMLINUX_COMPRESSION="\"$(2)\"" \
132 -DVMLINUX_LOAD_ADDRESS=$(VMLINUX_LOAD_ADDRESS) \
133 -DVMLINUX_ENTRY_ADDRESS=$(VMLINUX_ENTRY_ADDRESS) \
134 -DADDR_BITS=$(ADDR_BITS) \
135 -DADDR_CELLS=$(itb_addr_cells)
136
131$(obj)/vmlinux.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S $(VMLINUX) FORCE
137$(obj)/vmlinux.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE
132 $(call if_changed_dep,cpp_its_S,none,vmlinux.bin)
133
138 $(call if_changed_dep,cpp_its_S,none,vmlinux.bin)
139
134$(obj)/vmlinux.gz.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S $(VMLINUX) FORCE
140$(obj)/vmlinux.gz.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE
135 $(call if_changed_dep,cpp_its_S,gzip,vmlinux.bin.gz)
136
141 $(call if_changed_dep,cpp_its_S,gzip,vmlinux.bin.gz)
142
137$(obj)/vmlinux.bz2.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S $(VMLINUX) FORCE
143$(obj)/vmlinux.bz2.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE
138 $(call if_changed_dep,cpp_its_S,bzip2,vmlinux.bin.bz2)
139
144 $(call if_changed_dep,cpp_its_S,bzip2,vmlinux.bin.bz2)
145
140$(obj)/vmlinux.lzma.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S $(VMLINUX) FORCE
146$(obj)/vmlinux.lzma.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE
141 $(call if_changed_dep,cpp_its_S,lzma,vmlinux.bin.lzma)
142
147 $(call if_changed_dep,cpp_its_S,lzma,vmlinux.bin.lzma)
148
143$(obj)/vmlinux.lzo.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S $(VMLINUX) FORCE
149$(obj)/vmlinux.lzo.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE
144 $(call if_changed_dep,cpp_its_S,lzo,vmlinux.bin.lzo)
145
146quiet_cmd_itb-image = ITB $@
147 cmd_itb-image = \
148 env PATH="$(objtree)/scripts/dtc:$(PATH)" \
149 $(CONFIG_SHELL) $(MKIMAGE) \
150 -D "-I dts -O dtb -p 500 \
151 --include $(objtree)/arch/mips \

--- 17 unchanged lines hidden ---
150 $(call if_changed_dep,cpp_its_S,lzo,vmlinux.bin.lzo)
151
152quiet_cmd_itb-image = ITB $@
153 cmd_itb-image = \
154 env PATH="$(objtree)/scripts/dtc:$(PATH)" \
155 $(CONFIG_SHELL) $(MKIMAGE) \
156 -D "-I dts -O dtb -p 500 \
157 --include $(objtree)/arch/mips \

--- 17 unchanged lines hidden ---