lkml.org 
[lkml]   [2008]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kbuild: Fix creation of include2/asm symlink
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


\
 
 \ /
  Last update: 2008-08-15 15:49    [W:0.048 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site