aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/Makefile
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2015-02-02 01:08:44 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-12-18 08:59:20 -0500
commitc30f6828fed9d33c2d54dfaf3621717c56f9c779 (patch)
tree70ceed0eaf29d2410f8ac06c999a53d62368a44b /arch/s390/Makefile
parent76cdd44c2e56ffabc297494c090c6babc8985998 (diff)
s390/facilities: add helper tool to generate facility lists
Modifying the architecture level set facility lists was always very error prone. Given the numbering of the facility bits within the Principles of Operation, where the most significant bit number is 0, it happened a lot of times that wrong bits were set or cleared. Therefore this patch adds a tool "gen_facilities" which generates include/generated/facilites.h. The definition of the bits to be set is contained within arch/s390/include/asm/facilities_src.h and can be easily extended to e.g. also generate such lists for the KVM module. The generated file looks like this: #define FACILITIES_ALS _AC(0xc1006450f0040000,UL) #define FACILITIES_ALS_DWORDS 1 The facility bits defined in this patch match 1:1 to the current masks that can be found in head.S. That is if the tool gets executed with -march=z990 then the generated masks will equal the masks in head.S for CONFIG_MARCH_Z990. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r--arch/s390/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index 647bd14b223e..224b42734f0d 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -106,6 +106,7 @@ drivers-y += drivers/s390/
106drivers-$(CONFIG_OPROFILE) += arch/s390/oprofile/ 106drivers-$(CONFIG_OPROFILE) += arch/s390/oprofile/
107 107
108boot := arch/s390/boot 108boot := arch/s390/boot
109tools := arch/s390/tools
109 110
110all: image bzImage 111all: image bzImage
111 112
@@ -124,6 +125,10 @@ vdso_install:
124 125
125archclean: 126archclean:
126 $(Q)$(MAKE) $(clean)=$(boot) 127 $(Q)$(MAKE) $(clean)=$(boot)
128 $(Q)$(MAKE) $(clean)=$(tools)
129
130archprepare:
131 $(Q)$(MAKE) $(build)=$(tools) include/generated/facilities.h
127 132
128# Don't use tabs in echo arguments 133# Don't use tabs in echo arguments
129define archhelp 134define archhelp