Back to home page

LXR

 
 

    


0001 #
0002 # linux/arch/c6x/Makefile
0003 #
0004 # This file is subject to the terms and conditions of the GNU General Public
0005 # License.  See the file "COPYING" in the main directory of this archive
0006 # for more details.
0007 #
0008 
0009 KBUILD_DEFCONFIG := dsk6455_defconfig
0010 
0011 cflags-y += -mno-dsbt -msdata=none -D__linux__
0012 
0013 cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls
0014 
0015 CFLAGS_MODULE   += -mlong-calls -mno-dsbt -msdata=none
0016 
0017 CHECKFLAGS      +=
0018 
0019 KBUILD_CFLAGS   += $(cflags-y)
0020 KBUILD_AFLAGS   += $(cflags-y)
0021 
0022 ifdef CONFIG_CPU_BIG_ENDIAN
0023 KBUILD_CFLAGS   += -mbig-endian
0024 KBUILD_AFLAGS   += -mbig-endian
0025 LINKFLAGS       += -mbig-endian
0026 KBUILD_LDFLAGS  += -mbig-endian
0027 LDFLAGS += -EB
0028 endif
0029 
0030 head-y          := arch/c6x/kernel/head.o
0031 core-y          += arch/c6x/kernel/ arch/c6x/mm/ arch/c6x/platforms/
0032 libs-y          += arch/c6x/lib/
0033 
0034 # Default to vmlinux.bin, override when needed
0035 all: vmlinux.bin
0036 
0037 boot := arch/$(ARCH)/boot
0038 
0039 # Are we making a dtbImage.<boardname> target? If so, crack out the boardname
0040 DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS)))
0041 export DTB
0042 
0043 ifneq ($(DTB),)
0044 core-y  += $(boot)/dts/
0045 endif
0046 
0047 # With make 3.82 we cannot mix normal and wildcard targets
0048 
0049 vmlinux.bin: vmlinux
0050         $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
0051 
0052 dtbImage.%: vmlinux
0053         $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
0054 
0055 archclean:
0056         $(Q)$(MAKE) $(clean)=$(boot)
0057 
0058 define archhelp
0059   @echo '  vmlinux.bin     - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)'
0060   @echo '  dtbImage.<dt>   - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
0061   @echo '                  - stripped elf with fdt blob'
0062 endef