mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
e183130c9a
My build test setup compiles allmodconfig all various architectures (arm64 m68k powerpc riscv s390 sparc64 x86_64) using make -s. If there is no warning, the only output is kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready from the sparc64 build. Copy the incantation from x86 which is silent when building with make -s and also mentions a version indication. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
73 lines
2.2 KiB
Makefile
73 lines
2.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for the Sparc boot stuff.
|
|
#
|
|
# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
|
|
# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
|
|
|
|
ROOT_IMG := /usr/src/root.img
|
|
ELFTOAOUT := elftoaout
|
|
|
|
hostprogs := piggyback
|
|
targets := tftpboot.img image zImage vmlinux.aout
|
|
clean-files := System.map
|
|
|
|
quiet_cmd_elftoaout = ELFTOAOUT $@
|
|
cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@
|
|
quiet_cmd_piggy = PIGGY $@
|
|
cmd_piggy = $(obj)/piggyback $(BITS) $@ System.map $(ROOT_IMG)
|
|
quiet_cmd_strip = STRIP $@
|
|
cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start $< -o $@
|
|
|
|
ifeq ($(CONFIG_SPARC64),y)
|
|
|
|
# Actual linking
|
|
|
|
$(obj)/zImage: $(obj)/image FORCE
|
|
$(call if_changed,gzip)
|
|
@$(kecho) 'Kernel: $@ is ready' '(#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
|
|
|
|
$(obj)/vmlinux.aout: vmlinux FORCE
|
|
$(call if_changed,elftoaout)
|
|
@$(kecho) 'Kernel: $@ is ready' '(#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
|
|
else
|
|
|
|
$(obj)/zImage: $(obj)/image FORCE
|
|
$(call if_changed,strip)
|
|
@$(kecho) 'Kernel: $@ is ready' '(#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
|
|
|
|
# The following lines make a readable image for U-Boot.
|
|
# uImage - Binary file read by U-boot
|
|
# uImage.o - object file of uImage for loading with a
|
|
# flash programmer understanding ELF.
|
|
|
|
OBJCOPYFLAGS_image.bin := -S -O binary -R .note -R .comment
|
|
$(obj)/image.bin: $(obj)/image FORCE
|
|
$(call if_changed,objcopy)
|
|
|
|
$(obj)/image.gz: $(obj)/image.bin FORCE
|
|
$(call if_changed,gzip)
|
|
|
|
UIMAGE_LOADADDR = $(CONFIG_UBOOT_LOAD_ADDR)
|
|
UIMAGE_ENTRYADDR = $(CONFIG_UBOOT_ENTRY_ADDR)
|
|
UIMAGE_COMPRESSION = gzip
|
|
|
|
quiet_cmd_uimage.o = UIMAGE.O $@
|
|
cmd_uimage.o = $(LD) -Tdata $(CONFIG_UBOOT_FLASH_ADDR) \
|
|
-r -b binary $@ -o $@.o
|
|
|
|
targets += uImage
|
|
$(obj)/uImage: $(obj)/image.gz FORCE
|
|
$(call if_changed,uimage)
|
|
$(call if_changed,uimage.o)
|
|
@$(kecho) 'Kernel: $@ is ready' '(#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
|
|
|
|
endif
|
|
|
|
$(obj)/image: vmlinux FORCE
|
|
$(call if_changed,strip)
|
|
@$(kecho) 'Kernel: $@ is ready' '(#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
|
|
|
|
$(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE
|
|
$(call if_changed,elftoaout)
|
|
$(call if_changed,piggy)
|