* [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms
@ 2020-05-13 8:38 Huacai Chen
2020-05-13 8:38 ` [PATCH 2/2] MIPS: Fix "make clean" error due to recent changes Huacai Chen
2020-05-13 11:21 ` [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Thomas Bogendoerfer
0 siblings, 2 replies; 5+ messages in thread
From: Huacai Chen @ 2020-05-13 8:38 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: linux-mips, Fuxin Zhang, Zhangjin Wu, Huacai Chen, Jiaxun Yang,
Huacai Chen
Commit 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
misspelled "txx9" to "tx99", so fix it.
Fixes: 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
arch/mips/Kbuild.platforms | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms
index 5e3f6ed..c7368a8 100644
--- a/arch/mips/Kbuild.platforms
+++ b/arch/mips/Kbuild.platforms
@@ -36,8 +36,8 @@ platform-$(CONFIG_SIBYTE_SB1250) += sibyte/
platform-$(CONFIG_SIBYTE_BCM1x55) += sibyte/
platform-$(CONFIG_SIBYTE_BCM1x80) += sibyte/
platform-$(CONFIG_SNI_RM) += sni/
-platform-$(CONFIG_MACH_TX39XX) += tx99/
-platform-$(CONFIG_MACH_TX49XX) += tx99/
+platform-$(CONFIG_MACH_TX39XX) += txx9/
+platform-$(CONFIG_MACH_TX49XX) += txx9/
platform-$(CONFIG_MACH_VR41XX) += vr41xx/
# include the platform specific files
--
2.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] MIPS: Fix "make clean" error due to recent changes
2020-05-13 8:38 [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Huacai Chen
@ 2020-05-13 8:38 ` Huacai Chen
2020-05-13 11:21 ` [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Thomas Bogendoerfer
1 sibling, 0 replies; 5+ messages in thread
From: Huacai Chen @ 2020-05-13 8:38 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: linux-mips, Fuxin Zhang, Zhangjin Wu, Huacai Chen, Jiaxun Yang,
Huacai Chen
Commit 26bff9eb49201aeb ("MIPS: Only include the platformfile needed")
moves platform-(CONFIG_XYZ) from arch/mips/xyz/Platform to arch/mips/
Kbuild.platforms. This change causes an error when "make clean":
./scripts/Makefile.clean:15: arch/mips/vr41xx/Makefile: No such file or directory
make[3]: *** No rule to make target `arch/mips/vr41xx/Makefile'. Stop.
make[2]: *** [arch/mips/vr41xx] Error 2
make[1]: *** [_clean_arch/mips] Error 2
make: *** [sub-make] Error 2
Clean-files are defined in arch/mips/Kbuild:
obj- := $(platform-)
Due to the movement of platform-(CONFIG_XYZ), "make clean" will enter
arch/mips/vr41xx/ whether CONFIG_MACH_VR41XX is defined or not. Because
there is no Makefile in arch/mips/vr41xx/, "make clean" fails. I don't
know what is the best way to fix it, but it seems like we can avoid this
error by changing the obj- definition:
obj- := $(platform-y)
Fixes: 26bff9eb49201aeb ("MIPS: Only include the platformfile needed")
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
arch/mips/Kbuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild
index a8d5e4f..d5d6ef9 100644
--- a/arch/mips/Kbuild
+++ b/arch/mips/Kbuild
@@ -12,7 +12,7 @@ obj-y := $(platform-y)
# make clean traverses $(obj-) without having included .config, so
# everything ends up here
-obj- := $(platform-)
+obj- := $(platform-y)
# mips object files
# The object files are linked as core-y files would be linked
--
2.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms
2020-05-13 8:38 [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Huacai Chen
2020-05-13 8:38 ` [PATCH 2/2] MIPS: Fix "make clean" error due to recent changes Huacai Chen
@ 2020-05-13 11:21 ` Thomas Bogendoerfer
2020-05-14 5:52 ` Huacai Chen
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Bogendoerfer @ 2020-05-13 11:21 UTC (permalink / raw)
To: Huacai Chen
Cc: linux-mips, Fuxin Zhang, Zhangjin Wu, Huacai Chen, Jiaxun Yang
On Wed, May 13, 2020 at 04:38:40PM +0800, Huacai Chen wrote:
> Commit 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
> misspelled "txx9" to "tx99", so fix it.
>
> Fixes: 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
> Signed-off-by: Huacai Chen <chenhc@lemote.com>
> ---
> arch/mips/Kbuild.platforms | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
applied both patches to mips-next. Thank you for fixing.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms
2020-05-13 11:21 ` [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Thomas Bogendoerfer
@ 2020-05-14 5:52 ` Huacai Chen
2020-05-14 11:13 ` Thomas Bogendoerfer
0 siblings, 1 reply; 5+ messages in thread
From: Huacai Chen @ 2020-05-14 5:52 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: open list:MIPS, Fuxin Zhang, Zhangjin Wu, Jiaxun Yang
Hi, Thomas,
On Wed, May 13, 2020 at 7:21 PM Thomas Bogendoerfer
<tsbogend@alpha.franken.de> wrote:
>
> On Wed, May 13, 2020 at 04:38:40PM +0800, Huacai Chen wrote:
> > Commit 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
> > misspelled "txx9" to "tx99", so fix it.
> >
> > Fixes: 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
> > Signed-off-by: Huacai Chen <chenhc@lemote.com>
> > ---
> > arch/mips/Kbuild.platforms | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
>
> applied both patches to mips-next. Thank you for fixing.
It seems like there are more problems caused by your patch, due to the
lack of arch/mips/vr41xx/Makefile, all VR41XX configs cannot be build
now, including:
arch/mips/configs/workpad_defconfig
arch/mips/configs/tb0219_defconfig
arch/mips/configs/tb0287_defconfig
arch/mips/configs/tb0226_defconfig
arch/mips/configs/mpc30x_defconfig
arch/mips/configs/capcella_defconfig
arch/mips/configs/e55_defconfig
And I don't know how to fix...
>
> Thomas.
>
> --
> Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
> good idea. [ RFC1925, 2.3 ]
Huacai
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms
2020-05-14 5:52 ` Huacai Chen
@ 2020-05-14 11:13 ` Thomas Bogendoerfer
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Bogendoerfer @ 2020-05-14 11:13 UTC (permalink / raw)
To: Huacai Chen; +Cc: open list:MIPS, Fuxin Zhang, Zhangjin Wu, Jiaxun Yang
On Thu, May 14, 2020 at 01:52:14PM +0800, Huacai Chen wrote:
> Hi, Thomas,
>
> On Wed, May 13, 2020 at 7:21 PM Thomas Bogendoerfer
> <tsbogend@alpha.franken.de> wrote:
> >
> > On Wed, May 13, 2020 at 04:38:40PM +0800, Huacai Chen wrote:
> > > Commit 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
> > > misspelled "txx9" to "tx99", so fix it.
> > >
> > > Fixes: 26bff9eb49201aeb ("MIPS: Only include the platform file needed")
> > > Signed-off-by: Huacai Chen <chenhc@lemote.com>
> > > ---
> > > arch/mips/Kbuild.platforms | 4 ++--
> > > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > applied both patches to mips-next. Thank you for fixing.
> It seems like there are more problems caused by your patch, due to the
> lack of arch/mips/vr41xx/Makefile, all VR41XX configs cannot be build
> now, including:
> arch/mips/configs/workpad_defconfig
> arch/mips/configs/tb0219_defconfig
> arch/mips/configs/tb0287_defconfig
> arch/mips/configs/tb0226_defconfig
> arch/mips/configs/mpc30x_defconfig
> arch/mips/configs/capcella_defconfig
> arch/mips/configs/e55_defconfig
>
> And I don't know how to fix...
adding a Makefile solves it ;-) I've sent a patch for that.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-14 11:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-13 8:38 [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Huacai Chen
2020-05-13 8:38 ` [PATCH 2/2] MIPS: Fix "make clean" error due to recent changes Huacai Chen
2020-05-13 11:21 ` [PATCH 1/2] MIPS: Fix typos in arch/mips/Kbuild.platforms Thomas Bogendoerfer
2020-05-14 5:52 ` Huacai Chen
2020-05-14 11:13 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).