]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.rpmify/no-include-asm
Changed checkfs to auto reboot after correctable fsck fixes.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.rpmify / no-include-asm
CommitLineData
00e5a55c
BS
1From: Takashi Iwai <tiwai@suse.de>
2Subject: [PATCH] kbuild: correctly link include/asm in external builds
3Patch-mainline: 2.6.27?
4
5Looking at this problem now, and found that it's likely a bug in the
6upstream. The patch below should fix the creation of include2/asm
7symlink, which resulted in build errors.
8
9
10Takashi
11
12Signed-off-by: Takashi Iwai <tiwai@suse.de>
13---
14
15---
16 Makefile | 6 +++++-
17 1 file changed, 5 insertions(+), 1 deletion(-)
18
19--- a/Makefile
20+++ b/Makefile
21@@ -937,7 +937,11 @@ ifneq ($(KBUILD_SRC),)
22 fi;
23 $(Q)if [ ! -d include2 ]; then \
24 mkdir -p include2; \
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; \
28+ else \
29+ ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
30+ fi; \
31 fi
32 endif
33