Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
c30f6828 HC |
2 | # |
3 | # Makefile for s390 specific build tools | |
4 | # | |
5 | ||
7fbf8315 HB |
6 | kapi := arch/$(ARCH)/include/generated/asm |
7 | kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h | |
8 | ||
7fbf8315 HB |
9 | PHONY += kapi |
10 | ||
11 | kapi: $(kapi-hdrs-y) | |
12 | ||
c30f6828 | 13 | hostprogs-y += gen_facilities |
8bc1e4ec HC |
14 | hostprogs-y += gen_opcode_table |
15 | ||
f1090b61 | 16 | HOSTCFLAGS_gen_facilities.o += $(LINUXINCLUDE) |
c30f6828 | 17 | |
ba97df45 | 18 | filechk_facility-defs.h = $(obj)/gen_facilities |
c30f6828 | 19 | |
ba97df45 | 20 | filechk_dis-defs.h = \ |
ad774086 | 21 | $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt |
8bc1e4ec | 22 | |
7fbf8315 HB |
23 | $(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE |
24 | $(call filechk,facility-defs.h) | |
8bc1e4ec | 25 | |
7fbf8315 HB |
26 | $(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE |
27 | $(call filechk,dis-defs.h) |