On Tue, Apr 05, 2005 at 05:45:58PM +0200, Jan Dittmer wrote:
> Something has broken make O= :
>
> HOSTCC scripts/kallsyms
> HOSTCC scripts/conmakehash
> make[1]: *** No rule to make target `include/asm', needed by `arch/alpha/kernel/asm-offsets.s'. Stop.
> make: *** [_all] Error 2
>
> Happens for most archs. See http://l4x.org/k/
Thanks - here is a patch:
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/04/05 23:37:09+02:00 [email protected]
# 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 <[email protected]>
#
# In same patch fix spaces to tabs as reported by:
# From: Adrian Bunk <[email protected]>
#
# Signed-off-by: Sam Ravnborg <[email protected]>
#
# Makefile
# 2005/04/05 23:36:45+02:00 [email protected] +3 -3
# fix make O=... build
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile 2005-04-05 23:37:38 +02:00
+++ b/Makefile 2005-04-05 23:37:38 +02:00
@@ -576,7 +576,7 @@
ifdef CONFIG_LOCALVERSION_AUTO
localversion-auto := \
- $(shell $(PERL) $(srctree)/scripts/setlocalversion $(srctree))
+ $(shell $(PERL) $(srctree)/scripts/setlocalversion $(srctree))
LOCALVERSION := $(LOCALVERSION)$(localversion-auto)
endif
@@ -808,7 +808,7 @@
# prepare1 creates a makefile if using a separate output directory
prepare1: prepare2 outputmakefile
-prepare0: prepare1 include/linux/version.h $(objtree)/include/asm \
+prepare0: prepare1 include/linux/version.h include/asm \
include/config/MARKER
ifneq ($(KBUILD_MODULES),)
$(Q)rm -rf $(MODVERDIR)
@@ -845,7 +845,7 @@
# hard to detect, but I suppose "make mrproper" is a good idea
# before switching between archs anyway.
-$(objtree)/include/asm:
+include/asm:
@echo ' SYMLINK $@ -> include/asm-$(ARCH)'
$(Q)if [ ! -d include ]; then mkdir -p include; fi;
@ln -fsn asm-$(ARCH) $@
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]