summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rank <dwrank@gmail.com>2018-07-30 23:50:27 -0700
committerAndrei Gherzan <andrei@gherzan.com>2018-08-03 12:32:27 +0100
commit2e23e17666e0bdda98205429803fad72f21aba1d (patch)
tree28698086392d3da5c1bb589071a4c06d002b0700
parent9a9931fe0c5a2b19c28137225ac7e9a74f3fce57 (diff)
downloadmeta-raspberrypi-2e23e17666e0bdda98205429803fad72f21aba1d.tar.gz
wiringpi: uprev to 2.46
Update to v2.46 to support the RPi 3 B+. Patches reworked as follow: * 0001-Add-initial-cross-compile-support.patch: rebase to current upstream Signed-off-by: Daniel Rank <dwrank@gmail.com>
-rw-r--r--recipes-devtools/wiringpi/files/0001-Add-initial-cross-compile-support.patch46
-rw-r--r--recipes-devtools/wiringpi/wiringpi_git.bb4
2 files changed, 21 insertions, 29 deletions
diff --git a/recipes-devtools/wiringpi/files/0001-Add-initial-cross-compile-support.patch b/recipes-devtools/wiringpi/files/0001-Add-initial-cross-compile-support.patch
index 01e0546..d97bbef 100644
--- a/recipes-devtools/wiringpi/files/0001-Add-initial-cross-compile-support.patch
+++ b/recipes-devtools/wiringpi/files/0001-Add-initial-cross-compile-support.patch
@@ -1,8 +1,11 @@
1From ca25788e2563bad0d554deb9f4300d1e7d062825 Mon Sep 17 00:00:00 2001 1From 9a47fd5da546d148886c8890cd48249ebe826948 Mon Sep 17 00:00:00 2001
2From: Aurelian Zanoschi <aurelian17@gmail.com> 2From: Daniel Rank <dwrank@gmail.com>
3Date: Mon, 31 Jul 2017 20:25:15 +0300 3Date: Wed, 1 Aug 2018 23:32:00 -0700
4Subject: [PATCH] Add initial cross compile support 4Subject: [PATCH] Add initial cross compile support
5 5
6Upstream-Status: Pending
7Signed-off-by: Daniel Rank <dwrank@gmail.com>
8
6--- 9---
7 devLib/Makefile | 54 +++++++++++++++++++++++++-------------------- 10 devLib/Makefile | 54 +++++++++++++++++++++++++--------------------
8 examples/Gertboard/Makefile | 22 +++++++++++------- 11 examples/Gertboard/Makefile | 22 +++++++++++-------
@@ -11,8 +14,8 @@ Subject: [PATCH] Add initial cross compile support
11 examples/PiGlow/Makefile | 4 ++-- 14 examples/PiGlow/Makefile | 4 ++--
12 examples/q2w/Makefile | 4 ++-- 15 examples/q2w/Makefile | 4 ++--
13 gpio/Makefile | 29 ++++++++++++------------ 16 gpio/Makefile | 29 ++++++++++++------------
14 wiringPi/Makefile | 52 ++++++++++++++++++++++++------------------- 17 wiringPi/Makefile | 46 +++++++++++++++++++++-----------------
15 8 files changed, 120 insertions(+), 89 deletions(-) 18 8 files changed, 117 insertions(+), 86 deletions(-)
16 19
17diff --git a/devLib/Makefile b/devLib/Makefile 20diff --git a/devLib/Makefile b/devLib/Makefile
18index cf665d6..040c03a 100644 21index cf665d6..040c03a 100644
@@ -248,7 +251,7 @@ index 8f773bf..14aa6e4 100644
248 251
249 ############################################################################### 252 ###############################################################################
250diff --git a/gpio/Makefile b/gpio/Makefile 253diff --git a/gpio/Makefile b/gpio/Makefile
251index f41a005..22753ee 100644 254index 9ec160d..a294242 100644
252--- a/gpio/Makefile 255--- a/gpio/Makefile
253+++ b/gpio/Makefile 256+++ b/gpio/Makefile
254@@ -30,13 +30,17 @@ ifneq ($V,1) 257@@ -30,13 +30,17 @@ ifneq ($V,1)
@@ -284,8 +287,8 @@ index f41a005..22753ee 100644
284- $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio 287- $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio
285- $Q chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio 288- $Q chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio
286-endif 289-endif
287- $Q mkdir -p $(DESTDIR)$(PREFIX)/man/man1 290- $Q mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
288- $Q cp gpio.1 $(DESTDIR)$(PREFIX)/man/man1 291- $Q cp gpio.1 $(DESTDIR)$(PREFIX)/share/man/man1
289+ $Q install -d $(BIN_DIR) 292+ $Q install -d $(BIN_DIR)
290+ $Q install -m 4755 -o root -g root gpio $(BIN_DIR) 293+ $Q install -m 4755 -o root -g root gpio $(BIN_DIR)
291+ $Q install -d $(DESTDIR)$(PREFIX)/share/man/man1 294+ $Q install -d $(DESTDIR)$(PREFIX)/share/man/man1
@@ -299,14 +302,14 @@ index f41a005..22753ee 100644
299 $Q echo "[UnInstall]" 302 $Q echo "[UnInstall]"
300- $Q rm -f $(DESTDIR)$(PREFIX)/bin/gpio 303- $Q rm -f $(DESTDIR)$(PREFIX)/bin/gpio
301+ $Q rm -f $(BIN_DIR)/gpio 304+ $Q rm -f $(BIN_DIR)/gpio
302 $Q rm -f $(DESTDIR)$(PREFIX)/man/man1/gpio.1 305 $Q rm -f $(DESTDIR)$(PREFIX)/share/man/man1/gpio.1
303 306
304 .PHONY: depend 307 .PHONY: depend
305diff --git a/wiringPi/Makefile b/wiringPi/Makefile 308diff --git a/wiringPi/Makefile b/wiringPi/Makefile
306index e1868b9..750d290 100644 309index 287fa58..670a6db 100644
307--- a/wiringPi/Makefile 310--- a/wiringPi/Makefile
308+++ b/wiringPi/Makefile 311+++ b/wiringPi/Makefile
309@@ -25,21 +25,25 @@ VERSION=$(shell cat ../VERSION) 312@@ -25,22 +25,26 @@ VERSION=$(shell cat ../VERSION)
310 DESTDIR?=/usr 313 DESTDIR?=/usr
311 PREFIX?=/local 314 PREFIX?=/local
312 315
@@ -335,11 +338,13 @@ index e1868b9..750d290 100644
335+INCLUDE ?= -I. 338+INCLUDE ?= -I.
336 DEFS = -D_GNU_SOURCE 339 DEFS = -D_GNU_SOURCE
337-CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC 340-CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC
341-#CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC
338+CFLAGS = $(DEBUG) $(DEFS) $(INCLUDE) -Wformat=2 -Wall -Wextra -Winline -pipe -fPIC 342+CFLAGS = $(DEBUG) $(DEFS) $(INCLUDE) -Wformat=2 -Wall -Wextra -Winline -pipe -fPIC
343+#CFLAGS = $(DEBUG) $(DEFS) $(INCLUDE) -Wformat=2 -Wall -Wextra -Wconversion -Winline -pipe -fPIC
339 344
340 LIBS = -lm -lpthread -lrt -lcrypt 345 LIBS = -lm -lpthread -lrt -lcrypt
341 346
342@@ -78,17 +82,17 @@ $(STATIC): $(OBJ) 347@@ -75,17 +79,17 @@ static:
343 348
344 $(DYNAMIC): $(OBJ) 349 $(DYNAMIC): $(OBJ)
345 $Q echo "[Link (Dynamic)]" 350 $Q echo "[Link (Dynamic)]"
@@ -360,7 +365,7 @@ index e1868b9..750d290 100644
360 365
361 .PHONY: tags 366 .PHONY: tags
362 tags: $(SRC) 367 tags: $(SRC)
363@@ -99,22 +103,22 @@ tags: $(SRC) 368@@ -96,13 +100,13 @@ tags: $(SRC)
364 .PHONY: install 369 .PHONY: install
365 install: $(DYNAMIC) 370 install: $(DYNAMIC)
366 $Q echo "[Install Headers]" 371 $Q echo "[Install Headers]"
@@ -378,22 +383,9 @@ index e1868b9..750d290 100644
378+ $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so 383+ $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so
379+ $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so.$(DYN_VERS_MAJ) 384+ $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so.$(DYN_VERS_MAJ)
380 385
381 .PHONY: install-static
382 install-static: $(STATIC)
383 $Q echo "[Install Headers]"
384- $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/include
385- $Q install -m 0644 $(HEADERS) $(DESTDIR)$(PREFIX)/include
386+ $Q install -m 0755 -d $(INCLUDE_DIR)
387+ $Q install -m 0644 $(HEADERS) $(INCLUDE_DIR)
388 $Q echo "[Install Static Lib]"
389- $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
390- $Q install -m 0755 libwiringPi.a $(DESTDIR)$(PREFIX)/lib
391+ $Q install -m 0755 -d $(LIB_DIR)
392+ $Q install -m 0755 $(STATIC) $(LIB_DIR)
393
394 .PHONY: install-deb 386 .PHONY: install-deb
395 install-deb: $(DYNAMIC) 387 install-deb: $(DYNAMIC)
396@@ -129,9 +133,11 @@ install-deb: $(DYNAMIC) 388@@ -117,9 +121,11 @@ install-deb: $(DYNAMIC)
397 .PHONY: uninstall 389 .PHONY: uninstall
398 uninstall: 390 uninstall:
399 $Q echo "[UnInstall]" 391 $Q echo "[UnInstall]"
diff --git a/recipes-devtools/wiringpi/wiringpi_git.bb b/recipes-devtools/wiringpi/wiringpi_git.bb
index f1b01db..80b9f66 100644
--- a/recipes-devtools/wiringpi/wiringpi_git.bb
+++ b/recipes-devtools/wiringpi/wiringpi_git.bb
@@ -4,8 +4,8 @@ SECTION = "devel/libs"
4LICENSE = "LGPLv3+" 4LICENSE = "LGPLv3+"
5LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" 5LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
6 6
7# tag 2.44 7# tag 2.46
8SRCREV = "96344ff7125182989f98d3be8d111952a8f74e15" 8SRCREV = "8d188fa0e00bb8c6ff6eddd07bf92857e9bd533a"
9 9
10S = "${WORKDIR}/git" 10S = "${WORKDIR}/git"
11 11