1 # SPDX-License-Identifier: GPL-2.0-only !! 1 # $Id: Makefile,v 1.10 2000/02/23 08:17:46 jj Exp $ 2 targets := Image zImage uImage !! 2 # Makefile for the Sparc boot stuff. >> 3 # >> 4 # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) >> 5 # Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz) 3 6 4 $(obj)/Image: vmlinux FORCE !! 7 ROOT_IMG := /usr/src/root.img 5 $(call if_changed,objcopy) !! 8 ELFTOAOUT := elftoaout 6 @echo ' Kernel: $@ is ready' !! 9 7 !! 10 host-progs := piggyback btfixupprep 8 compress-$(CONFIG_KERNEL_GZIP) = gzip !! 11 targets := tftpboot.img btfix.o btfix.s image 9 compress-$(CONFIG_KERNEL_LZO) = lzo !! 12 10 compress-$(CONFIG_KERNEL_LZMA) = lzma !! 13 quiet_cmd_elftoaout = ELFTOAOUT $@ 11 compress-$(CONFIG_KERNEL_XZ) = xzkern !! 14 cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@ 12 compress-$(CONFIG_KERNEL_LZ4) = lz4 !! 15 quiet_cmd_piggy = PIGGY $@ 13 !! 16 cmd_piggy = $(obj)/piggyback $@ $(obj)/System.map $(ROOT_IMG) 14 $(obj)/zImage: $(obj)/Image FORCE !! 17 quiet_cmd_btfix = BTFIX $@ 15 $(call if_changed,$(compress-y)) !! 18 cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@ 16 @echo ' Kernel: $@ is ready' !! 19 17 !! 20 BTOBJS := $(HEAD_Y) $(INIT_Y) 18 UIMAGE_ARCH = sandbox !! 21 BTLIBS := $(CORE_Y) $(LIBS_Y) $(DRIVERS_Y) $(NET_Y) 19 UIMAGE_COMPRESSION = $(compress-y) !! 22 LDFLAGS_image := -T arch/sparc/kernel/vmlinux.lds.s $(BTOBJS) --start-group $(BTLIBS) --end-group 20 UIMAGE_LOADADDR = $(shell $(NM) vmlinu !! 23 21 !! 24 # Actual linking 22 $(obj)/uImage: $(obj)/zImage !! 25 $(obj)/image: $(obj)/btfix.o FORCE 23 $(call if_changed,uimage) !! 26 $(call if_changed,ld) 24 @echo 'Image: $@ is ready' !! 27 $(NM) $@ | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > $(obj)/System.map >> 28 >> 29 $(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE >> 30 $(call if_changed,elftoaout) >> 31 $(call if_changed,piggy) >> 32 >> 33 $(obj)/btfix.s: $(obj)/btfixupprep vmlinux FORCE >> 34 $(call if_changed,btfix) >> 35 >> 36 clean: >> 37 rm $(obj)/System.map
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.