xref: /openbmc/linux/arch/s390/boot/Makefile (revision b2441318)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the linux s390-specific parts of the memory manager.
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
61da177e4SLinus TorvaldsCOMPILE_VERSION := __linux_compile_version_id__`hostname |  \
71da177e4SLinus Torvalds			tr -c '[0-9A-Za-z]' '_'`__`date | \
81da177e4SLinus Torvalds			tr -c '[0-9A-Za-z]' '_'`_t
91da177e4SLinus Torvalds
10c73028a0Smatt mooneyccflags-y  := -DCOMPILE_VERSION=$(COMPILE_VERSION) -gstabs -I.
111da177e4SLinus Torvalds
121da177e4SLinus Torvaldstargets := image
131844c9bcSMartin Schwidefskytargets += bzImage
141844c9bcSMartin Schwidefskysubdir- := compressed
151da177e4SLinus Torvalds
161da177e4SLinus Torvalds$(obj)/image: vmlinux FORCE
171da177e4SLinus Torvalds	$(call if_changed,objcopy)
181da177e4SLinus Torvalds
191844c9bcSMartin Schwidefsky$(obj)/bzImage: $(obj)/compressed/vmlinux FORCE
201844c9bcSMartin Schwidefsky	$(call if_changed,objcopy)
211844c9bcSMartin Schwidefsky
221844c9bcSMartin Schwidefsky$(obj)/compressed/vmlinux: FORCE
231844c9bcSMartin Schwidefsky	$(Q)$(MAKE) $(build)=$(obj)/compressed $@
241844c9bcSMartin Schwidefsky
25aec644e5SHendrik Bruecknerinstall: $(CONFIGURE) $(obj)/bzImage
26aec644e5SHendrik Brueckner	sh -x  $(srctree)/$(obj)/install.sh $(KERNELRELEASE) $(obj)/bzImage \
27679e2ea7SHeiko Carstens	      System.map "$(INSTALL_PATH)"
28