Message ID | 1560415970-844-1-git-send-email-Cedric_Hombourger@mentor.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 637dfa0fad6d91a9a709dc70549a6d20fa77f615 |
Headers | show |
Series | MIPS: have "plain" make calls build dtbs for selected platforms | expand |
Hi Cedric, On Thu, Jun 20, 2019 at 08:01:46AM +0000, Hombourger, Cedric wrote: > Just to follow-up. I have verified that we can apply this patch to 4.4 > and 4.9 without introducing additional patches but simply resolving > conflicts. Should I post separate patches for 4.4 and 4.9? Is the patch actually needed any earlier than v4.20? Locally I've applied it to mips-fixes & tagged it with: Fixes: d5615e472d23 ("builddeb: Fix inclusion of dtbs in debian package") Cc: stable@vger.kernel.org # v4.20+ It looks to me like prior to that commit this is unnecessary. If that's wrong please let me know. Thanks, Paul
Hello Paul, I will recheck tomorrow morning but the kernel I was initially working with was 4.19 and I did not find dtbs being compiled from a plain make or from builddeb For what it’s worth, I was using the pistachio_defconfig. My test workflow is as follows (ARCH and CROSS_COMPILE are set in my environment) make mrproper make pistachio_defconfig make find arch/mips -name *.dtb Cedric > On 20 Jun 2019, at 22:03, Paul Burton <paul.burton@mips.com> wrote: > > Hi Cedric, > >> On Thu, Jun 20, 2019 at 08:01:46AM +0000, Hombourger, Cedric wrote: >> Just to follow-up. I have verified that we can apply this patch to 4.4 >> and 4.9 without introducing additional patches but simply resolving >> conflicts. Should I post separate patches for 4.4 and 4.9? > > Is the patch actually needed any earlier than v4.20? > > Locally I've applied it to mips-fixes & tagged it with: > > Fixes: d5615e472d23 ("builddeb: Fix inclusion of dtbs in debian package") > Cc: stable@vger.kernel.org # v4.20+ > > It looks to me like prior to that commit this is unnecessary. If that's > wrong please let me know. > > Thanks, > Paul
Hi Cedric, On Thu, Jun 20, 2019 at 09:12:26PM +0000, Hombourger, Cedric wrote: > Hello Paul, > > I will recheck tomorrow morning but the kernel I was initially working > with was 4.19 and I did not find dtbs being compiled from a plain make > or from builddeb Oh, sure - I don't expect they'd get built either. I did think builddeb would succeed without them though, but actually looking at history it would still fail for v4.1 through v4.19 because although builddeb checked for a dtbs_install target in the arch Makefile prior to the commit I mentioned before, we used to have one in those versions... So I'll mark your commit for backport as far as v4.1 where our dtbs_install target was introduced. The usual approach is that the patch goes into mainline first, and once that happens you can submit your backports for the stable branches where it doesn't apply cleanly. You should receive an email following the failed attempts to cherry-pick the commit onto the stable branches, which is often a good reminder to handle the backport. (PS. Top posting is frowned upon pretty much universally in the kernel communify - I'd recommend switching your email reply style before it draws too much attention ;) ) Thanks, Paul
Hello, Cedric Hombourger wrote: > scripts/package/builddep calls "make dtbs_install" after executing > a plain make (i.e. no build targets specified). It will fail if dtbs > were not built beforehand. Match the arm64 architecture where DTBs get > built by the "all" target. > > Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com> > Cc: linux-mips@vger.kernel.org > Cc: stable@vger.kernel.org Applied to mips-fixes. Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paul.burton@mips.com to report it. ]
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 8f4486c4415b..eceff9b75b22 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -17,6 +17,7 @@ archscripts: scripts_basic $(Q)$(MAKE) $(build)=arch/mips/boot/tools relocs KBUILD_DEFCONFIG := 32r2el_defconfig +KBUILD_DTBS := dtbs # # Select the object file format to substitute into the linker script. @@ -384,7 +385,7 @@ quiet_cmd_64 = OBJCOPY $@ vmlinux.64: vmlinux $(call cmd,64) -all: $(all-y) +all: $(all-y) $(KBUILD_DTBS) # boot $(boot-y): $(vmlinux-32) FORCE
scripts/package/builddep calls "make dtbs_install" after executing a plain make (i.e. no build targets specified). It will fail if dtbs were not built beforehand. Match the arm64 architecture where DTBs get built by the "all" target. Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com> Cc: linux-mips@vger.kernel.org Cc: stable@vger.kernel.org --- arch/mips/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)