microblaze: Fix Makefile to delete build generated files
PATCH v2 1/1 microblaze: Fix Makefile to delete build generated files
'make clean' does not to delete the following build generated file:
arch/microblaze/boot/linux.bin.ub
'make mrproper' does not to delete the following build generated files:
arch/microblaze/boot/simpleImage.*
Fix the Makefile to delete these build generated files.
See [1] for a discussion on why simpleImage.* files are deleted with 'make mrproper' and not with 'make clean'.
[1] http://lkml.org/lkml/2010/3/12/96
--- arch/microblaze/Makefile | 2 ++ arch/microblaze/boot/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)
arch/microblaze/Makefile +2 -0
@@ -93,3 +93,5 @@ define archhelp echo ' name of a dts file from the arch/microblaze/boot/dts/ directory' echo ' (minus the .dts extension).' endef + +MRPROPER_FILES += $(boot)/simpleImage.*
arch/microblaze/boot/Makefile +1 -1
@@ -64,4 +64,4 @@ $(obj)/%.dtb: $(dtstree)/%.dts FORCE clean-kernel += linux.bin linux.bin.gz simpleImage.* -clean-files += *.dtb simpleImage.*.unstrip +clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
Signature · 1 line
1.6.2.5
Michal Simek
maintainerQuoted 23 lines · Arun Bhanu
'make clean' does not to delete the following build generated file:
arch/microblaze/boot/linux.bin.ub'make mrproper' does not to delete the following build generated files:
arch/microblaze/boot/simpleImage.*Fix the
Makefileto delete these build generated files.See [1] for a discussion on why simpleImage.* files are deleted with 'make mrproper' and not with 'make clean'.
[1] http://lkml.org/lkml/2010/3/12/96Signed-off-by Arun Bhanu <[email protected]>--- arch/microblaze/Makefile | 2 ++ arch/microblaze/boot/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)arch/microblaze/Makefile +0
-0
arch/microblaze/Makefile define archhelp · line 97
Quoted 5 lines
arch/microblaze/Makefile +2
-0@@ -93,3 +93,5 @@ define archhelp echo ' name of a dts file from the arch/microblaze/boot/dts/ directory' echo ' (minus the .dts extension).' endef + +MRPROPER_FILES += $(boot)/simpleImage.*
I personally don't like that this line is in main arch Makefile but I saw that other archs have it too. Will be better to have it only in boot folder but I don't know if is possible to do that.
Sam: What do you think?
arch/microblaze/boot/Makefile $(obj)/%.dtb: $(dtstree)/%.dts FORCE · line 67
Quoted 10 lines
arch/microblaze/boot/Makefile +1
-1@@ -64,4 +64,4 @@ $(obj)/%.dtb: $(dtstree)/%.dts FORCE clean-kernel += linux.bin linux.bin.gz simpleImage.* -clean-files += *.dtb simpleImage.*.unstrip +clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
Could you please take a look at clean-kernel option too?
I think we can simple remove it. It should be any ancient code from powerpc.
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Adding Cc: Michal Marek <[email protected]> who is the Kbuild maintainer.
Quoted 35 lines · * Michal Simek ([email protected]) wrote:
Quoted 23 lines · Arun Bhanu
'make clean' does not to delete the following build generated file:
arch/microblaze/boot/linux.bin.ub'make mrproper' does not to delete the following build generated files:
arch/microblaze/boot/simpleImage.*Fix the
Makefileto delete these build generated files.See [1] for a discussion on why simpleImage.* files are deleted with 'make mrproper' and not with 'make clean'.
[1] http://lkml.org/lkml/2010/3/12/96Signed-off-by Arun Bhanu <[email protected]>--- arch/microblaze/Makefile | 2 ++ arch/microblaze/boot/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)arch/microblaze/Makefile +0
-0arch/microblaze/Makefile define archhelp · line 97
Quoted 5 lines
arch/microblaze/Makefile +2
-0@@ -93,3 +93,5 @@ define archhelp echo ' name of a dts file from the arch/microblaze/boot/dts/ directory' echo ' (minus the .dts extension).' endef + +MRPROPER_FILES += $(boot)/simpleImage.*I personally don't like that this line is in main arch
Makefilebut I saw that other archs have it too. Will be better to have it only in boot folder but I don't know if is possible to do that.
Sam: What do you think?
Quoted 1 line
From my limited understanding of
Kbuild, it only includes the top
level Makefile of each architecture. In our case arch/microblaze/Makefile. If we define MRPROPER_FILES variable in arch/microblaze/boot/Makefile Kbuild will not evaluate it.
Quoted 13 lines
arch/microblaze/boot/Makefile $(obj)/%.dtb: $(dtstree)/%.dts FORCE · line 66
Quoted 10 lines
arch/microblaze/boot/Makefile +1
-0@@ -64,4 +64,4 @@ $(obj)/%.dtb: $(dtstree)/%.dts FORCE clean-kernel += linux.bin linux.bin.gz simpleImage.* -clean-files += *.dtb simpleImage.*.unstrip +clean-files += *.dtb simpleImage.*.unstrip linux.bin.ubCould you please take a look at clean-kernel option too?
I think we can simple remove it. It should be any ancient code from powerpc.
Yeah, I think we can safely remove the "clean-kernel" variable as it is not used by Kbuild infrastructure.
Quoted 17 lines
Thanks,
MichalSignature · 9 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
-Arun
Quoted 10 lines · Arun Bhanu
Adding Cc: Michal Marek <[email protected]> who is the
Kbuildmaintainer.Quoted 4 lines
I personally don't like that this line is in main arch
Makefilebut I saw that other archs have it too. Will be better to have it only in boot folder but I don't know if is possible to do that.
Sam: What do you think?From my limited understanding of
Kbuild, it only includes the top levelMakefileof each architecture. In our casearch/microblaze/Makefile. If we defineMRPROPER_FILESvariable inarch/microblaze/boot/MakefileKbuildwill not evaluate it.
Correct, make mrproper is not a recursive target, so it won't read ordinary kbuild files like arch/microblaze/boot/Makefile.
Michal
Michal Simek
maintainerQuoted 35 lines · Arun Bhanu
Adding Cc: Michal Marek <[email protected]> who is the
Kbuildmaintainer.Quoted 19 lines · * Michal Simek ([email protected]) wrote:
Quoted 18 lines · Arun Bhanu
'make clean' does not to delete the following build generated file:
arch/microblaze/boot/linux.bin.ub'make mrproper' does not to delete the following build generated files:
arch/microblaze/boot/simpleImage.*Fix the
Makefileto delete these build generated files.See [1] for a discussion on why simpleImage.* files are deleted with 'make mrproper' and not with 'make clean'.
[1] http://lkml.org/lkml/2010/3/12/96Signed-off-by Arun Bhanu <[email protected]>--- arch/microblaze/Makefile | 2 ++ arch/microblaze/boot/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)Quoted 12 lines
arch/microblaze/Makefile define archhelp · line 97
Quoted 10 lines
arch/microblaze/Makefile +2
-0@@ -93,3 +93,5 @@ define archhelp echo ' name of a dts file from the arch/microblaze/boot/dts/ directory' echo ' (minus the .dts extension).' endef + +MRPROPER_FILES += $(boot)/simpleImage.*I personally don't like that this line is in main arch
Makefilebut I saw that other archs have it too. Will be better to have it only in boot folder but I don't know if is possible to do that.
Sam: What do you think?
Quoted 4 lines
From my limited understanding of
Kbuild, it only includes the top levelMakefileof each architecture. In our casearch/microblaze/Makefile. If we defineMRPROPER_FILESvariable inarch/microblaze/boot/MakefileKbuildwill not evaluate it.
yes, it won't I checked it. It was just idea that will be good to have it in correct location but I am ok with it.
Quoted 13 lines
Quoted 12 lines
arch/microblaze/boot/Makefile $(obj)/%.dtb: $(dtstree)/%.dts FORCE · line 66
Quoted 10 lines
arch/microblaze/boot/Makefile +1
-0@@ -64,4 +64,4 @@ $(obj)/%.dtb: $(dtstree)/%.dts FORCE clean-kernel += linux.bin linux.bin.gz simpleImage.* -clean-files += *.dtb simpleImage.*.unstrip +clean-files += *.dtb simpleImage.*.unstrip linux.bin.ubCould you please take a look at clean-kernel option too?
I think we can simple remove it. It should be any ancient code from powerpc.
Quoted 2 lines
Yeah, I think we can safely remove the "clean-kernel" variable as it is not used by
Kbuildinfrastructure.
ok. I will wait if someone post any other comment and I will do this change and incorporate it to your patch.
Michal
Quoted 19 lines
Quoted 17 lines
Thanks,
MichalSignature · 9 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/-Arun
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian