Makefile (2d8ad8719591fa803b0d589ed057fa46f49b7155) | Makefile (684151a75bf25f5aeb8a23010da91a34e17b7353) |
---|---|
1# Makefile for the Sparc boot stuff. 2# 3# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 4# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz) 5 6ROOT_IMG := /usr/src/root.img 7ELFTOAOUT := elftoaout | 1# Makefile for the Sparc boot stuff. 2# 3# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 4# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz) 5 6ROOT_IMG := /usr/src/root.img 7ELFTOAOUT := elftoaout |
8MKIMAGE := $(srctree)/scripts/mkuboot.sh |
|
8 9hostprogs-y := piggyback btfixupprep 10targets := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout 11clean-files := System.map 12 13quiet_cmd_elftoaout = ELFTOAOUT $@ 14 cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@ 15quiet_cmd_piggy = PIGGY $@ --- 56 unchanged lines hidden (view full) --- 72 73$(obj)/zImage: $(obj)/image 74 $(call if_changed,gzip) 75 @echo ' kernel: $@ is ready' 76 77$(obj)/vmlinux.aout: vmlinux FORCE 78 $(call if_changed,elftoaout) 79 @echo ' kernel: $@ is ready' | 9 10hostprogs-y := piggyback btfixupprep 11targets := tftpboot.img btfix.o btfix.S image zImage vmlinux.aout 12clean-files := System.map 13 14quiet_cmd_elftoaout = ELFTOAOUT $@ 15 cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@ 16quiet_cmd_piggy = PIGGY $@ --- 56 unchanged lines hidden (view full) --- 73 74$(obj)/zImage: $(obj)/image 75 $(call if_changed,gzip) 76 @echo ' kernel: $@ is ready' 77 78$(obj)/vmlinux.aout: vmlinux FORCE 79 $(call if_changed,elftoaout) 80 @echo ' kernel: $@ is ready' |
81else 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 88OBJCOPYFLAGS_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 95quiet_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 101quiet_cmd_uimage.o = UIMAGE.O $@ 102 cmd_uimage.o = $(LD) -Tdata $(CONFIG_UBOOT_FLASH_ADDR) \ 103 -r -b binary $@ -o $@.o 104 105targets += uImage 106$(obj)/uImage: $(obj)/image.gz 107 $(call if_changed,uimage) 108 $(call if_changed,uimage.o) 109 @echo ' Image $@ is ready' 110 |
|
80endif 81 82$(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE 83 $(call if_changed,elftoaout) 84 $(call if_changed,piggy) | 111endif 112 113$(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE 114 $(call if_changed,elftoaout) 115 $(call if_changed,piggy) |