Makefile (0898782247ae533d1f4e47a06bc5d4870931b284) Makefile (5f2fb52fac15a8a8e10ce020dd532504a8abfc4e)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for s390 specific build tools
4#
5
6kapi := arch/$(ARCH)/include/generated/asm
7kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h
8
9PHONY += kapi
10
11kapi: $(kapi-hdrs-y)
12
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for s390 specific build tools
4#
5
6kapi := arch/$(ARCH)/include/generated/asm
7kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h
8
9PHONY += kapi
10
11kapi: $(kapi-hdrs-y)
12
13hostprogs-y += gen_facilities
14hostprogs-y += gen_opcode_table
13hostprogs += gen_facilities
14hostprogs += gen_opcode_table
15
16HOSTCFLAGS_gen_facilities.o += $(LINUXINCLUDE)
17
18filechk_facility-defs.h = $(obj)/gen_facilities
19
20filechk_dis-defs.h = \
21 $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt
22
23$(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE
24 $(call filechk,facility-defs.h)
25
26$(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE
27 $(call filechk,dis-defs.h)
15
16HOSTCFLAGS_gen_facilities.o += $(LINUXINCLUDE)
17
18filechk_facility-defs.h = $(obj)/gen_facilities
19
20filechk_dis-defs.h = \
21 $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt
22
23$(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE
24 $(call filechk,facility-defs.h)
25
26$(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE
27 $(call filechk,dis-defs.h)