* [PATCH i2c-tools] Makefile: allow installing perl scripts optionally
@ 2025-11-11 17:28 Wolfram Sang
2026-01-13 17:35 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2025-11-11 17:28 UTC (permalink / raw)
To: linux-i2c; +Cc: Wolfram Sang
i2c-tools are used on embedded devices where perl is not installed and
rootfs size matters. Allow build systems to skip installing the perl
scripts.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5ac8a59..a0d4269 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,7 @@ SOCFLAGS := -fpic -D_REENTRANT $(CFLAGS)
BUILD_DYNAMIC_LIB ?= 1
BUILD_STATIC_LIB ?= 1
USE_STATIC_LIB ?= 0
+INSTALL_PERL_SCRIPTS ?= 1
ifeq ($(USE_STATIC_LIB),1)
BUILD_STATIC_LIB := 1
@@ -56,5 +57,8 @@ all:
EXTRA :=
#EXTRA += eeprog py-smbus
-SRCDIRS := include lib eeprom stub tools $(EXTRA)
+SRCDIRS := include lib tools $(EXTRA)
+ifeq ($(INSTALL_PERL_SCRIPTS),1)
+SRCDIRS += eeprom stub
+endif
include $(SRCDIRS:%=%/Module.mk)
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH i2c-tools] Makefile: allow installing perl scripts optionally
2025-11-11 17:28 [PATCH i2c-tools] Makefile: allow installing perl scripts optionally Wolfram Sang
@ 2026-01-13 17:35 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2026-01-13 17:35 UTC (permalink / raw)
To: linux-i2c
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
On Tue, Nov 11, 2025 at 06:28:43PM +0100, Wolfram Sang wrote:
> i2c-tools are used on embedded devices where perl is not installed and
> rootfs size matters. Allow build systems to skip installing the perl
> scripts.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Applied.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-13 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11 17:28 [PATCH i2c-tools] Makefile: allow installing perl scripts optionally Wolfram Sang
2026-01-13 17:35 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox