diff options
| author | ErikHH <erik.hoogeveen@outlook.com> | 2018-12-20 14:03:41 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2019-02-19 14:17:12 +0000 |
| commit | b2dac7379b137148e3ba597dd9340d80db139f19 (patch) | |
| tree | a5112dc927b80b06fefbe5e2e8709c25a214c098 | |
| parent | ba54962bcee3dc6064961d378790e532688c31e7 (diff) | |
| download | meta-raspberrypi-b2dac7379b137148e3ba597dd9340d80db139f19.tar.gz | |
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>
| -rw-r--r-- | recipes-devtools/wiringpi/files/0001-Add-initial-cross-compile-support.patch | 64 |
1 files changed, 37 insertions, 27 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 d97bbef..be3d9ee 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,27 +1,33 @@ | |||
| 1 | From 9a47fd5da546d148886c8890cd48249ebe826948 Mon Sep 17 00:00:00 2001 | 1 | From 32f3cad3c41161693659a902062fa0c01c0338ed Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Rank <dwrank@gmail.com> | 2 | From: ErikHH <erik.hoogeveen@outlook.com> |
| 3 | Date: Wed, 1 Aug 2018 23:32:00 -0700 | 3 | Date: Thu, 20 Dec 2018 15:33:45 +0100 |
| 4 | Subject: [PATCH] Add initial cross compile support | 4 | Subject: [PATCH 1/1] Add initial cross compile support |
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Daniel Rank <dwrank@gmail.com> | ||
| 8 | 5 | ||
| 6 | Signed-off-by: ErikHH <erik.hoogeveen@outlook.com> | ||
| 9 | --- | 7 | --- |
| 10 | devLib/Makefile | 54 +++++++++++++++++++++++++-------------------- | 8 | devLib/Makefile | 55 +++++++++++++++++++++---------------- |
| 11 | examples/Gertboard/Makefile | 22 +++++++++++------- | 9 | examples/Gertboard/Makefile | 22 +++++++++------ |
| 12 | examples/Makefile | 22 +++++++++++------- | 10 | examples/Makefile | 22 +++++++++------ |
| 13 | examples/PiFace/Makefile | 22 +++++++++++------- | 11 | examples/PiFace/Makefile | 22 +++++++++------ |
| 14 | examples/PiGlow/Makefile | 4 ++-- | 12 | examples/PiGlow/Makefile | 4 +-- |
| 15 | examples/q2w/Makefile | 4 ++-- | 13 | examples/q2w/Makefile | 4 +-- |
| 16 | gpio/Makefile | 29 ++++++++++++------------ | 14 | gpio/Makefile | 29 +++++++++---------- |
| 17 | wiringPi/Makefile | 46 +++++++++++++++++++++----------------- | 15 | wiringPi/Makefile | 47 +++++++++++++++++-------------- |
| 18 | 8 files changed, 117 insertions(+), 86 deletions(-) | 16 | 8 files changed, 119 insertions(+), 86 deletions(-) |
| 19 | 17 | ||
| 20 | diff --git a/devLib/Makefile b/devLib/Makefile | 18 | diff --git a/devLib/Makefile b/devLib/Makefile |
| 21 | index cf665d6..040c03a 100644 | 19 | index cf665d6..d193a9d 100644 |
| 22 | --- a/devLib/Makefile | 20 | --- a/devLib/Makefile |
| 23 | +++ b/devLib/Makefile | 21 | +++ b/devLib/Makefile |
| 24 | @@ -31,15 +31,19 @@ ifneq ($V,1) | 22 | @@ -22,6 +22,7 @@ |
| 23 | ################################################################################# | ||
| 24 | |||
| 25 | VERSION=$(shell cat ../VERSION) | ||
| 26 | +DYN_VERS_MAJ=$(word 1,$(subst ., ,$(VERSION))) | ||
| 27 | DESTDIR?=/usr | ||
| 28 | PREFIX?=/local | ||
| 29 | |||
| 30 | @@ -31,15 +32,19 @@ ifneq ($V,1) | ||
| 25 | Q ?= @ | 31 | Q ?= @ |
| 26 | endif | 32 | endif |
| 27 | 33 | ||
| @@ -49,7 +55,7 @@ index cf665d6..040c03a 100644 | |||
| 49 | 55 | ||
| 50 | LIBS = | 56 | LIBS = |
| 51 | 57 | ||
| 52 | @@ -68,16 +72,16 @@ $(STATIC): $(OBJ) | 58 | @@ -68,16 +73,16 @@ $(STATIC): $(OBJ) |
| 53 | 59 | ||
| 54 | $(DYNAMIC): $(OBJ) | 60 | $(DYNAMIC): $(OBJ) |
| 55 | $Q echo "[Link (Dynamic)]" | 61 | $Q echo "[Link (Dynamic)]" |
| @@ -69,7 +75,7 @@ index cf665d6..040c03a 100644 | |||
| 69 | 75 | ||
| 70 | .PHONY: tags | 76 | .PHONY: tags |
| 71 | tags: $(SRC) | 77 | tags: $(SRC) |
| 72 | @@ -88,22 +92,22 @@ tags: $(SRC) | 78 | @@ -88,22 +93,22 @@ tags: $(SRC) |
| 73 | .PHONY: install | 79 | .PHONY: install |
| 74 | install: $(DYNAMIC) | 80 | install: $(DYNAMIC) |
| 75 | $Q echo "[Install Headers]" | 81 | $Q echo "[Install Headers]" |
| @@ -102,7 +108,7 @@ index cf665d6..040c03a 100644 | |||
| 102 | 108 | ||
| 103 | .PHONY: install-deb | 109 | .PHONY: install-deb |
| 104 | install-deb: $(DYNAMIC) | 110 | install-deb: $(DYNAMIC) |
| 105 | @@ -118,9 +122,11 @@ install-deb: $(DYNAMIC) | 111 | @@ -118,9 +123,11 @@ install-deb: $(DYNAMIC) |
| 106 | .PHONY: uninstall | 112 | .PHONY: uninstall |
| 107 | uninstall: | 113 | uninstall: |
| 108 | $Q echo "[UnInstall]" | 114 | $Q echo "[UnInstall]" |
| @@ -306,10 +312,14 @@ index 9ec160d..a294242 100644 | |||
| 306 | 312 | ||
| 307 | .PHONY: depend | 313 | .PHONY: depend |
| 308 | diff --git a/wiringPi/Makefile b/wiringPi/Makefile | 314 | diff --git a/wiringPi/Makefile b/wiringPi/Makefile |
| 309 | index 287fa58..670a6db 100644 | 315 | index 287fa58..3423d3f 100644 |
| 310 | --- a/wiringPi/Makefile | 316 | --- a/wiringPi/Makefile |
| 311 | +++ b/wiringPi/Makefile | 317 | +++ b/wiringPi/Makefile |
| 312 | @@ -25,22 +25,26 @@ VERSION=$(shell cat ../VERSION) | 318 | @@ -22,25 +22,30 @@ |
| 319 | ################################################################################# | ||
| 320 | |||
| 321 | VERSION=$(shell cat ../VERSION) | ||
| 322 | +DYN_VERS_MAJ=$(word 1,$(subst ., ,$(VERSION))) | ||
| 313 | DESTDIR?=/usr | 323 | DESTDIR?=/usr |
| 314 | PREFIX?=/local | 324 | PREFIX?=/local |
| 315 | 325 | ||
| @@ -344,7 +354,7 @@ index 287fa58..670a6db 100644 | |||
| 344 | 354 | ||
| 345 | LIBS = -lm -lpthread -lrt -lcrypt | 355 | LIBS = -lm -lpthread -lrt -lcrypt |
| 346 | 356 | ||
| 347 | @@ -75,17 +79,17 @@ static: | 357 | @@ -75,17 +80,17 @@ static: |
| 348 | 358 | ||
| 349 | $(DYNAMIC): $(OBJ) | 359 | $(DYNAMIC): $(OBJ) |
| 350 | $Q echo "[Link (Dynamic)]" | 360 | $Q echo "[Link (Dynamic)]" |
| @@ -365,7 +375,7 @@ index 287fa58..670a6db 100644 | |||
| 365 | 375 | ||
| 366 | .PHONY: tags | 376 | .PHONY: tags |
| 367 | tags: $(SRC) | 377 | tags: $(SRC) |
| 368 | @@ -96,13 +100,13 @@ tags: $(SRC) | 378 | @@ -96,13 +101,13 @@ tags: $(SRC) |
| 369 | .PHONY: install | 379 | .PHONY: install |
| 370 | install: $(DYNAMIC) | 380 | install: $(DYNAMIC) |
| 371 | $Q echo "[Install Headers]" | 381 | $Q echo "[Install Headers]" |
| @@ -385,7 +395,7 @@ index 287fa58..670a6db 100644 | |||
| 385 | 395 | ||
| 386 | .PHONY: install-deb | 396 | .PHONY: install-deb |
| 387 | install-deb: $(DYNAMIC) | 397 | install-deb: $(DYNAMIC) |
| 388 | @@ -117,9 +121,11 @@ install-deb: $(DYNAMIC) | 398 | @@ -117,9 +122,11 @@ install-deb: $(DYNAMIC) |
| 389 | .PHONY: uninstall | 399 | .PHONY: uninstall |
| 390 | uninstall: | 400 | uninstall: |
| 391 | $Q echo "[UnInstall]" | 401 | $Q echo "[UnInstall]" |
| @@ -401,5 +411,5 @@ index 287fa58..670a6db 100644 | |||
| 401 | 411 | ||
| 402 | .PHONY: depend | 412 | .PHONY: depend |
| 403 | -- | 413 | -- |
| 404 | 2.7.4 | 414 | 2.19.1 |
| 405 | 415 | ||
