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