11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# This file is subject to the terms and conditions of the GNU General Public 31da177e4SLinus Torvalds# License. See the file "COPYING" in the main directory of this archive 41da177e4SLinus Torvalds# for more details. 51da177e4SLinus Torvalds# 61da177e4SLinus Torvalds# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle 71da177e4SLinus Torvalds# DECStation modifications by Paul M. Antoine, 1996 81da177e4SLinus Torvalds# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki 91da177e4SLinus Torvalds# 101da177e4SLinus Torvalds# This file is included by the global makefile so that you can add your own 111da177e4SLinus Torvalds# architecture-specific flags and dependencies. Remember to do have actions 121da177e4SLinus Torvalds# for "archclean" cleaning up for this architecture. 131da177e4SLinus Torvalds# 141da177e4SLinus Torvalds 15de0c1698SAdrian BunkKBUILD_DEFCONFIG := ip22_defconfig 16de0c1698SAdrian Bunk 171da177e4SLinus Torvalds# 181da177e4SLinus Torvalds# Select the object file format to substitute into the linker script. 191da177e4SLinus Torvalds# 201da177e4SLinus Torvaldsifdef CONFIG_CPU_LITTLE_ENDIAN 2117f690beSRalf Baechle32bit-tool-archpref = mipsel 2217f690beSRalf Baechle64bit-tool-archpref = mips64el 231da177e4SLinus Torvalds32bit-bfd = elf32-tradlittlemips 241da177e4SLinus Torvalds64bit-bfd = elf64-tradlittlemips 251da177e4SLinus Torvalds32bit-emul = elf32ltsmip 261da177e4SLinus Torvalds64bit-emul = elf64ltsmip 271da177e4SLinus Torvaldselse 2817f690beSRalf Baechle32bit-tool-archpref = mips 2917f690beSRalf Baechle64bit-tool-archpref = mips64 301da177e4SLinus Torvalds32bit-bfd = elf32-tradbigmips 311da177e4SLinus Torvalds64bit-bfd = elf64-tradbigmips 321da177e4SLinus Torvalds32bit-emul = elf32btsmip 331da177e4SLinus Torvalds64bit-emul = elf64btsmip 341da177e4SLinus Torvaldsendif 351da177e4SLinus Torvalds 36875d43e7SRalf Baechleifdef CONFIG_32BIT 3717f690beSRalf Baechletool-archpref = $(32bit-tool-archpref) 381da177e4SLinus TorvaldsUTS_MACHINE := mips 391da177e4SLinus Torvaldsendif 40875d43e7SRalf Baechleifdef CONFIG_64BIT 4117f690beSRalf Baechletool-archpref = $(64bit-tool-archpref) 421da177e4SLinus TorvaldsUTS_MACHINE := mips64 431da177e4SLinus Torvaldsendif 441da177e4SLinus Torvalds 4517f690beSRalf Baechleifneq ($(SUBARCH),$(ARCH)) 4617f690beSRalf Baechle ifeq ($(CROSS_COMPILE),) 473247989eSMaciej W. Rozycki CROSS_COMPILE := $(call cc-cross-prefix, $(tool-archpref)-linux- $(tool-archpref)-linux-gnu- $(tool-archpref)-unknown-linux-gnu-) 4817f690beSRalf Baechle endif 491da177e4SLinus Torvaldsendif 501da177e4SLinus Torvalds 517326c4e5SWu Zhangjinifdef CONFIG_FUNCTION_GRAPH_TRACER 527326c4e5SWu Zhangjin ifndef KBUILD_MCOUNT_RA_ADDRESS 537326c4e5SWu Zhangjin ifeq ($(call cc-option-yn,-mmcount-ra-address), y) 547326c4e5SWu Zhangjin cflags-y += -mmcount-ra-address -DKBUILD_MCOUNT_RA_ADDRESS 557326c4e5SWu Zhangjin endif 567326c4e5SWu Zhangjin endif 577326c4e5SWu Zhangjinendif 581a4ba061SRalf Baechlecflags-y += $(call cc-option, -mno-check-zero-division) 5905e41404SRalf Baechle 608145095cSRalf Baechleifdef CONFIG_32BIT 611da177e4SLinus Torvaldsld-emul = $(32bit-emul) 621da177e4SLinus Torvaldsvmlinux-32 = vmlinux 631da177e4SLinus Torvaldsvmlinux-64 = vmlinux.64 6459b3e8e9SRalf Baechle 6559b3e8e9SRalf Baechlecflags-y += -mabi=32 668145095cSRalf Baechleendif 671da177e4SLinus Torvalds 688145095cSRalf Baechleifdef CONFIG_64BIT 698145095cSRalf Baechleld-emul = $(64bit-emul) 708145095cSRalf Baechlevmlinux-32 = vmlinux.32 718145095cSRalf Baechlevmlinux-64 = vmlinux 728145095cSRalf Baechle 7359b3e8e9SRalf Baechlecflags-y += -mabi=64 7459b3e8e9SRalf Baechleendif 7559b3e8e9SRalf Baechle 768496b401SRalf Baechleall-$(CONFIG_BOOT_ELF32) := $(vmlinux-32) 778496b401SRalf Baechleall-$(CONFIG_BOOT_ELF64) := $(vmlinux-64) 781b93b3c3SWu Zhangjinall-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlinuz 791da177e4SLinus Torvalds 801da177e4SLinus Torvalds# 811da177e4SLinus Torvalds# GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel 821da177e4SLinus Torvalds# code since it only slows down the whole thing. At some point we might make 831da177e4SLinus Torvalds# use of global pointer optimizations but their use of $28 conflicts with 841da177e4SLinus Torvalds# the current pointer optimization. 851da177e4SLinus Torvalds# 861da177e4SLinus Torvalds# The DECStation requires an ECOFF kernel for remote booting, other MIPS 871da177e4SLinus Torvalds# machines may also. Since BFD is incredibly buggy with respect to 881da177e4SLinus Torvalds# crossformat linking we rely on the elf2ecoff tool for format conversion. 891da177e4SLinus Torvalds# 901da177e4SLinus Torvaldscflags-y += -G 0 -mno-abicalls -fno-pic -pipe 916218cf44SRalf Baechlecflags-y += -msoft-float 929f83d839SThiemo SeuferLDFLAGS_vmlinux += -G 0 -static -n -nostdlib 936588169dSSam RavnborgKBUILD_AFLAGS_MODULE += -mlong-calls 946588169dSSam RavnborgKBUILD_CFLAGS_MODULE += -mlong-calls 951da177e4SLinus Torvalds 9672fbfb26SRalf Baechlecflags-y += -ffreestanding 9772fbfb26SRalf Baechle 98f425a6dcSThiemo Seufer# 99f425a6dcSThiemo Seufer# We explicitly add the endianness specifier if needed, this allows 100f425a6dcSThiemo Seufer# to compile kernels with a toolchain for the other endianness. We 101f425a6dcSThiemo Seufer# carefully avoid to add it redundantly because gcc 3.3/3.4 complains 102f425a6dcSThiemo Seufer# when fed the toolchain default! 103f425a6dcSThiemo Seufer# 104f9405412SRalf Baechle# Certain gcc versions up to gcc 4.1.1 (probably 4.2-subversion as of 10559c51591SMichael Opdenacker# 2006-10-10 don't properly change the predefined symbols if -EB / -EL 106f9405412SRalf Baechle# are used, so we kludge that here. A bug has been filed at 107f9405412SRalf Baechle# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413. 108f9405412SRalf Baechle# 109f9405412SRalf Baechleundef-all += -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ 110f9405412SRalf Baechleundef-all += -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ 111f9405412SRalf Baechlepredef-be += -DMIPSEB -D_MIPSEB -D__MIPSEB -D__MIPSEB__ 112f9405412SRalf Baechlepredef-le += -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__ 113f9405412SRalf Baechlecflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' && echo -EB $(undef-all) $(predef-be)) 114f9405412SRalf Baechlecflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' || echo -EL $(undef-all) $(predef-le)) 115f425a6dcSThiemo Seufer 1169693a853SFranck Bui-Huucflags-$(CONFIG_CPU_HAS_SMARTMIPS) += $(call cc-option,-msmartmips) 1179693a853SFranck Bui-Huu 1189007c9a2SRalf Baechlecflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \ 1199007c9a2SRalf Baechle -fno-omit-frame-pointer 1201da177e4SLinus Torvalds 1211da177e4SLinus Torvalds# 1221da177e4SLinus Torvalds# CPU-dependent compiler/assembler options for optimization. 1231da177e4SLinus Torvalds# 12459b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R3000) += -march=r3000 12559b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_TX39XX) += -march=r3900 12659b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R6000) += -march=r6000 -Wa,--trap 12759b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap 12859b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap 12959b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap 13059b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap 1319200c0b2SRalf Baechlecflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ 13259b3e8e9SRalf Baechle -Wa,-mips32 -Wa,--trap 1339200c0b2SRalf Baechlecflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ 13459b3e8e9SRalf Baechle -Wa,-mips32r2 -Wa,--trap 1359200c0b2SRalf Baechlecflags-$(CONFIG_CPU_MIPS64_R1) += $(call cc-option,-march=mips64,-mips64 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \ 13659b3e8e9SRalf Baechle -Wa,-mips64 -Wa,--trap 1379200c0b2SRalf Baechlecflags-$(CONFIG_CPU_MIPS64_R2) += $(call cc-option,-march=mips64r2,-mips64r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \ 13859b3e8e9SRalf Baechle -Wa,-mips64r2 -Wa,--trap 13959b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R5000) += -march=r5000 -Wa,--trap 140c9e321e0SRalf Baechlecflags-$(CONFIG_CPU_R5432) += $(call cc-option,-march=r5400,-march=r5000) \ 1411da177e4SLinus Torvalds -Wa,--trap 142542c1020SShinya Kuribayashicflags-$(CONFIG_CPU_R5500) += $(call cc-option,-march=r5500,-march=r5000) \ 143542c1020SShinya Kuribayashi -Wa,--trap 144c9e321e0SRalf Baechlecflags-$(CONFIG_CPU_NEVADA) += $(call cc-option,-march=rm5200,-march=r5000) \ 1451da177e4SLinus Torvalds -Wa,--trap 14659b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_RM7000) += $(call cc-option,-march=rm7000,-march=r5000) \ 1471da177e4SLinus Torvalds -Wa,--trap 14859b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_RM9000) += $(call cc-option,-march=rm9000,-march=r5000) \ 1491da177e4SLinus Torvalds -Wa,--trap 15059b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=r5000) \ 1511da177e4SLinus Torvalds -Wa,--trap 15259b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R8000) += -march=r8000 -Wa,--trap 15359b3e8e9SRalf Baechlecflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \ 1541da177e4SLinus Torvalds -Wa,--trap 1557e69deb8SDavid Daneycflags-$(CONFIG_CPU_CAVIUM_OCTEON) += $(call cc-option,-march=octeon) -Wa,--trap 1567e69deb8SDavid Daneyifeq (,$(findstring march=octeon, $(cflags-$(CONFIG_CPU_CAVIUM_OCTEON)))) 1577e69deb8SDavid Daneycflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon 1587e69deb8SDavid Daneyendif 159c9941158SDavid Daneycflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix-cn63xxp1 1601da177e4SLinus Torvalds 16120d60d99SMaciej W. Rozyckicflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,) 16220d60d99SMaciej W. Rozyckicflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,) 16320d60d99SMaciej W. Rozyckicflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,) 16420d60d99SMaciej W. Rozycki 1651da177e4SLinus Torvaldsifdef CONFIG_CPU_SB1 1661da177e4SLinus Torvaldsifdef CONFIG_SB1_PASS_1_WORKAROUNDS 1676588169dSSam RavnborgKBUILD_AFLAGS_MODULE += -msb1-pass1-workarounds 1686588169dSSam RavnborgKBUILD_CFLAGS_MODULE += -msb1-pass1-workarounds 1691da177e4SLinus Torvaldsendif 1701da177e4SLinus Torvaldsendif 1711da177e4SLinus Torvalds 1721da177e4SLinus Torvalds# 1731da177e4SLinus Torvalds# Firmware support 1741da177e4SLinus Torvalds# 1752f56cfddSAurelien Jarnolibs-$(CONFIG_ARC) += arch/mips/fw/arc/ 176df78b5c8SAurelien Jarnolibs-$(CONFIG_CFE) += arch/mips/fw/cfe/ 177231a35d3SThomas Bogendoerferlibs-$(CONFIG_SNIPROM) += arch/mips/fw/sni/ 178231a35d3SThomas Bogendoerferlibs-y += arch/mips/fw/lib/ 1791da177e4SLinus Torvalds 1801da177e4SLinus Torvalds# 181ebc89718SRalf Baechle# Kernel compression 182ebc89718SRalf Baechle# 183ebc89718SRalf Baechleifdef SYS_SUPPORTS_ZBOOT 184ebc89718SRalf BaechleCOMPRESSION_FNAME = vmlinuz 185ebc89718SRalf Baechleelse 186ebc89718SRalf BaechleCOMPRESSION_FNAME = vmlinux 187ebc89718SRalf Baechleendif 188ebc89718SRalf Baechle 189ebc89718SRalf Baechle# 1901da177e4SLinus Torvalds# Board-dependent options and extra files 1911da177e4SLinus Torvalds# 1925d25b01cSSam Ravnborginclude $(srctree)/arch/mips/Kbuild.platforms 1937ca5dc14SFlorian Fainelli 194384740dcSRalf Baechlecflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic 1951da177e4SLinus Torvaldsdrivers-$(CONFIG_PCI) += arch/mips/pci/ 1961da177e4SLinus Torvalds 197adff90a9SFranck Bui-Huu# 198adff90a9SFranck Bui-Huu# Automatically detect the build format. By default we choose 199adff90a9SFranck Bui-Huu# the elf format according to the load address. 200adff90a9SFranck Bui-Huu# We can always force a build with a 64-bits symbol format by 201054c51b4SFranck Bui-Huu# passing 'KBUILD_SYM32=no' option to the make's command line. 202adff90a9SFranck Bui-Huu# 203adff90a9SFranck Bui-Huuifdef CONFIG_64BIT 204054c51b4SFranck Bui-Huu ifndef KBUILD_SYM32 205adff90a9SFranck Bui-Huu ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0) 206054c51b4SFranck Bui-Huu KBUILD_SYM32 = y 207adff90a9SFranck Bui-Huu endif 208adff90a9SFranck Bui-Huu endif 209adff90a9SFranck Bui-Huu 21020d60d99SMaciej W. Rozycki ifeq ($(KBUILD_SYM32)$(call cc-option-yn,-msym32), yy) 211054c51b4SFranck Bui-Huu cflags-y += -msym32 -DKBUILD_64BIT_SYM32 21220d60d99SMaciej W. Rozycki else 21320d60d99SMaciej W. Rozycki ifeq ($(CONFIG_CPU_DADDI_WORKAROUNDS), y) 21420d60d99SMaciej W. Rozycki $(error CONFIG_CPU_DADDI_WORKAROUNDS unsupported without -msym32) 215adff90a9SFranck Bui-Huu endif 216adff90a9SFranck Bui-Huu endif 217e58d95abSFranck Bui-Huuendif 218adff90a9SFranck Bui-Huu 219222d394dSSam RavnborgKBUILD_AFLAGS += $(cflags-y) 22051b563fcSSam RavnborgKBUILD_CFLAGS += $(cflags-y) 22151b563fcSSam RavnborgKBUILD_CPPFLAGS += -D"VMLINUX_LOAD_ADDRESS=$(load-y)" 22251b563fcSSam RavnborgKBUILD_CPPFLAGS += -D"DATAOFFSET=$(if $(dataoffset-y),$(dataoffset-y),0)" 2231da177e4SLinus Torvalds 2241da177e4SLinus TorvaldsLDFLAGS += -m $(ld-emul) 2251da177e4SLinus Torvalds 22659b3e8e9SRalf Baechleifdef CONFIG_MIPS 227a0f97e06SSam RavnborgCHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -xc /dev/null | \ 22848c35b2dSAlexey Dobriyan egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ 2292a2c3e45SAtsushi Nemoto sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/") 2302a2c3e45SAtsushi Nemotoifdef CONFIG_64BIT 2312a2c3e45SAtsushi NemotoCHECKFLAGS += -m64 2322a2c3e45SAtsushi Nemotoendif 23359b3e8e9SRalf Baechleendif 23459b3e8e9SRalf Baechle 2351da177e4SLinus TorvaldsOBJCOPYFLAGS += --remove-section=.reginfo 2361da177e4SLinus Torvalds 2371da177e4SLinus Torvaldshead-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o 2381da177e4SLinus Torvalds 2391da177e4SLinus Torvaldslibs-y += arch/mips/lib/ 2401da177e4SLinus Torvalds 2419aeb404bSSam Ravnborg# See arch/mips/Kbuild for content of core part of the kernel 2429aeb404bSSam Ravnborgcore-y += arch/mips/ 2431da177e4SLinus Torvalds 2441da177e4SLinus Torvaldsdrivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/ 2451da177e4SLinus Torvalds 246363c55caSWu Zhangjin# suspend and hibernation support 247363c55caSWu Zhangjindrivers-$(CONFIG_PM) += arch/mips/power/ 248363c55caSWu Zhangjin 2491f21d2bdSBrian Murphyifdef CONFIG_LASAT 2501f21d2bdSBrian Murphyrom.bin rom.sw: vmlinux 2511f21d2bdSBrian Murphy $(Q)$(MAKE) $(build)=arch/mips/lasat/image $@ 2521f21d2bdSBrian Murphyendif 2531f21d2bdSBrian Murphy 2541da177e4SLinus Torvalds# 2551da177e4SLinus Torvalds# Some machines like the Indy need 32-bit ELF binaries for booting purposes. 2561da177e4SLinus Torvalds# Other need ECOFF, so we build a 32-bit ELF binary for them which we then 2571da177e4SLinus Torvalds# convert to ECOFF using elf2ecoff. 2581da177e4SLinus Torvalds# 2591da177e4SLinus Torvaldsvmlinux.32: vmlinux 2601da177e4SLinus Torvalds $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@ 2611da177e4SLinus Torvalds 262c1bf207dSDavid Daney 263c1bf207dSDavid Daney#obj-$(CONFIG_KPROBES) += kprobes.o 264c1bf207dSDavid Daney 2651da177e4SLinus Torvalds# 2661da177e4SLinus Torvalds# The 64-bit ELF tools are pretty broken so at this time we generate 64-bit 2671da177e4SLinus Torvalds# ELF files from 32-bit files by conversion. 2681da177e4SLinus Torvalds# 2691da177e4SLinus Torvaldsvmlinux.64: vmlinux 2701da177e4SLinus Torvalds $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ 2711da177e4SLinus Torvalds 2728496b401SRalf Baechleall: $(all-y) 2731da177e4SLinus Torvalds 27435eaa1e9SSam Ravnborg# boot 275961e196cSSam Ravnborgvmlinux.bin vmlinux.ecoff vmlinux.srec: $(vmlinux-32) FORCE 276961e196cSSam Ravnborg $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@ 2771da177e4SLinus Torvalds 27835eaa1e9SSam Ravnborg# boot/compressed 27935eaa1e9SSam Ravnborgvmlinuz vmlinuz.bin vmlinuz.ecoff vmlinuz.srec: $(vmlinux-32) FORCE 28035eaa1e9SSam Ravnborg $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \ 28135eaa1e9SSam Ravnborg VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $@ 28235eaa1e9SSam Ravnborg 28335eaa1e9SSam Ravnborg 284d745866eSSam RavnborgCLEAN_FILES += vmlinux.32 vmlinux.64 2851da177e4SLinus Torvalds 286e48ce6b8SAtsushi Nemotoarchprepare: 287e48ce6b8SAtsushi Nemotoifdef CONFIG_MIPS32_N32 288e48ce6b8SAtsushi Nemoto @echo ' Checking missing-syscalls for N32' 289e3726304Smatt mooney $(Q)$(MAKE) $(build)=. missing-syscalls ccflags-y="-mabi=n32" 290e48ce6b8SAtsushi Nemotoendif 291e48ce6b8SAtsushi Nemotoifdef CONFIG_MIPS32_O32 292e48ce6b8SAtsushi Nemoto @echo ' Checking missing-syscalls for O32' 293e3726304Smatt mooney $(Q)$(MAKE) $(build)=. missing-syscalls ccflags-y="-mabi=32" 294e48ce6b8SAtsushi Nemotoendif 295e48ce6b8SAtsushi Nemoto 29659968d3bSRalf Baechleinstall: 29759968d3bSRalf Baechle $(Q)install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE) 2981b93b3c3SWu Zhangjin $(Q)install -D -m 755 vmlinuz $(INSTALL_PATH)/vmlinuz-$(KERNELRELEASE) 29959968d3bSRalf Baechle $(Q)install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE) 30059968d3bSRalf Baechle $(Q)install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE) 30159968d3bSRalf Baechle 3021da177e4SLinus Torvaldsarchclean: 303d745866eSSam Ravnborg $(Q)$(MAKE) $(clean)=arch/mips/boot 304d745866eSSam Ravnborg $(Q)$(MAKE) $(clean)=arch/mips/boot/compressed 305d745866eSSam Ravnborg $(Q)$(MAKE) $(clean)=arch/mips/lasat 3061da177e4SLinus Torvalds 307e7865765SRalf Baechledefine archhelp 30859968d3bSRalf Baechle echo ' install - install kernel into $(INSTALL_PATH)' 309e7865765SRalf Baechle echo ' vmlinux.ecoff - ECOFF boot image' 310e7865765SRalf Baechle echo ' vmlinux.bin - Raw binary boot image' 311e7865765SRalf Baechle echo ' vmlinux.srec - SREC boot image' 3121b93b3c3SWu Zhangjin echo ' vmlinuz - Compressed boot(zboot) image' 3131b93b3c3SWu Zhangjin echo ' vmlinuz.ecoff - ECOFF zboot image' 3141b93b3c3SWu Zhangjin echo ' vmlinuz.bin - Raw binary zboot image' 3151b93b3c3SWu Zhangjin echo ' vmlinuz.srec - SREC zboot image' 316e7865765SRalf Baechle echo 31725985edcSLucas De Marchi echo ' These will be default as appropriate for a configured platform.' 318e7865765SRalf Baechleendef 319