kbuild: Fix creation of include2/asm symlink
PATCH 1/1 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.
---
Makefile +5 -1
@@ -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
Quoted 5 lines · Takashi Iwai
The directory include2/asm can point wrongly to a non-existing directory on architectures that have moved
include/asmunderarch/*.This patch fixes it by checking firstly whether
arch/*/include/asmis available.
Hi Takashi.
I understand why you try to avoid include2/asm as it is not pretty. And I had a similar patch once - but I dropped it as the symlink do not harm and it will anyway be gone when the remaining architectures has shifted to use arch/$ARCH/include/...
So I will not apply it.
Sam
At Fri, 15 Aug 2008 21:49:54 +0200,
Quoted 8 lines · Sam Ravnborg
Quoted 5 lines · Takashi Iwai
The directory include2/asm can point wrongly to a non-existing directory on architectures that have moved
include/asmunderarch/*.This patch fixes it by checking firstly whether
arch/*/include/asmis available.
Quoted 8 lines
Hi Takashi.
I understand why you try to avoid include2/asm as it is not pretty. And I had a similar patch once - but I dropped it as the symlink do not harm and it will anyway be gone when the remaining architectures has shifted to use
arch/$ARCH/include/...So I will not apply it.
Hm, OK. Originally I fixed it because our build system has a sanity check against bogus symlinks and refused to package the latest kernel. If you don't want to put it in, we can keep it locally, of course. But, a bogus symlink is definitely not pretty...
thanks,
Takashi
Quoted 17 lines · Takashi Iwai
At Fri, 15 Aug 2008 21:49:54 +0200,
Quoted 15 lines · Sam Ravnborg
Quoted 5 lines · Takashi Iwai
The directory include2/asm can point wrongly to a non-existing directory on architectures that have moved
include/asmunderarch/*.This patch fixes it by checking firstly whether
arch/*/include/asmis available.Hi Takashi.
I understand why you try to avoid include2/asm as it is not pretty. And I had a similar patch once - but I dropped it as the symlink do not harm and it will anyway be gone when the remaining architectures has shifted to use
arch/$ARCH/include/...
Quoted 6 lines
Quoted 1 line
So I will not apply it.
Hm, OK. Originally I fixed it because our build system has a sanity check against bogus symlinks and refused to package the latest kernel. If you don't want to put it in, we can keep it locally, of course. But, a bogus symlink is definitely not pretty...
It will go away as soon as all architextures are moved to use arch/$ARCH/include
Sam
At Sun, 17 Aug 2008 20:37:14 +0200,
Quoted 19 lines · Sam Ravnborg
Quoted 17 lines · Takashi Iwai
At Fri, 15 Aug 2008 21:49:54 +0200,
Quoted 15 lines · Sam Ravnborg
Quoted 5 lines · Takashi Iwai
The directory include2/asm can point wrongly to a non-existing directory on architectures that have moved
include/asmunderarch/*.This patch fixes it by checking firstly whether
arch/*/include/asmis available.Hi Takashi.
I understand why you try to avoid include2/asm as it is not pretty. And I had a similar patch once - but I dropped it as the symlink do not harm and it will anyway be gone when the remaining architectures has shifted to use
arch/$ARCH/include/...
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
So I will not apply it.
Hm, OK. Originally I fixed it because our build system has a sanity check against bogus symlinks and refused to package the latest kernel. If you don't want to put it in, we can keep it locally, of course. But, a bogus symlink is definitely not pretty...
It will go away as soon as all architextures are moved to use
arch/$ARCH/include
Yes, if it's removed, then that's fine, of course. But I wonder whether this will be finished during 2.6.27...?
thanks,
Takashi