diff options
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index b15f6048caae..154803a22698 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -103,7 +103,6 @@ endef | |||
103 | 103 | ||
104 | ifneq ($(KBUILD_SRC),) | 104 | ifneq ($(KBUILD_SRC),) |
105 | $(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch) | 105 | $(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch) |
106 | CLEAN_FILES += $(ARCH_DIR)/Kconfig.arch | ||
107 | else | 106 | else |
108 | $(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch) | 107 | $(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch) |
109 | endif | 108 | endif |
@@ -144,14 +143,14 @@ endef | |||
144 | #TT or skas makefiles and don't clean skas_ptregs.h. | 143 | #TT or skas makefiles and don't clean skas_ptregs.h. |
145 | CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \ | 144 | CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \ |
146 | $(GEN_HEADERS) $(ARCH_DIR)/include/skas_ptregs.h \ | 145 | $(GEN_HEADERS) $(ARCH_DIR)/include/skas_ptregs.h \ |
147 | $(ARCH_DIR)/include/user_constants.h | 146 | $(ARCH_DIR)/include/user_constants.h $(ARCH_DIR)/Kconfig.arch |
148 | 147 | ||
149 | MRPROPER_FILES += $(SYMLINK_HEADERS) $(ARCH_SYMLINKS) \ | 148 | MRPROPER_FILES += $(SYMLINK_HEADERS) $(ARCH_SYMLINKS) \ |
150 | $(addprefix $(ARCH_DIR)/kernel/,$(KERN_SYMLINKS)) $(ARCH_DIR)/os \ | 149 | $(addprefix $(ARCH_DIR)/kernel/,$(KERN_SYMLINKS)) $(ARCH_DIR)/os |
151 | $(ARCH_DIR)/Kconfig.arch | ||
152 | 150 | ||
153 | archclean: | 151 | archclean: |
154 | $(Q)$(MAKE) $(clean)=$(ARCH_DIR)/util | 152 | $(Q)$(MAKE) $(clean)=$(ARCH_DIR)/util |
153 | $(Q)$(MAKE) $(clean)=$(ARCH_DIR)/os-$(OS)/util | ||
155 | @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \ | 154 | @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \ |
156 | -o -name '*.gcov' \) -type f -print | xargs rm -f | 155 | -o -name '*.gcov' \) -type f -print | xargs rm -f |
157 | 156 | ||
@@ -197,6 +196,22 @@ define filechk_umlconfig | |||
197 | sed 's/ CONFIG/ UML_CONFIG/' | 196 | sed 's/ CONFIG/ UML_CONFIG/' |
198 | endef | 197 | endef |
199 | 198 | ||
199 | define filechk_gen-asm-offsets | ||
200 | (set -e; \ | ||
201 | echo "#ifndef __ASM_OFFSETS_H__"; \ | ||
202 | echo "#define __ASM_OFFSETS_H__"; \ | ||
203 | echo "/*"; \ | ||
204 | echo " * DO NOT MODIFY."; \ | ||
205 | echo " *"; \ | ||
206 | echo " * This file was generated by arch/$(ARCH)/Makefile"; \ | ||
207 | echo " *"; \ | ||
208 | echo " */"; \ | ||
209 | echo ""; \ | ||
210 | sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \ | ||
211 | echo ""; \ | ||
212 | echo "#endif" ) | ||
213 | endef | ||
214 | |||
200 | $(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h | 215 | $(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h |
201 | $(call filechk,umlconfig) | 216 | $(call filechk,umlconfig) |
202 | 217 | ||