xref: /openbmc/linux/arch/s390/boot/Makefile (revision 160b8e75)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux s390-specific parts of the memory manager.
4#
5
6COMPILE_VERSION := __linux_compile_version_id__`hostname |  \
7			tr -c '[0-9A-Za-z]' '_'`__`date | \
8			tr -c '[0-9A-Za-z]' '_'`_t
9
10ccflags-y  := -DCOMPILE_VERSION=$(COMPILE_VERSION) -gstabs -I.
11
12targets := image
13targets += bzImage
14subdir- := compressed
15
16$(obj)/image: vmlinux FORCE
17	$(call if_changed,objcopy)
18
19$(obj)/bzImage: $(obj)/compressed/vmlinux FORCE
20	$(call if_changed,objcopy)
21
22$(obj)/compressed/vmlinux: FORCE
23	$(Q)$(MAKE) $(build)=$(obj)/compressed $@
24
25install: $(CONFIGURE) $(obj)/bzImage
26	sh -x  $(srctree)/$(obj)/install.sh $(KERNELRELEASE) $(obj)/bzImage \
27	      System.map "$(INSTALL_PATH)"
28