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 targets
+= $(addprefix ..
/..
/..
/,$(kapi-hdrs-y
))
14 hostprogs-y
+= gen_facilities
15 hostprogs-y
+= gen_opcode_table
17 HOSTCFLAGS_gen_facilities.o
+= -Wall
$(LINUXINCLUDE
)
18 HOSTCFLAGS_gen_opcode_table.o
+= -Wall
$(LINUXINCLUDE
)
20 # Ensure output directory exists
21 _dummy
:= $(shell [ -d
'$(kapi)' ] || mkdir
-p
'$(kapi)')
23 define filechk_facility-defs.h
27 define filechk_dis-defs.h
28 ( $(obj
)/gen_opcode_table
< $(srctree
)/arch
/$(ARCH
)/tools
/opcodes.txt
)
31 $(kapi
)/facility-defs.h
: $(obj
)/gen_facilities FORCE
32 $(call filechk
,facility-defs.h
)
34 $(kapi
)/dis-defs.h
: $(obj
)/gen_opcode_table FORCE
35 $(call filechk
,dis-defs.h
)