UAPI: Remove empty Kbuild files
Subsystems (4)
PATCH 1/1 UAPI: Remove empty Kbuild files
Remove empty Kbuild files as they cause problems with the patch program which removes files that become empty.
Should I also remove include/Kbuild as that now does nothing? Or should it be left as an anchor just in case we want it in future?
---
include/Kbuild | 3 --- include/scsi/Kbuild | 1 - include/scsi/fc/Kbuild | 0 include/video/Kbuild | 0 4 files changed, 4 deletions(-) delete mode 100644 include/scsi/Kbuild delete mode 100644 include/scsi/fc/Kbuild delete mode 100644 include/video/Kbuild
include/Kbuild +0 -3
@@ -1,5 +1,2 @@ # Top-level Makefile calls into asm-$(ARCH) # List only non-arch directories below - -header-y += video/ -header-y += scsi/
include/scsi/Kbuild deleted +0 -1
@@ -1 +0,0 @@ -header-y += fc/
include/scsi/fc/Kbuild deleted +0 -0
include/video/Kbuild deleted +0 -0
Quoted 5 lines · On Tue, 26 Mar 2013 17:48:53 +0000 David Howells <[email protected]> wrote:
Remove empty
Kbuildfiles as they cause problems with the patch program which removes files that become empty.Should I also remove
include/Kbuildas that now does nothing? Or should it be left as an anchor just in case we want it in future?
I think that if the build system created it, a make clean' or make mproper' should rub it out again. Ideally a `make mrproper' will give you a tree which is identical to a freshly-untarred kernel.org tarball (yes?).
Which reminds me of my email which you're still hiding from ;) Shouldn't a make mrproper' undo the effects of make headers_install' by wiping ./usr/include/?
Quoted 10 lines · Andrew Morton
Quoted 5 lines
Remove empty
Kbuildfiles as they cause problems with the patch program which removes files that become empty.Should I also remove
include/Kbuildas that now does nothing? Or should it be left as an anchor just in case we want it in future?I think that if the build system created it, a
make clean' ormake mproper' should rub it out again. Ideally a `make mrproper' will give you a tree which is identical to a freshly-untarred kernel.org tarball (yes?).
Ummm... What's that got to do with it? include/Kbuild is part of the
sources: make clean/mrproper/distclean should not be removing it.
Quoted 3 lines
Which reminds me of my email which you're still hiding from ;) Shouldn't a
make mrproper' undo the effects ofmakeheaders_install' by wiping./usr/include/?
Ummm...
warthog>cp .../.config . warthog>make -j12 >&/dev/null warthog>find usr/include/ | wc -l 873 warthog>make distclean >&/dev/null warthog>find usr/include/ | wc -l find: `usr/include/': No such file or directory 0
and:
warthog>cp .../.config . warthog>make -j12 >&/dev/null warthog>find usr/include/ | wc -l 873 warthog>make mrproper >&/dev/null warthog>find usr/include/ | wc -l find: `usr/include/': No such file or directory 0
so I don't see the problem.
David
Quoted 8 lines · On Tue, 26 Mar 2013 20:59:43 +0000 David Howells <[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 5 lines
Remove empty
Kbuildfiles as they cause problems with the patch program which removes files that become empty.Should I also remove
include/Kbuildas that now does nothing? Or should it be left as an anchor just in case we want it in future?
Quoted 7 lines
Quoted 4 lines
I think that if the build system created it, a
make clean' ormake mproper' should rub it out again. Ideally a `make mrproper' will give you a tree which is identical to a freshly-untarred kernel.org tarball (yes?).Ummm... What's that got to do with it?
include/Kbuildis part of the
sources: make clean/mrproper/distclean should not be removing it.
Obviously, I thought you were referring to build-time operations.
Quoted 26 lines
Quoted 3 lines
Which reminds me of my email which you're still hiding from ;) Shouldn't a
make mrproper' undo the effects ofmakeheaders_install' by wiping./usr/include/?Ummm...
warthog>cp .../.config . warthog>make -j12 >&/dev/null warthog>find usr/include/ | wc -l 873 warthog>make distclean >&/dev/null warthog>find usr/include/ | wc -l find: `usr/include/': No such file or directory 0and:
warthog>cp .../.config . warthog>make -j12 >&/dev/null warthog>find usr/include/ | wc -l 873 warthog>make mrproper >&/dev/null warthog>find usr/include/ | wc -l find: `usr/include/': No such file or directory 0
Quoted 1 line
so I don't see the problem.
Well damn. I tested this a few days ago and a `make mrproper' didn't remove usr/include. Did something change recently? If not, something odd is going on. I definitely tested it.
Quoted 1 line · Andrew Morton
Obviously, I thought you were referring to build-time operations.
I want to know whether I should extend my patch to remove include/Kbuild and any refs to it.
Quoted 5 lines
Quoted 1 line
so I don't see the problem.
Well damn. I tested this a few days ago and a `make mrproper' didn't remove usr/include. Did something change recently? If not, something odd is going on. I definitely tested it.
I haven't changed anything.
David
Quoted 6 lines · David Howells
Quoted 1 line · Andrew Morton
Obviously, I thought you were referring to build-time operations.
I want to know whether I should extend my patch to remove
include/Kbuildand any refs to it.
make headers_install starts at include/uapi, so include/Kbuild is not needed. And new exported headers end up in inclde/uapi, so there will probably not be need for include/Kbuild in the future either. IMO, just remove it.
Michal
Quoted 7 lines · Michal Marek
Quoted 2 lines
I want to know whether I should extend my patch to remove
include/Kbuildand any refs to it.make
headers_installstarts atinclude/uapi, soinclude/Kbuildis not needed. And new exported headers end up in inclde/uapi, so there will probably not be need forinclude/Kbuildin the future either. IMO, just remove it.
That's not all Kbuild does. It also handles autogenerated headers.
David
Quoted 11 lines · David Howells
Quoted 7 lines · Michal Marek
Quoted 2 lines
I want to know whether I should extend my patch to remove
include/Kbuildand any refs to it.make
headers_installstarts atinclude/uapi, soinclude/Kbuildis not needed. And new exported headers end up in inclde/uapi, so there will probably not be need forinclude/Kbuildin the future either. IMO, just remove it.That's not all
Kbuilddoes. It also handles autogenerated headers.
That's true. But include/generated is handled by the main Makefile directly as well.
Michal
Quoted 8 lines · Michal Marek
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
I want to know whether I should extend my patch to remove
include/Kbuildand any refs to it.make
headers_installstarts atinclude/uapi, soinclude/Kbuildis not needed. And new exported headers end up in inclde/uapi, so there will probably not be need forinclude/Kbuildin the future either. IMO, just remove it.
Quoted 4 lines
Quoted 1 line
That's not all
Kbuilddoes. It also handles autogenerated headers.That's true. But
include/generatedis handled by the mainMakefiledirectly as well.
But there are generated header files that aren't so handled - though those are only currently to be found in arch/. I don't mind removing it, it's just that I don't want to preclude anyone's use of it.
David