home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / arch / arm26 / Makefile < prev   
Encoding:
Makefile  |  2006-08-11  |  3.1 KB  |  108 lines

  1. #
  2. # arch/arm26/Makefile
  3. #
  4. # This file is included by the global makefile so that you can add your own
  5. # architecture-specific flags and dependencies.
  6. #
  7. # This file is subject to the terms and conditions of the GNU General Public
  8. # License.  See the file "COPYING" in the main directory of this archive
  9. # for more details.
  10. #
  11. # Copyright (C) 1995-2001 by Russell King
  12. # Copyright (c) 2004 Ian Molton
  13.  
  14. LDFLAGS_vmlinux    :=-p -X
  15. CPPFLAGS_vmlinux.lds = -DTEXTADDR=$(TEXTADDR) -DDATAADDR=$(DATAADDR)
  16. OBJCOPYFLAGS    :=-O binary -R .note -R .comment -S
  17. GZFLAGS        :=-9
  18.  
  19. ifeq ($(CONFIG_FRAME_POINTER),y)
  20. CFLAGS        +=-fno-omit-frame-pointer -mno-sched-prolog
  21. endif
  22.  
  23. CFLAGS_BOOT    :=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
  24. CFLAGS        +=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
  25. AFLAGS        +=-mapcs-26 -mcpu=arm3 -msoft-float
  26.  
  27. ifeq ($(CONFIG_XIP_KERNEL),y)
  28.   TEXTADDR     := 0x03880000
  29.   DATAADDR     := 0x02080000
  30. else
  31.   TEXTADDR     := 0x02080000
  32.   DATAADDR       := .
  33. endif
  34.  
  35. head-y          := arch/arm26/kernel/head.o arch/arm26/kernel/init_task.o
  36.  
  37. ifeq ($(incdir-y),)
  38. incdir-y :=
  39. endif
  40. INCDIR   :=
  41.   
  42. export    MACHINE TEXTADDR GZFLAGS CFLAGS_BOOT
  43.  
  44. # If we have a machine-specific directory, then include it in the build.
  45. core-y                += arch/arm26/kernel/ arch/arm26/mm/ arch/arm26/machine/
  46. core-$(CONFIG_FPE_NWFPE)    += arch/arm26/nwfpe/
  47.  
  48. libs-y                += arch/arm26/lib/
  49.  
  50. # Default target when executing plain make
  51. all: zImage
  52.  
  53. boot := arch/arm26/boot
  54.  
  55. PHONY += maketools FORCE
  56. maketools: FORCE
  57.  
  58.  
  59. # Convert bzImage to zImage
  60. bzImage: vmlinux
  61.     $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
  62.  
  63. zImage Image bootpImage xipImage: vmlinux
  64.     $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  65.  
  66. zinstall install: vmlinux
  67.     $(Q)$(MAKE) $(build)=$(boot) $@
  68.  
  69. # We use MRPROPER_FILES and CLEAN_FILES now
  70. archclean:
  71.     $(Q)$(MAKE) $(clean)=$(boot)
  72.  
  73. # My testing targets (that short circuit a few dependencies)
  74. zImg:;    $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
  75. Img:;    $(Q)$(MAKE) $(build)=$(boot) $(boot)/Image
  76. bp:;    $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage
  77. i:;    $(Q)$(MAKE) $(build)=$(boot) install
  78. zi:;    $(Q)$(MAKE) $(build)=$(boot) zinstall
  79.  
  80. #
  81. # Configuration targets.  Use these to select a
  82. # configuration for your architecture
  83. %_config:
  84.     @( \
  85.     CFG=$(@:_config=); \
  86.     if [ -f arch/arm26/def-configs/$$CFG ]; then \
  87.       [ -f .config ] && mv -f .config .config.old; \
  88.       cp arch/arm26/def-configs/$$CFG .config; \
  89.       echo "*** Default configuration for $$CFG installed"; \
  90.       echo "*** Next, you may run 'make oldconfig'"; \
  91.     else \
  92.       echo "$$CFG does not exist"; \
  93.     fi; \
  94.     )
  95.  
  96. define archhelp
  97.   echo  '* zImage        - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
  98.   echo  '  Image         - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
  99.   echo  '  bootpImage    - Combined zImage and initial RAM disk' 
  100.   echo  '  xipImage      - eXecute In Place capable image for ROM use (arch/$(ARCH)/boot/xipImage)'
  101.   echo  '  initrd        - Create an initial image'
  102.   echo  '  install       - Install uncompressed kernel'
  103.   echo  '  zinstall      - Install compressed kernel'
  104.   echo  '                  Install using (your) ~/bin/installkernel or'
  105.   echo  '                  (distribution) /sbin/installkernel or'
  106.   echo  '                  install to $$(INSTALL_PATH) and run lilo'
  107. endef
  108.