All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] linuxptp: add patch to fix build failures with make 4.4
@ 2022-12-03 10:18 Heiko Thiery
  2022-12-03 10:21 ` Heiko Thiery
  2022-12-03 14:43 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Heiko Thiery @ 2022-12-03 10:18 UTC (permalink / raw)
  To: buildroot; +Cc: Heiko Thiery, James Hilliard, Petr Kulhavy

When using make 4.4 the KBOUD_OUTPUT environment variable provided to
the linuxptp makefile is not utilized. The added patch will fix that
behavior.

Fixes: http://autobuild.buildroot.net/results/5294fac7ed04945d47ea4eb2d1448bcbea5352bb/

Cc: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
---
 ...itional-assignment-for-KBUILD_OUTPUT.patch | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch

diff --git a/package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch b/package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch
new file mode 100644
index 0000000000..73cd34f744
--- /dev/null
+++ b/package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch
@@ -0,0 +1,43 @@
+From: Changqing Li <changqing.li@windriver.com>
+Date: Wed, 23 Nov 2022 08:23:46 +0800
+Subject: [Linuxptp-devel] [PATCH] makefile: use conditional assignment for KBUILD_OUTPUT
+
+Refer [1],from make 4.4, all variables that are marked as export will
+also be passed to the shell started by the shell function. use "=" will
+make KBUILD_OUTPUT always empty for shell function, use "?=" to make
+"export KBUILD_OUTPUT" in enrironment can work.
+
+[snip of 4.4 NEWS]
+* WARNING: Backward-incompatibility!
+   Previously makefile variables marked as export were not exported to commands
+   started by the $(shell ...) function.  Now, all exported variables are
+   exported to $(shell ...).
+[snip]
+
+[1] https://git.savannah.gnu.org/cgit/make.git/tree/NEWS?h=4.4&id=ed493f6c9116cc217b99c2cfa6a95f15803235a2#n74
+
+Signed-off-by: Changqing Li <changqing.li@windriver.com>
+
+[Retrieved from mailing list. The patch was not yet accepted and applied:
+https://www.mail-archive.com/linuxptp-devel@lists.sourceforge.net/msg06151.html]
+Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
+
+---
+ makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/makefile b/makefile
+index 9aed383..ba3fb38 100644
+--- a/makefile
++++ b/makefile
+@@ -15,7 +15,7 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ 
+-KBUILD_OUTPUT =
++KBUILD_OUTPUT ?=
+ 
+ DEBUG	=
+ CC	= $(CROSS_COMPILE)gcc
+-- 
+2.25.1
-- 
2.20.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] linuxptp: add patch to fix build failures with make 4.4
  2022-12-03 10:18 [Buildroot] [PATCH] linuxptp: add patch to fix build failures with make 4.4 Heiko Thiery
@ 2022-12-03 10:21 ` Heiko Thiery
  2022-12-03 14:43 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Heiko Thiery @ 2022-12-03 10:21 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Petr Kulhavy

Hi,

just realized that I forgot to add the "package/" prefix in the
subject line. Can this be changed before applying or should I resend
v2?

-- 
Heiko

Am Sa., 3. Dez. 2022 um 11:18 Uhr schrieb Heiko Thiery <heiko.thiery@gmail.com>:
>
> When using make 4.4 the KBOUD_OUTPUT environment variable provided to
> the linuxptp makefile is not utilized. The added patch will fix that
> behavior.
>
> Fixes: http://autobuild.buildroot.net/results/5294fac7ed04945d47ea4eb2d1448bcbea5352bb/
>
> Cc: James Hilliard <james.hilliard1@gmail.com>
> Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
> ---
>  ...itional-assignment-for-KBUILD_OUTPUT.patch | 43 +++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch
>
> diff --git a/package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch b/package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch
> new file mode 100644
> index 0000000000..73cd34f744
> --- /dev/null
> +++ b/package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch
> @@ -0,0 +1,43 @@
> +From: Changqing Li <changqing.li@windriver.com>
> +Date: Wed, 23 Nov 2022 08:23:46 +0800
> +Subject: [Linuxptp-devel] [PATCH] makefile: use conditional assignment for KBUILD_OUTPUT
> +
> +Refer [1],from make 4.4, all variables that are marked as export will
> +also be passed to the shell started by the shell function. use "=" will
> +make KBUILD_OUTPUT always empty for shell function, use "?=" to make
> +"export KBUILD_OUTPUT" in enrironment can work.
> +
> +[snip of 4.4 NEWS]
> +* WARNING: Backward-incompatibility!
> +   Previously makefile variables marked as export were not exported to commands
> +   started by the $(shell ...) function.  Now, all exported variables are
> +   exported to $(shell ...).
> +[snip]
> +
> +[1] https://git.savannah.gnu.org/cgit/make.git/tree/NEWS?h=4.4&id=ed493f6c9116cc217b99c2cfa6a95f15803235a2#n74
> +
> +Signed-off-by: Changqing Li <changqing.li@windriver.com>
> +
> +[Retrieved from mailing list. The patch was not yet accepted and applied:
> +https://www.mail-archive.com/linuxptp-devel@lists.sourceforge.net/msg06151.html]
> +Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
> +
> +---
> + makefile | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/makefile b/makefile
> +index 9aed383..ba3fb38 100644
> +--- a/makefile
> ++++ b/makefile
> +@@ -15,7 +15,7 @@
> + # with this program; if not, write to the Free Software Foundation, Inc.,
> + # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> +
> +-KBUILD_OUTPUT =
> ++KBUILD_OUTPUT ?=
> +
> + DEBUG =
> + CC    = $(CROSS_COMPILE)gcc
> +--
> +2.25.1
> --
> 2.20.1
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] linuxptp: add patch to fix build failures with make 4.4
  2022-12-03 10:18 [Buildroot] [PATCH] linuxptp: add patch to fix build failures with make 4.4 Heiko Thiery
  2022-12-03 10:21 ` Heiko Thiery
@ 2022-12-03 14:43 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-12-03 14:43 UTC (permalink / raw)
  To: Heiko Thiery; +Cc: James Hilliard, Petr Kulhavy, buildroot

On Sat,  3 Dec 2022 11:18:04 +0100
Heiko Thiery <heiko.thiery@gmail.com> wrote:

> When using make 4.4 the KBOUD_OUTPUT environment variable provided to
> the linuxptp makefile is not utilized. The added patch will fix that
> behavior.
> 
> Fixes: http://autobuild.buildroot.net/results/5294fac7ed04945d47ea4eb2d1448bcbea5352bb/
> 
> Cc: James Hilliard <james.hilliard1@gmail.com>
> Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
> ---
>  ...itional-assignment-for-KBUILD_OUTPUT.patch | 43 +++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 package/linuxptp/0002-makefile-use-conditional-assignment-for-KBUILD_OUTPUT.patch

Applied to master, thanks (yes, after fixing the commit title).

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-03 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 10:18 [Buildroot] [PATCH] linuxptp: add patch to fix build failures with make 4.4 Heiko Thiery
2022-12-03 10:21 ` Heiko Thiery
2022-12-03 14:43 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.