mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
wiringpi: Set major version
To fix the behaviour described in https://github.com/agherzan/meta-raspberrypi/issues/362 Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
This commit is contained in:
parent
ba54962bce
commit
b2dac7379b
|
@ -1,27 +1,33 @@
|
||||||
From 9a47fd5da546d148886c8890cd48249ebe826948 Mon Sep 17 00:00:00 2001
|
From 32f3cad3c41161693659a902062fa0c01c0338ed Mon Sep 17 00:00:00 2001
|
||||||
From: Daniel Rank <dwrank@gmail.com>
|
From: ErikHH <erik.hoogeveen@outlook.com>
|
||||||
Date: Wed, 1 Aug 2018 23:32:00 -0700
|
Date: Thu, 20 Dec 2018 15:33:45 +0100
|
||||||
Subject: [PATCH] Add initial cross compile support
|
Subject: [PATCH 1/1] Add initial cross compile support
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
Signed-off-by: Daniel Rank <dwrank@gmail.com>
|
|
||||||
|
|
||||||
|
Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
|
||||||
---
|
---
|
||||||
devLib/Makefile | 54 +++++++++++++++++++++++++--------------------
|
devLib/Makefile | 55 +++++++++++++++++++++----------------
|
||||||
examples/Gertboard/Makefile | 22 +++++++++++-------
|
examples/Gertboard/Makefile | 22 +++++++++------
|
||||||
examples/Makefile | 22 +++++++++++-------
|
examples/Makefile | 22 +++++++++------
|
||||||
examples/PiFace/Makefile | 22 +++++++++++-------
|
examples/PiFace/Makefile | 22 +++++++++------
|
||||||
examples/PiGlow/Makefile | 4 ++--
|
examples/PiGlow/Makefile | 4 +--
|
||||||
examples/q2w/Makefile | 4 ++--
|
examples/q2w/Makefile | 4 +--
|
||||||
gpio/Makefile | 29 ++++++++++++------------
|
gpio/Makefile | 29 +++++++++----------
|
||||||
wiringPi/Makefile | 46 +++++++++++++++++++++-----------------
|
wiringPi/Makefile | 47 +++++++++++++++++--------------
|
||||||
8 files changed, 117 insertions(+), 86 deletions(-)
|
8 files changed, 119 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..d193a9d 100644
|
||||||
--- a/devLib/Makefile
|
--- a/devLib/Makefile
|
||||||
+++ b/devLib/Makefile
|
+++ b/devLib/Makefile
|
||||||
@@ -31,15 +31,19 @@ ifneq ($V,1)
|
@@ -22,6 +22,7 @@
|
||||||
|
#################################################################################
|
||||||
|
|
||||||
|
VERSION=$(shell cat ../VERSION)
|
||||||
|
+DYN_VERS_MAJ=$(word 1,$(subst ., ,$(VERSION)))
|
||||||
|
DESTDIR?=/usr
|
||||||
|
PREFIX?=/local
|
||||||
|
|
||||||
|
@@ -31,15 +32,19 @@ ifneq ($V,1)
|
||||||
Q ?= @
|
Q ?= @
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -49,7 +55,7 @@ index cf665d6..040c03a 100644
|
||||||
|
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
||||||
@@ -68,16 +72,16 @@ $(STATIC): $(OBJ)
|
@@ -68,16 +73,16 @@ $(STATIC): $(OBJ)
|
||||||
|
|
||||||
$(DYNAMIC): $(OBJ)
|
$(DYNAMIC): $(OBJ)
|
||||||
$Q echo "[Link (Dynamic)]"
|
$Q echo "[Link (Dynamic)]"
|
||||||
|
@ -69,7 +75,7 @@ index cf665d6..040c03a 100644
|
||||||
|
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
tags: $(SRC)
|
tags: $(SRC)
|
||||||
@@ -88,22 +92,22 @@ tags: $(SRC)
|
@@ -88,22 +93,22 @@ tags: $(SRC)
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(DYNAMIC)
|
install: $(DYNAMIC)
|
||||||
$Q echo "[Install Headers]"
|
$Q echo "[Install Headers]"
|
||||||
|
@ -102,7 +108,7 @@ index cf665d6..040c03a 100644
|
||||||
|
|
||||||
.PHONY: install-deb
|
.PHONY: install-deb
|
||||||
install-deb: $(DYNAMIC)
|
install-deb: $(DYNAMIC)
|
||||||
@@ -118,9 +122,11 @@ install-deb: $(DYNAMIC)
|
@@ -118,9 +123,11 @@ install-deb: $(DYNAMIC)
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
$Q echo "[UnInstall]"
|
$Q echo "[UnInstall]"
|
||||||
|
@ -306,10 +312,14 @@ index 9ec160d..a294242 100644
|
||||||
|
|
||||||
.PHONY: depend
|
.PHONY: depend
|
||||||
diff --git a/wiringPi/Makefile b/wiringPi/Makefile
|
diff --git a/wiringPi/Makefile b/wiringPi/Makefile
|
||||||
index 287fa58..670a6db 100644
|
index 287fa58..3423d3f 100644
|
||||||
--- a/wiringPi/Makefile
|
--- a/wiringPi/Makefile
|
||||||
+++ b/wiringPi/Makefile
|
+++ b/wiringPi/Makefile
|
||||||
@@ -25,22 +25,26 @@ VERSION=$(shell cat ../VERSION)
|
@@ -22,25 +22,30 @@
|
||||||
|
#################################################################################
|
||||||
|
|
||||||
|
VERSION=$(shell cat ../VERSION)
|
||||||
|
+DYN_VERS_MAJ=$(word 1,$(subst ., ,$(VERSION)))
|
||||||
DESTDIR?=/usr
|
DESTDIR?=/usr
|
||||||
PREFIX?=/local
|
PREFIX?=/local
|
||||||
|
|
||||||
|
@ -344,7 +354,7 @@ index 287fa58..670a6db 100644
|
||||||
|
|
||||||
LIBS = -lm -lpthread -lrt -lcrypt
|
LIBS = -lm -lpthread -lrt -lcrypt
|
||||||
|
|
||||||
@@ -75,17 +79,17 @@ static:
|
@@ -75,17 +80,17 @@ static:
|
||||||
|
|
||||||
$(DYNAMIC): $(OBJ)
|
$(DYNAMIC): $(OBJ)
|
||||||
$Q echo "[Link (Dynamic)]"
|
$Q echo "[Link (Dynamic)]"
|
||||||
|
@ -365,7 +375,7 @@ index 287fa58..670a6db 100644
|
||||||
|
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
tags: $(SRC)
|
tags: $(SRC)
|
||||||
@@ -96,13 +100,13 @@ tags: $(SRC)
|
@@ -96,13 +101,13 @@ tags: $(SRC)
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(DYNAMIC)
|
install: $(DYNAMIC)
|
||||||
$Q echo "[Install Headers]"
|
$Q echo "[Install Headers]"
|
||||||
|
@ -385,7 +395,7 @@ index 287fa58..670a6db 100644
|
||||||
|
|
||||||
.PHONY: install-deb
|
.PHONY: install-deb
|
||||||
install-deb: $(DYNAMIC)
|
install-deb: $(DYNAMIC)
|
||||||
@@ -117,9 +121,11 @@ install-deb: $(DYNAMIC)
|
@@ -117,9 +122,11 @@ install-deb: $(DYNAMIC)
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
$Q echo "[UnInstall]"
|
$Q echo "[UnInstall]"
|
||||||
|
@ -401,5 +411,5 @@ index 287fa58..670a6db 100644
|
||||||
|
|
||||||
.PHONY: depend
|
.PHONY: depend
|
||||||
--
|
--
|
||||||
2.7.4
|
2.19.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user