1 From: Takashi Iwai <tiwai@suse.de>
2 Subject: [PATCH] kbuild: correctly link include/asm in external builds
3 Patch-mainline: 2.6.27?
5 Looking at this problem now, and found that it's likely a bug in the
6 upstream. The patch below should fix the creation of include2/asm
7 symlink, which resulted in build errors.
12 Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 1 file changed, 5 insertions(+), 1 deletion(-)
21 @@ -938,7 +938,11 @@ ifneq ($(KBUILD_SRC),)
23 $(Q)if [ ! -d include2 ]; then \
25 - ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
26 + if [ -d $(srctree)/arch/$(SRCARCH)/include/asm ]; then \
27 + ln -fsn $(srctree)/arch/$(SRCARCH)/include/asm include2/asm; \
29 + ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \