iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support
[linux/fpc-iii.git] / arch / s390 / tools / Makefile
blob48cdac1143a9f4c99f784535c13e41f5a6056da9
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))
10 PHONY += kapi
12 kapi: $(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
24 $(obj)/gen_facilities
25 endef
27 define filechk_dis-defs.h
28 ( $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt )
29 endef
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)