mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kbuild: Fix creation of include2/asm symlink
@ 2008-08-15 13:45 Takashi Iwai
  2008-08-15 19:49 ` Sam Ravnborg
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2008-08-15 13:45 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Jeff Mahoney, Andrew Morton, linux-kernel

The directory include2/asm can point wrongly to a non-existing
directory on architectures that have moved include/asm under arch/*.

This patch fixes it by checking firstly whether arch/*/include/asm is
available.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
diff --git a/Makefile b/Makefile
index 53bf6ec..bcbb764 100644
--- a/Makefile
+++ b/Makefile
@@ -934,7 +934,11 @@ ifneq ($(KBUILD_SRC),)
 	fi;
 	$(Q)if [ ! -d include2 ]; then                                  \
 	    mkdir -p include2;                                          \
-	    ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm;     \
+	    if [ -d $(srctree)/arch/$(SRCARCH)/include/asm ]; then	\
+		ln -fsn $(srctree)/arch/$(SRCARCH)/include/asm include2/asm; \
+	    else							\
+		ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm;	\
+	    fi;								\
 	fi
 endif
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-18  5:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-15 13:45 [PATCH] kbuild: Fix creation of include2/asm symlink Takashi Iwai
2008-08-15 19:49 ` Sam Ravnborg
2008-08-16  9:03   ` Takashi Iwai
2008-08-17 18:37     ` Sam Ravnborg
2008-08-18  5:26       ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®