diff options
Diffstat (limited to 'arch/mn10300/Makefile')
-rw-r--r-- | arch/mn10300/Makefile | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/arch/mn10300/Makefile b/arch/mn10300/Makefile index 6673a28ec07a..dd0c8ff52a68 100644 --- a/arch/mn10300/Makefile +++ b/arch/mn10300/Makefile | |||
@@ -94,42 +94,8 @@ ifdef CONFIG_DEBUG_INFO | |||
94 | KBUILD_AFLAGS += -Wa,--gdwarf2 | 94 | KBUILD_AFLAGS += -Wa,--gdwarf2 |
95 | endif | 95 | endif |
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 | 100 | KBUILD_CPPFLAGS += -I$(srctree)/arch/mn10300/proc-$(PROCESSOR)/include |
102 | # them changed. We use .proc / .unit to indicate when they were | 101 | KBUILD_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 | ||
108 | include/asm-mn10300/.proc: $(wildcard include/config/proc/*.h) include/config/auto.conf | ||
109 | @echo ' SYMLINK include/asm-mn10300/proc -> include/asm-mn10300/proc-$(PROCESSOR)' | ||
110 | ifneq ($(KBUILD_SRC),) | ||
111 | $(Q)mkdir -p include/asm-mn10300 | ||
112 | $(Q)ln -fsn $(srctree)/include/asm-mn10300/proc-$(PROCESSOR) include/asm-mn10300/proc | ||
113 | else | ||
114 | $(Q)ln -fsn proc-$(PROCESSOR) include/asm-mn10300/proc | ||
115 | endif | ||
116 | @touch $@ | ||
117 | |||
118 | CLEAN_FILES += include/asm-mn10300/proc include/asm-mn10300/.proc | ||
119 | |||
120 | prepare: include/asm-mn10300/.proc | ||
121 | |||
122 | # unit specific definitions | ||
123 | include/asm-mn10300/.unit: $(wildcard include/config/unit/*.h) include/config/auto.conf | ||
124 | @echo ' SYMLINK include/asm-mn10300/unit -> include/asm-mn10300/unit-$(UNIT)' | ||
125 | ifneq ($(KBUILD_SRC),) | ||
126 | $(Q)mkdir -p include/asm-mn10300 | ||
127 | $(Q)ln -fsn $(srctree)/include/asm-mn10300/unit-$(UNIT) include/asm-mn10300/unit | ||
128 | else | ||
129 | $(Q)ln -fsn unit-$(UNIT) include/asm-mn10300/unit | ||
130 | endif | ||
131 | @touch $@ | ||
132 | |||
133 | CLEAN_FILES += include/asm-mn10300/unit include/asm-mn10300/.unit | ||
134 | |||
135 | prepare: include/asm-mn10300/.unit | ||