Skip to contentSkip to conversation

i2c-tools: upgrade to 4.0

PATCH Superseded Maxin B. John 3 participants 5 messages Dec 7, 2017 – Dec 18, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c-tools: upgrade to 4.0

Update the SRC_URI to point to kernel.org location where i2c-tools is hosted these days.

Remove Modules.mk since it was used for deprecated binaries (eepromer, eeprom)

---
 meta/recipes-devtools/i2c-tools/files/Module.mk    | 72 ----------------------
 .../{i2c-tools_3.1.2.bb => i2c-tools_4.0.bb}       | 14 ++---
 2 files changed, 5 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-devtools/i2c-tools/files/Module.mk
 rename meta/recipes-devtools/i2c-tools/{i2c-tools_3.1.2.bb => i2c-tools_4.0.bb} (64%)
meta/recipes-devtools/i2c-tools/files/Module.mk deleted +0 -72
deleted file mode 100644
index fcaf72f..0000000
@@ -1,72 +0,0 @@
-# EEPROMER
-#
-# Licensed under the GNU General Public License.
-
-EEPROMER_DIR	:= eepromer
-
-EEPROMER_CFLAGS	:= -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
-		   -Wcast-align -Wwrite-strings -Wnested-externs -Winline \
-		   -W -Wundef -Wmissing-prototypes -Iinclude
-
-EEPROMER_TARGETS	:= eepromer eeprom eeprog
-
-#
-# Programs
-#
-
-$(EEPROMER_DIR)/eepromer: $(EEPROMER_DIR)/eepromer.o
-	$(CC) $(LDFLAGS) -o $@ $^
-
-$(EEPROMER_DIR)/eeprom: $(EEPROMER_DIR)/eeprom.o
-	$(CC) $(LDFLAGS) -o $@ $^
-
-$(EEPROMER_DIR)/eeprog: $(EEPROMER_DIR)/eeprog.o $(EEPROMER_DIR)/24cXX.o 
-	$(CC) $(LDFLAGS) -o $@ $^
-
-#
-# Objects
-#
-
-$(EEPROMER_DIR)/eepromer.o: $(EEPROMER_DIR)/eepromer.c
-	$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
-
-$(EEPROMER_DIR)/eeprom.o: $(EEPROMER_DIR)/eeprom.c
-	$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
-
-$(EEPROMER_DIR)/eeprog.o: $(EEPROMER_DIR)/eeprog.c
-	$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
-
-$(EEPROMER_DIR)/24cXX.o: $(EEPROMER_DIR)/24cXX.c
-	$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
-
-#
-# Commands
-#
-
-all-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
-
-strip-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
-	strip $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
-
-clean-eepromer:
-	$(RM) $(addprefix $(EEPROMER_DIR)/,*.o $(EEPROMER_TARGETS))
-
-install-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
-	$(INSTALL_DIR) $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir)
-	for program in $(EEPROMER_TARGETS) ; do \
-	$(INSTALL_PROGRAM) $(EEPROMER_DIR)/$$program $(DESTDIR)$(sbindir) ; done
-
-uninstall-eepromer:
-	for program in $(EEPROMER_TARGETS) ; do \
-	$(RM) $(DESTDIR)$(sbindir)/$$program ; \
-	$(RM) $(DESTDIR)$(man8dir)/$$program.8 ; done
-
-all: all-eepromer
-
-strip: strip-eepromer
-
-clean: clean-eepromer
-
-install: install-eepromer
-
-uninstall: uninstall-eepromer
meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb renamed from meta/recipes-devtools/i2c-tools/i2c-tools_3.1.2.bb +5 -9
similarity index 64%
rename from meta/recipes-devtools/i2c-tools/i2c-tools_3.1.2.bb
rename to meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb
index 45d3d6d..12d718b 100644
@@ -4,20 +4,16 @@ SECTION = "base"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/${BP}.tar.bz2 \
-           file://Module.mk \
-"
-UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/i/i2c-tools/"
-UPSTREAM_CHECK_REGEX = "i2c-tools_(?P<pver>.+)\.orig"
-SRC_URI[md5sum] = "7104a1043d11a5e2c7b131614eb1b962"
-SRC_URI[sha256sum] = "db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441"
+SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/${BP}.tar.gz"
+
+SRC_URI[md5sum] = "d92a288d70f306d3895e3a7e9c14c9aa"
+SRC_URI[sha256sum] = "5b60daf6f011de0acb61de57dba62f2054bb39f19961d67e0c91610f071ca403"
 
 inherit autotools-brokensep
 
 do_compile_prepend() {
-    cp ${WORKDIR}/Module.mk ${S}/eepromer/
     sed -i 's#/usr/local#/usr#' ${S}/Makefile
-    echo "include eepromer/Module.mk" >> ${S}/Makefile
+    echo "include eeprog/Module.mk" >> ${S}/Makefile
 }
 
 do_install_append() {
Signature · 1 line
2.4.0
#1 lore raw
Quoted 7 lines · Maxin B. John

Update the SRC_URI to point to kernel.org location where i2c-tools is hosted these days.

Remove Modules.mk since it was used for deprecated binaries (eepromer, eeprom)

Quoted 8 lines

---
 meta/recipes-devtools/i2c-tools/files/Module.mk    | 72 ------------
----------
 .../{i2c-tools_3.1.2.bb => i2c-tools_4.0.bb}       | 14 ++---

 2 files changed, 5 insertions(+), 81 deletions(-)

 delete mode 100644 meta/recipes-devtools/i2c-tools/files/Module.mk rename meta/recipes-devtools/i2c-tools/{i2c-tools_3.1.2.bb => i2c- tools_4.0.bb} (64%)

Fails on musl sadly:

https://autobuilder.yocto.io/builders/nightly-musl/builds/643/steps/BuildImages/logs/stdio

Cheers,

Richard

#2 lore raw
Quoted 18 lines · Richard Purdie
Quoted 13 lines · Maxin B. John

Update the SRC_URI to point to kernel.org location where i2c-tools is hosted these days.

Remove Modules.mk since it was used for deprecated binaries (eepromer, eeprom)

---
 meta/recipes-devtools/i2c-tools/files/Module.mk    | 72 ---------- --
----------
 .../{i2c-tools_3.1.2.bb => i2c-tools_4.0.bb}       | 14 ++---

Quoted 4 lines
 2 files changed, 5 insertions(+), 81 deletions(-)

 delete mode 100644 meta/recipes-devtools/i2c-tools/files/Module.mk rename meta/recipes-devtools/i2c-tools/{i2c-tools_3.1.2.bb => i2c- tools_4.0.bb} (64%)

Quoted 4 lines

Fails on musl sadly:

https://autobuilder.yocto.io/builders/nightly-musl/builds/643/steps/B
uildImages/logs/stdio

and on glibc qemux86-64:

https://autobuilder.yocto.io/builders/nightly-world/builds/622

Build race?

Cheers,

Richard

#3 lore raw
In reply to Richard Purdie

Hi RP,

Quoted 19 lines · Richard Purdie
Quoted 18 lines · Richard Purdie
Quoted 17 lines · Maxin B. John

Update the SRC_URI to point to kernel.org location where i2c-tools is hosted these days.

Remove Modules.mk since it was used for deprecated binaries (eepromer, eeprom)

---
 meta/recipes-devtools/i2c-tools/files/Module.mk    | 72 ---------- --
----------
 .../{i2c-tools_3.1.2.bb => i2c-tools_4.0.bb}       | 14 ++---

 2 files changed, 5 insertions(+), 81 deletions(-)

 delete mode 100644 meta/recipes-devtools/i2c-tools/files/Module.mk rename meta/recipes-devtools/i2c-tools/{i2c-tools_3.1.2.bb => i2c- tools_4.0.bb} (64%)

Quoted 8 lines
Quoted 4 lines

Fails on musl sadly:

https://autobuilder.yocto.io/builders/nightly-musl/builds/643/steps/B
uildImages/logs/stdio

and on glibc qemux86-64:

https://autobuilder.yocto.io/builders/nightly-world/builds/622

Sorry for the delay in reply.

Quoted 1 line

Build race?

Exactly! . It was partly fixed in upstream recently. Will include those fixes and send a v2 soon.

https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/commit/?id=a6a59693066fd8da81f7107479df3e32a129247d
https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/commit/?id=08b0d67ba7eceb862cb17f52eb1911e9579726ea

Quoted 2 lines

Cheers,
Richard

Best Regards,
Maxin