Skip to content
Snippets Groups Projects
Commit 946dc121 authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

kbuild: fix make O=... build


It fixes the following error:

make[1]: *** No rule to make target `include/asm', needed by `arch/alpha/kernel/asm-offsets.s'.  Stop.

Reported by:
From: Jan Dittmer <j.dittmer@portrix.net>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent a91f98a2
No related branches found
No related tags found
No related merge requests found
...@@ -779,7 +779,7 @@ endif ...@@ -779,7 +779,7 @@ endif
# prepare1 creates a makefile if using a separate output directory # prepare1 creates a makefile if using a separate output directory
prepare1: prepare2 outputmakefile prepare1: prepare2 outputmakefile
prepare0: prepare1 include/linux/version.h $(objtree)/include/asm \ prepare0: prepare1 include/linux/version.h include/asm \
include/config/MARKER include/config/MARKER
ifneq ($(KBUILD_MODULES),) ifneq ($(KBUILD_MODULES),)
$(Q)rm -rf $(MODVERDIR) $(Q)rm -rf $(MODVERDIR)
...@@ -819,7 +819,7 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH) ...@@ -819,7 +819,7 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
# hard to detect, but I suppose "make mrproper" is a good idea # hard to detect, but I suppose "make mrproper" is a good idea
# before switching between archs anyway. # before switching between archs anyway.
$(objtree)/include/asm: include/asm:
@echo ' SYMLINK $@ -> include/asm-$(ARCH)' @echo ' SYMLINK $@ -> include/asm-$(ARCH)'
$(Q)if [ ! -d include ]; then mkdir -p include; fi; $(Q)if [ ! -d include ]; then mkdir -p include; fi;
@ln -fsn asm-$(ARCH) $@ @ln -fsn asm-$(ARCH) $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment