* [PATCH] kbuild: suppress warnings from 'getconf LFS_*'
@ 2018-07-12 10:38 Masahiro Yamada
2018-07-12 11:08 ` Uwe Kleine-König
0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2018-07-12 10:38 UTC (permalink / raw)
To: linux-kbuild
Cc: Ben Hutchings, Sam Ravnborg, Masahiro Yamada,
Uwe Kleine-König, Michal Marek, linux-kernel
Suppress warnings for systems that do not recognize LFS_*.
getconf: no such configuration parameter `LFS_CFLAGS'
getconf: no such configuration parameter `LFS_LDFLAGS'
getconf: no such configuration parameter `LFS_LIBS'
Fixes: d7f14c66c273 ("kbuild: Enable Large File Support for hostprogs")
Reported-by: Chen Feng <puck.chen@hisilicon.com>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 0f035ae..abc74f8 100644
--- a/Makefile
+++ b/Makefile
@@ -353,9 +353,9 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
-HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS)
-HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS)
-HOST_LFS_LIBS := $(shell getconf LFS_LIBS)
+HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null)
+HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null)
+HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)
HOSTCC = gcc
HOSTCXX = g++
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild: suppress warnings from 'getconf LFS_*'
2018-07-12 10:38 [PATCH] kbuild: suppress warnings from 'getconf LFS_*' Masahiro Yamada
@ 2018-07-12 11:08 ` Uwe Kleine-König
2018-07-12 14:55 ` Masahiro Yamada
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2018-07-12 11:08 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-kbuild, Ben Hutchings, Sam Ravnborg, Michal Marek, linux-kernel
On Thu, Jul 12, 2018 at 07:38:36PM +0900, Masahiro Yamada wrote:
> Suppress warnings for systems that do not recognize LFS_*.
>
> getconf: no such configuration parameter `LFS_CFLAGS'
> getconf: no such configuration parameter `LFS_LDFLAGS'
> getconf: no such configuration parameter `LFS_LIBS'
>
> Fixes: d7f14c66c273 ("kbuild: Enable Large File Support for hostprogs")
> Reported-by: Chen Feng <puck.chen@hisilicon.com>
> Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Which is the system that doesn't know about LFS_* and you care about?
Irrespective of that:
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild: suppress warnings from 'getconf LFS_*'
2018-07-12 11:08 ` Uwe Kleine-König
@ 2018-07-12 14:55 ` Masahiro Yamada
0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2018-07-12 14:55 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Linux Kbuild mailing list, Ben Hutchings, Sam Ravnborg,
Michal Marek, Linux Kernel Mailing List
2018-07-12 20:08 GMT+09:00 Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
> On Thu, Jul 12, 2018 at 07:38:36PM +0900, Masahiro Yamada wrote:
>> Suppress warnings for systems that do not recognize LFS_*.
>>
>> getconf: no such configuration parameter `LFS_CFLAGS'
>> getconf: no such configuration parameter `LFS_LDFLAGS'
>> getconf: no such configuration parameter `LFS_LIBS'
>>
>> Fixes: d7f14c66c273 ("kbuild: Enable Large File Support for hostprogs")
>> Reported-by: Chen Feng <puck.chen@hisilicon.com>
>> Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> Which is the system that doesn't know about LFS_* and you care about?
No particular system in my mind.
Chen Feng reported this before.
I also found this:
https://stackoverflow.com/questions/47367350/how-to-recompile-torvalds-linux-from-mac-osx-high-sierra
> Irrespective of that:
>
> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>
> Best regards
> Uwe
>
> --
> Pengutronix e.K. | Uwe Kleine-König |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-12 14:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 10:38 [PATCH] kbuild: suppress warnings from 'getconf LFS_*' Masahiro Yamada
2018-07-12 11:08 ` Uwe Kleine-König
2018-07-12 14:55 ` Masahiro Yamada
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).