1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2c30f6828SHeiko Carstens# 3c30f6828SHeiko Carstens# Makefile for s390 specific build tools 4c30f6828SHeiko Carstens# 5c30f6828SHeiko Carstens 67fbf8315SHendrik Bruecknerkapi := arch/$(ARCH)/include/generated/asm 77fbf8315SHendrik Bruecknerkapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h 87fbf8315SHendrik Brueckner 97fbf8315SHendrik BruecknerPHONY += kapi 107fbf8315SHendrik Brueckner 117fbf8315SHendrik Bruecknerkapi: $(kapi-hdrs-y) 127fbf8315SHendrik Brueckner 13*5f2fb52fSMasahiro Yamadahostprogs += gen_facilities 14*5f2fb52fSMasahiro Yamadahostprogs += gen_opcode_table 158bc1e4ecSHeiko Carstens 16f1090b61SMasahiro YamadaHOSTCFLAGS_gen_facilities.o += $(LINUXINCLUDE) 17c30f6828SHeiko Carstens 18ba97df45SMasahiro Yamadafilechk_facility-defs.h = $(obj)/gen_facilities 19c30f6828SHeiko Carstens 20ba97df45SMasahiro Yamadafilechk_dis-defs.h = \ 21ad774086SMasahiro Yamada $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt 228bc1e4ecSHeiko Carstens 237fbf8315SHendrik Brueckner$(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE 247fbf8315SHendrik Brueckner $(call filechk,facility-defs.h) 258bc1e4ecSHeiko Carstens 267fbf8315SHendrik Brueckner$(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE 277fbf8315SHendrik Brueckner $(call filechk,dis-defs.h) 28