Linux 5.7.6
[linux/fpc-iii.git] / arch / s390 / tools / Makefile
blobf9dd47ff9ac4515de9347ce9593e4c9ed4d409c8
1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for s390 specific build tools
6 kapi := arch/$(ARCH)/include/generated/asm
7 kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h
9 PHONY += kapi
11 kapi: $(kapi-hdrs-y)
13 hostprogs += gen_facilities
14 hostprogs += gen_opcode_table
16 HOSTCFLAGS_gen_facilities.o += $(LINUXINCLUDE)
18 filechk_facility-defs.h = $(obj)/gen_facilities
20 filechk_dis-defs.h = \
21 $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt
23 $(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE
24 $(call filechk,facility-defs.h)
26 $(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE
27 $(call filechk,dis-defs.h)