1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for s390 specific build tools 4# 5 6hostprogs-y += gen_facilities 7hostprogs-y += gen_opcode_table 8 9HOSTCFLAGS_gen_facilities.o += -Wall $(LINUXINCLUDE) 10HOSTCFLAGS_gen_opcode_table.o += -Wall $(LINUXINCLUDE) 11 12define filechk_facilities.h 13 $(obj)/gen_facilities 14endef 15 16define filechk_dis.h 17 ( $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt ) 18endef 19 20include/generated/facilities.h: $(obj)/gen_facilities FORCE 21 $(call filechk,facilities.h) 22 23include/generated/dis.h: $(obj)/gen_opcode_table FORCE 24 $(call filechk,dis.h,__FUN) 25