Back to home page

LXR

 
 

    


0001 #
0002 # arch/unicore32/Makefile
0003 #
0004 # This file is included by the global makefile so that you can add your own
0005 # architecture-specific flags and dependencies.
0006 #
0007 # This file is subject to the terms and conditions of the GNU General Public
0008 # License.  See the file "COPYING" in the main directory of this archive
0009 # for more details.
0010 #
0011 # Copyright (C) 2002~2010 by Guan Xue-tao
0012 #
0013 ifneq ($(SUBARCH),$(ARCH))
0014         ifeq ($(CROSS_COMPILE),)
0015                 CROSS_COMPILE := $(call cc-cross-prefix, unicore32-linux-)
0016         endif
0017 endif
0018 
0019 LDFLAGS_vmlinux         := -p --no-undefined -X
0020 
0021 OBJCOPYFLAGS            := -O binary -R .note -R .note.gnu.build-id -R .comment -S
0022 
0023 # Never generate .eh_frame
0024 KBUILD_CFLAGS           += $(call cc-option,-fno-dwarf2-cfi-asm)
0025 
0026 # Never use hard float in kernel
0027 KBUILD_CFLAGS           += -msoft-float
0028 
0029 ifeq ($(CONFIG_FRAME_POINTER),y)
0030 KBUILD_CFLAGS           += -mno-sched-prolog
0031 endif
0032 
0033 CHECKFLAGS              += -D__unicore32__
0034 
0035 head-y                  := arch/unicore32/kernel/head.o
0036 
0037 core-y                  += arch/unicore32/kernel/
0038 core-y                  += arch/unicore32/mm/
0039 
0040 libs-y                  += arch/unicore32/lib/
0041 
0042 boot                    := arch/unicore32/boot
0043 
0044 # Default defconfig and target when executing plain make
0045 KBUILD_DEFCONFIG        := $(ARCH)_defconfig
0046 KBUILD_IMAGE            := zImage
0047 
0048 all:    $(KBUILD_IMAGE)
0049 
0050 zImage Image uImage: vmlinux
0051         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
0052 
0053 archclean:
0054         $(Q)$(MAKE) $(clean)=$(boot)
0055 
0056 define archhelp
0057   echo  '* zImage        - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
0058   echo  '  Image         - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
0059   echo  '  uImage        - U-Boot wrapped zImage'
0060 endef