aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mn10300/Makefile')
-rw-r--r--arch/mn10300/Makefile40
1 files changed, 3 insertions, 37 deletions
diff --git a/arch/mn10300/Makefile b/arch/mn10300/Makefile
index a5985ee94140..dd0c8ff52a68 100644
--- a/arch/mn10300/Makefile
+++ b/arch/mn10300/Makefile
@@ -94,42 +94,8 @@ ifdef CONFIG_DEBUG_INFO
94KBUILD_AFLAGS += -Wa,--gdwarf2 94KBUILD_AFLAGS += -Wa,--gdwarf2
95endif 95endif
96 96
97###################################################################################################
98# 97#
99# juggle some symlinks in the MN10300 asm include dir 98# include the appropriate processor- and unit-specific headers
100# 99#
101# Update machine proc and unit symlinks if something which affects 100KBUILD_CPPFLAGS += -I$(srctree)/arch/mn10300/proc-$(PROCESSOR)/include
102# them changed. We use .proc / .unit to indicate when they were 101KBUILD_CPPFLAGS += -I$(srctree)/arch/mn10300/unit-$(UNIT)/include
103# updated last, otherwise make uses the target directory mtime.
104#
105###################################################################################################
106
107# processor specific definitions
108arch/mn10300/include/asm/.proc: $(wildcard include/config/proc/*.h) include/config/auto.conf
109 @echo ' SYMLINK arch/mn10300/include/asm/proc -> arch/mn10300/include/asm/proc-$(PROCESSOR)'
110ifneq ($(KBUILD_SRC),)
111 $(Q)mkdir -p arch/mn10300/include/asm
112 $(Q)ln -fsn $(srctree)/arch/mn10300/include/asm/proc-$(PROCESSOR) arch/mn10300/include/asm/proc
113else
114 $(Q)ln -fsn proc-$(PROCESSOR) arch/mn10300/include/asm/proc
115endif
116 @touch $@
117
118CLEAN_FILES += arch/mn10300/include/asm/proc arch/mn10300/include/asm/.proc
119
120prepare: arch/mn10300/include/asm/.proc
121
122# unit specific definitions
123arch/mn10300/include/asm/.unit: $(wildcard include/config/unit/*.h) include/config/auto.conf
124 @echo ' SYMLINK arch/mn10300/include/asm/unit -> arch/mn10300/include/asm/unit-$(UNIT)'
125ifneq ($(KBUILD_SRC),)
126 $(Q)mkdir -p arch/mn10300/include/asm
127 $(Q)ln -fsn $(srctree)/arch/mn10300/include/asm/unit-$(UNIT) arch/mn10300/include/asm/unit
128else
129 $(Q)ln -fsn unit-$(UNIT) arch/mn10300/include/asm/unit
130endif
131 @touch $@
132
133CLEAN_FILES += arch/mn10300/include/asm/unit arch/mn10300/include/asm/.unit
134
135prepare: arch/mn10300/include/asm/.unit