diff options
| -rw-r--r-- | meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0001-add-support-for-cross-compilation.patch | 21 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0002-Makefile-add-conditional-stripping.patch | 39 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.21.bb (renamed from meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb) | 9 |
3 files changed, 2 insertions, 67 deletions
diff --git a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0001-add-support-for-cross-compilation.patch b/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0001-add-support-for-cross-compilation.patch deleted file mode 100644 index fbc0f5a18e..0000000000 --- a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0001-add-support-for-cross-compilation.patch +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | Author: Maciej Pijanowski <maciej.pijanowski@3mdeb.com> | ||
| 2 | Date: Fri Jul 5 16:39:13 2024 +0200 | ||
| 3 | Upstream-Status: Submitted [https://github.com/DediProgSW/SF100Linux/pull/86] | ||
| 4 | |||
| 5 | Makefile: allow overriding CC | ||
| 6 | |||
| 7 | Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com> | ||
| 8 | |||
| 9 | diff --git a/Makefile b/Makefile | ||
| 10 | index 139e5c0c3c3c..226303a6921e 100644 | ||
| 11 | --- a/Makefile | ||
| 12 | +++ b/Makefile | ||
| 13 | @@ -12,7 +12,7 @@ endif | ||
| 14 | endif | ||
| 15 | |||
| 16 | PROGRAM = dpcmd | ||
| 17 | -CC = gcc | ||
| 18 | +CC ?= gcc | ||
| 19 | PREFIX ?= /usr/local | ||
| 20 | |||
| 21 | PKG_CONFIG ?= pkg-config | ||
diff --git a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0002-Makefile-add-conditional-stripping.patch b/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0002-Makefile-add-conditional-stripping.patch deleted file mode 100644 index 0fc8ac5bd2..0000000000 --- a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher/0002-Makefile-add-conditional-stripping.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | From dac9d0ea5c419049c9ab0a5ba90d15d77a3271b0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tymoteusz Burak <tymoteusz.burak@3mdeb.com> | ||
| 3 | Date: Mon, 22 Jul 2024 13:02:59 +0000 | ||
| 4 | Subject: [PATCH] Makefile: add conditional stripping | ||
| 5 | Upstream-Status: Submitted [https://github.com/DediProgSW/SF100Linux/pull/88] | ||
| 6 | |||
| 7 | This patch introduces a `NOSTRIP` conditional flag to the `install` | ||
| 8 | target in the Makefile. The purpose of this flag is to allow the | ||
| 9 | disabling of binary stripping during installation. This is | ||
| 10 | particularly useful in development environments, such as BitBake, | ||
| 11 | which handle stripping internally. | ||
| 12 | |||
| 13 | When `NOSTRIP` is set to `1`, the `strip` command will be skipped | ||
| 14 | during the installation process, preventing potential conflicts or | ||
| 15 | redundant operations. | ||
| 16 | |||
| 17 | Signed-off-by: Tymoteusz Burak <tymoteusz.burak@3mdeb.com> | ||
| 18 | |||
| 19 | --- | ||
| 20 | Makefile | 2 ++ | ||
| 21 | 1 file changed, 2 insertions(+) | ||
| 22 | |||
| 23 | diff --git a/Makefile b/Makefile | ||
| 24 | index 139e5c0..8b33320 100644 | ||
| 25 | --- a/Makefile | ||
| 26 | +++ b/Makefile | ||
| 27 | @@ -58,7 +58,9 @@ install: $(PROGRAM) | ||
| 28 | [ $(shell id -u) -eq 0 ] || (echo "Error: install needs root privileges" && false) | ||
| 29 | install -v -o 0 -g 0 -m 755 -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/DediProg | ||
| 30 | echo -n "install: " && install -v -o 0 -g 0 -m 0755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM) | ||
| 31 | +ifneq ($(NOSTRIP),1) | ||
| 32 | strip $(DESTDIR)$(PREFIX)/bin/$(PROGRAM) | ||
| 33 | +endif | ||
| 34 | install -v -o 0 -g 0 -m 755 -d $(DESTDIR)$(PREFIX)/share/DediProg | ||
| 35 | echo -n "install: " && install -v -o 0 -g 0 -m 0644 ChipInfoDb.dedicfg $(DESTDIR)$(PREFIX)/share/DediProg/ChipInfoDb.dedicfg | ||
| 36 | install -v -o 0 -g 0 -m 755 -d $(DESTDIR)/etc/udev/rules.d | ||
| 37 | -- | ||
| 38 | 2.30.2 | ||
| 39 | |||
diff --git a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb b/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.21.bb index e0041b58e6..9f00d00ec3 100644 --- a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +++ b/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.21.bb | |||
| @@ -5,18 +5,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a23a74b3f4caf9616230789d94217acb" | |||
| 5 | 5 | ||
| 6 | DEPENDS = "libusb" | 6 | DEPENDS = "libusb" |
| 7 | 7 | ||
| 8 | SRCREV = "e691f2d432144e3dbc82e9e0eea1ebaed4f3becf" | 8 | SRCREV = "42edbcc60217f3fb39d5c6e5a68bedaa32844482" |
| 9 | SRC_URI = " \ | 9 | SRC_URI = " \ |
| 10 | git://github.com/DediProgSW/SF100Linux.git;protocol=https;branch=master \ | 10 | git://github.com/DediProgSW/SF100Linux.git;protocol=https;branch=master;tag=V${PV},x \ |
| 11 | file://0001-add-support-for-cross-compilation.patch \ | ||
| 12 | file://0002-Makefile-add-conditional-stripping.patch \ | ||
| 13 | " | 11 | " |
| 14 | 12 | ||
| 15 | EXTRA_OEMAKE = "NOSTRIP=1 DESTDIR=${D} PREFIX=${prefix}" | 13 | EXTRA_OEMAKE = "NOSTRIP=1 DESTDIR=${D} PREFIX=${prefix}" |
| 16 | 14 | ||
| 17 | PV = "1.0+${SRCPV}" | ||
| 18 | |||
| 19 | |||
| 20 | do_install() { | 15 | do_install() { |
| 21 | oe_runmake install | 16 | oe_runmake install |
| 22 | } | 17 | } |
