~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/sparc/boot/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
ROOT_IMG        := /usr/src/root.img
7
7
ELFTOAOUT       := elftoaout
 
8
MKIMAGE         := $(srctree)/scripts/mkuboot.sh
8
9
 
9
10
hostprogs-y     := piggyback btfixupprep
10
11
targets         := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout
77
78
$(obj)/vmlinux.aout: vmlinux FORCE
78
79
        $(call if_changed,elftoaout)
79
80
        @echo '  kernel: $@ is ready'
 
81
else
 
82
 
 
83
# The following lines make a readable image for U-Boot.
 
84
#  uImage   - Binary file read by U-boot
 
85
#  uImage.o - object file of uImage for loading with a
 
86
#             flash programmer understanding ELF.
 
87
 
 
88
OBJCOPYFLAGS_image.bin := -S -O binary -R .note -R .comment
 
89
$(obj)/image.bin: $(obj)/image FORCE
 
90
        $(call if_changed,objcopy)
 
91
 
 
92
$(obj)/image.gz: $(obj)/image.bin
 
93
        $(call if_changed,gzip)
 
94
 
 
95
quiet_cmd_uimage = UIMAGE  $@
 
96
      cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sparc -O linux -T kernel \
 
97
               -C gzip -a $(CONFIG_UBOOT_LOAD_ADDR) \
 
98
               -e $(CONFIG_UBOOT_ENTRY_ADDR) -n 'Linux-$(KERNELRELEASE)' \
 
99
               -d $< $@
 
100
 
 
101
quiet_cmd_uimage.o = UIMAGE.O $@
 
102
      cmd_uimage.o = $(LD) -Tdata $(CONFIG_UBOOT_FLASH_ADDR) \
 
103
                     -r -b binary $@ -o $@.o
 
104
 
 
105
targets += uImage
 
106
$(obj)/uImage: $(obj)/image.gz
 
107
        $(call if_changed,uimage)
 
108
        $(call if_changed,uimage.o)
 
109
        @echo '  Image $@ is ready'
 
110
 
80
111
endif
81
112
 
82
113
$(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE