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