Blame view

arch/xtensa/boot/Makefile 858 Bytes
4bedea945   Chris Zankel   [PATCH] xtensa: A...
1
2
3
4
5
6
7
8
  #
  # arch/xtensa/boot/Makefile
  #
  # This file is subject to the terms and conditions of the GNU General Public
  # License.  See the file "COPYING" in the main directory of this archive
  # for more details.
  #
  #
437374e9a   Milton Miller   kbuild: restore a...
9
10
  # KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
  KBUILD_CFLAGS	+= -fno-builtin -Iarch/$(ARCH)/boot/include
4bedea945   Chris Zankel   [PATCH] xtensa: A...
11
  HOSTFLAGS	+= -Iarch/$(ARCH)/boot/include
e7d163f76   Chris Zankel   [PATCH] xtensa: R...
12
  BIG_ENDIAN	:= $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
4bedea945   Chris Zankel   [PATCH] xtensa: A...
13

3996eabba   matt mooney   xtensa: change to...
14
  export ccflags-y
4bedea945   Chris Zankel   [PATCH] xtensa: A...
15
  export BIG_ENDIAN
e7d163f76   Chris Zankel   [PATCH] xtensa: R...
16
  subdir-y	:= lib
4bedea945   Chris Zankel   [PATCH] xtensa: A...
17
18
19
20
  # Subdirs for the boot loader(s)
  
  bootdir-$(CONFIG_XTENSA_PLATFORM_ISS)	 += boot-elf
  bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf
4bedea945   Chris Zankel   [PATCH] xtensa: A...
21
22
23
24
25
26
  
  zImage zImage.initrd Image Image.initrd: $(bootdir-y)
  
  $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
  	      $(addprefix $(obj)/,$(host-progs))
  	$(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)