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>
This commit is contained in:
Daniel Rank 2018-07-30 23:50:27 -07:00 committed by Andrei Gherzan
parent 9a9931fe0c
commit 2e23e17666
2 changed files with 21 additions and 29 deletions

View File

@ -1,8 +1,11 @@
From ca25788e2563bad0d554deb9f4300d1e7d062825 Mon Sep 17 00:00:00 2001 From 9a47fd5da546d148886c8890cd48249ebe826948 Mon Sep 17 00:00:00 2001
From: Aurelian Zanoschi <aurelian17@gmail.com> From: Daniel Rank <dwrank@gmail.com>
Date: Mon, 31 Jul 2017 20:25:15 +0300 Date: Wed, 1 Aug 2018 23:32:00 -0700
Subject: [PATCH] Add initial cross compile support Subject: [PATCH] Add initial cross compile support
Upstream-Status: Pending
Signed-off-by: Daniel Rank <dwrank@gmail.com>
--- ---
devLib/Makefile | 54 +++++++++++++++++++++++++-------------------- devLib/Makefile | 54 +++++++++++++++++++++++++--------------------
examples/Gertboard/Makefile | 22 +++++++++++------- examples/Gertboard/Makefile | 22 +++++++++++-------
@ -11,8 +14,8 @@ Subject: [PATCH] Add initial cross compile support
examples/PiGlow/Makefile | 4 ++-- examples/PiGlow/Makefile | 4 ++--
examples/q2w/Makefile | 4 ++-- examples/q2w/Makefile | 4 ++--
gpio/Makefile | 29 ++++++++++++------------ gpio/Makefile | 29 ++++++++++++------------
wiringPi/Makefile | 52 ++++++++++++++++++++++++------------------- wiringPi/Makefile | 46 +++++++++++++++++++++-----------------
8 files changed, 120 insertions(+), 89 deletions(-) 8 files changed, 117 insertions(+), 86 deletions(-)
diff --git a/devLib/Makefile b/devLib/Makefile diff --git a/devLib/Makefile b/devLib/Makefile
index cf665d6..040c03a 100644 index cf665d6..040c03a 100644
@ -248,7 +251,7 @@ index 8f773bf..14aa6e4 100644
############################################################################### ###############################################################################
diff --git a/gpio/Makefile b/gpio/Makefile diff --git a/gpio/Makefile b/gpio/Makefile
index f41a005..22753ee 100644 index 9ec160d..a294242 100644
--- a/gpio/Makefile --- a/gpio/Makefile
+++ b/gpio/Makefile +++ b/gpio/Makefile
@@ -30,13 +30,17 @@ ifneq ($V,1) @@ -30,13 +30,17 @@ ifneq ($V,1)
@ -284,8 +287,8 @@ index f41a005..22753ee 100644
- $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio - $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio
- $Q chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio - $Q chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio
-endif -endif
- $Q mkdir -p $(DESTDIR)$(PREFIX)/man/man1 - $Q mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
- $Q cp gpio.1 $(DESTDIR)$(PREFIX)/man/man1 - $Q cp gpio.1 $(DESTDIR)$(PREFIX)/share/man/man1
+ $Q install -d $(BIN_DIR) + $Q install -d $(BIN_DIR)
+ $Q install -m 4755 -o root -g root gpio $(BIN_DIR) + $Q install -m 4755 -o root -g root gpio $(BIN_DIR)
+ $Q install -d $(DESTDIR)$(PREFIX)/share/man/man1 + $Q install -d $(DESTDIR)$(PREFIX)/share/man/man1
@ -299,14 +302,14 @@ index f41a005..22753ee 100644
$Q echo "[UnInstall]" $Q echo "[UnInstall]"
- $Q rm -f $(DESTDIR)$(PREFIX)/bin/gpio - $Q rm -f $(DESTDIR)$(PREFIX)/bin/gpio
+ $Q rm -f $(BIN_DIR)/gpio + $Q rm -f $(BIN_DIR)/gpio
$Q rm -f $(DESTDIR)$(PREFIX)/man/man1/gpio.1 $Q rm -f $(DESTDIR)$(PREFIX)/share/man/man1/gpio.1
.PHONY: depend .PHONY: depend
diff --git a/wiringPi/Makefile b/wiringPi/Makefile diff --git a/wiringPi/Makefile b/wiringPi/Makefile
index e1868b9..750d290 100644 index 287fa58..670a6db 100644
--- a/wiringPi/Makefile --- a/wiringPi/Makefile
+++ b/wiringPi/Makefile +++ b/wiringPi/Makefile
@@ -25,21 +25,25 @@ VERSION=$(shell cat ../VERSION) @@ -25,22 +25,26 @@ VERSION=$(shell cat ../VERSION)
DESTDIR?=/usr DESTDIR?=/usr
PREFIX?=/local PREFIX?=/local
@ -335,11 +338,13 @@ index e1868b9..750d290 100644
+INCLUDE ?= -I. +INCLUDE ?= -I.
DEFS = -D_GNU_SOURCE DEFS = -D_GNU_SOURCE
-CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC -CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC
-#CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC
+CFLAGS = $(DEBUG) $(DEFS) $(INCLUDE) -Wformat=2 -Wall -Wextra -Winline -pipe -fPIC +CFLAGS = $(DEBUG) $(DEFS) $(INCLUDE) -Wformat=2 -Wall -Wextra -Winline -pipe -fPIC
+#CFLAGS = $(DEBUG) $(DEFS) $(INCLUDE) -Wformat=2 -Wall -Wextra -Wconversion -Winline -pipe -fPIC
LIBS = -lm -lpthread -lrt -lcrypt LIBS = -lm -lpthread -lrt -lcrypt
@@ -78,17 +82,17 @@ $(STATIC): $(OBJ) @@ -75,17 +79,17 @@ static:
$(DYNAMIC): $(OBJ) $(DYNAMIC): $(OBJ)
$Q echo "[Link (Dynamic)]" $Q echo "[Link (Dynamic)]"
@ -360,7 +365,7 @@ index e1868b9..750d290 100644
.PHONY: tags .PHONY: tags
tags: $(SRC) tags: $(SRC)
@@ -99,22 +103,22 @@ tags: $(SRC) @@ -96,13 +100,13 @@ tags: $(SRC)
.PHONY: install .PHONY: install
install: $(DYNAMIC) install: $(DYNAMIC)
$Q echo "[Install Headers]" $Q echo "[Install Headers]"
@ -378,22 +383,9 @@ index e1868b9..750d290 100644
+ $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so + $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so
+ $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so.$(DYN_VERS_MAJ) + $Q ln -sf $(DYNAMIC) $(LIB_DIR)/$(BASE_NAME).so.$(DYN_VERS_MAJ)
.PHONY: install-static
install-static: $(STATIC)
$Q echo "[Install Headers]"
- $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/include
- $Q install -m 0644 $(HEADERS) $(DESTDIR)$(PREFIX)/include
+ $Q install -m 0755 -d $(INCLUDE_DIR)
+ $Q install -m 0644 $(HEADERS) $(INCLUDE_DIR)
$Q echo "[Install Static Lib]"
- $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
- $Q install -m 0755 libwiringPi.a $(DESTDIR)$(PREFIX)/lib
+ $Q install -m 0755 -d $(LIB_DIR)
+ $Q install -m 0755 $(STATIC) $(LIB_DIR)
.PHONY: install-deb .PHONY: install-deb
install-deb: $(DYNAMIC) install-deb: $(DYNAMIC)
@@ -129,9 +133,11 @@ install-deb: $(DYNAMIC) @@ -117,9 +121,11 @@ install-deb: $(DYNAMIC)
.PHONY: uninstall .PHONY: uninstall
uninstall: uninstall:
$Q echo "[UnInstall]" $Q echo "[UnInstall]"

View File

@ -4,8 +4,8 @@ SECTION = "devel/libs"
LICENSE = "LGPLv3+" LICENSE = "LGPLv3+"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
# tag 2.44 # tag 2.46
SRCREV = "96344ff7125182989f98d3be8d111952a8f74e15" SRCREV = "8d188fa0e00bb8c6ff6eddd07bf92857e9bd533a"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"