sh: Make O= builds work again.
Some of the paths were a bit broken, fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -135,17 +135,14 @@ boot := arch/sh/boot
|
|||||||
|
|
||||||
CPPFLAGS_vmlinux.lds := -traditional
|
CPPFLAGS_vmlinux.lds := -traditional
|
||||||
|
|
||||||
ifneq ($(KBUILD_SRC),)
|
|
||||||
incdir-prefix := $(srctree)/include/asm-sh/
|
incdir-prefix := $(srctree)/include/asm-sh/
|
||||||
else
|
|
||||||
incdir-prefix :=
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Update machine arch and proc symlinks if something which affects
|
# Update machine arch and proc symlinks if something which affects
|
||||||
# them changed. We use .arch and .mach to indicate when they were
|
# them changed. We use .arch and .mach to indicate when they were
|
||||||
# updated last, otherwise make uses the target directory mtime.
|
# updated last, otherwise make uses the target directory mtime.
|
||||||
|
|
||||||
include/asm-sh/.cpu: $(wildcard include/config/cpu/*.h) include/config/auto.conf
|
include/asm-sh/.cpu: $(wildcard include/config/cpu/*.h) \
|
||||||
|
include/config/auto.conf FORCE
|
||||||
@echo ' SYMLINK include/asm-sh/cpu -> include/asm-sh/$(cpuincdir-y)'
|
@echo ' SYMLINK include/asm-sh/cpu -> include/asm-sh/$(cpuincdir-y)'
|
||||||
$(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
|
$(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
|
||||||
$(Q)ln -fsn $(incdir-prefix)$(cpuincdir-y) include/asm-sh/cpu
|
$(Q)ln -fsn $(incdir-prefix)$(cpuincdir-y) include/asm-sh/cpu
|
||||||
@@ -155,7 +152,8 @@ include/asm-sh/.cpu: $(wildcard include/config/cpu/*.h) include/config/auto.conf
|
|||||||
# don't, just reference the parent directory so the semantics are
|
# don't, just reference the parent directory so the semantics are
|
||||||
# kept roughly the same.
|
# kept roughly the same.
|
||||||
|
|
||||||
include/asm-sh/.mach: $(wildcard include/config/sh/*.h) include/config/auto.conf
|
include/asm-sh/.mach: $(wildcard include/config/sh/*.h) \
|
||||||
|
include/config/auto.conf FORCE
|
||||||
@echo -n ' SYMLINK include/asm-sh/mach -> '
|
@echo -n ' SYMLINK include/asm-sh/mach -> '
|
||||||
$(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
|
$(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
|
||||||
$(Q)if [ -d $(incdir-prefix)$(incdir-y) ]; then \
|
$(Q)if [ -d $(incdir-prefix)$(incdir-y) ]; then \
|
||||||
@@ -168,7 +166,7 @@ include/asm-sh/.mach: $(wildcard include/config/sh/*.h) include/config/auto.conf
|
|||||||
fi
|
fi
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
archprepare: maketools include/asm-sh/.cpu include/asm-sh/.mach
|
archprepare: include/asm-sh/.cpu include/asm-sh/.mach maketools
|
||||||
|
|
||||||
PHONY += maketools FORCE
|
PHONY += maketools FORCE
|
||||||
maketools: include/linux/version.h FORCE
|
maketools: include/linux/version.h FORCE
|
||||||
|
Reference in New Issue
Block a user