diff options
Diffstat (limited to 'arch/mips/boot/Makefile')
-rw-r--r-- | arch/mips/boot/Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index acb1988f354e..2728a9a9c7c5 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile | |||
@@ -100,3 +100,69 @@ $(obj)/uImage.lzo: $(obj)/vmlinux.bin.lzo FORCE | |||
100 | $(obj)/uImage: $(obj)/uImage.$(suffix-y) | 100 | $(obj)/uImage: $(obj)/uImage.$(suffix-y) |
101 | @ln -sf $(notdir $<) $@ | 101 | @ln -sf $(notdir $<) $@ |
102 | @echo ' Image $@ is ready' | 102 | @echo ' Image $@ is ready' |
103 | |||
104 | # | ||
105 | # Flattened Image Tree (.itb) images | ||
106 | # | ||
107 | |||
108 | targets += vmlinux.itb | ||
109 | targets += vmlinux.gz.itb | ||
110 | targets += vmlinux.bz2.itb | ||
111 | targets += vmlinux.lzma.itb | ||
112 | targets += vmlinux.lzo.itb | ||
113 | |||
114 | ifeq ($(ADDR_BITS),32) | ||
115 | itb_addr_cells = 1 | ||
116 | endif | ||
117 | ifeq ($(ADDR_BITS),64) | ||
118 | itb_addr_cells = 2 | ||
119 | endif | ||
120 | |||
121 | quiet_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 | |||
131 | $(obj)/vmlinux.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S FORCE | ||
132 | $(call if_changed_dep,cpp_its_S,none,vmlinux.bin) | ||
133 | |||
134 | $(obj)/vmlinux.gz.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S FORCE | ||
135 | $(call if_changed_dep,cpp_its_S,gzip,vmlinux.bin.gz) | ||
136 | |||
137 | $(obj)/vmlinux.bz2.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S FORCE | ||
138 | $(call if_changed_dep,cpp_its_S,bzip2,vmlinux.bin.bz2) | ||
139 | |||
140 | $(obj)/vmlinux.lzma.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S FORCE | ||
141 | $(call if_changed_dep,cpp_its_S,lzma,vmlinux.bin.lzma) | ||
142 | |||
143 | $(obj)/vmlinux.lzo.its: $(srctree)/arch/mips/$(PLATFORM)/vmlinux.its.S FORCE | ||
144 | $(call if_changed_dep,cpp_its_S,lzo,vmlinux.bin.lzo) | ||
145 | |||
146 | quiet_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 \ | ||
152 | --warning no-unit_address_vs_reg" \ | ||
153 | -f $(2) $@ | ||
154 | |||
155 | $(obj)/vmlinux.itb: $(obj)/vmlinux.its $(obj)/vmlinux.bin FORCE | ||
156 | $(call if_changed,itb-image,$<) | ||
157 | |||
158 | $(obj)/vmlinux.gz.itb: $(obj)/vmlinux.gz.its $(obj)/vmlinux.bin.gz FORCE | ||
159 | $(call if_changed,itb-image,$<) | ||
160 | |||
161 | $(obj)/vmlinux.bz2.itb: $(obj)/vmlinux.bz2.its $(obj)/vmlinux.bin.bz2 FORCE | ||
162 | $(call if_changed,itb-image,$<) | ||
163 | |||
164 | $(obj)/vmlinux.lzma.itb: $(obj)/vmlinux.lzma.its $(obj)/vmlinux.bin.lzma FORCE | ||
165 | $(call if_changed,itb-image,$<) | ||
166 | |||
167 | $(obj)/vmlinux.lzo.itb: $(obj)/vmlinux.lzo.its $(obj)/vmlinux.bin.lzo FORCE | ||
168 | $(call if_changed,itb-image,$<) | ||