diff options
| author | Khem Raj <raj.khem@gmail.com> | 2026-01-26 22:39:23 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-03-19 22:27:10 -0700 |
| commit | c5aef83d71ed64b55feea37dfb6d0adab74ec4a1 (patch) | |
| tree | 8434725a311b81df5bdf052449705582d7f63bc4 | |
| parent | 1ca540a930ec7eaea023d8051df7265f07712d9a (diff) | |
| download | meta-openembedded-c5aef83d71ed64b55feea37dfb6d0adab74ec4a1.tar.gz | |
memstat: Pass OE environment CFLAGS to makefile
Helps with reproducible builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/memstat/memstat_1.0.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch b/meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch new file mode 100644 index 0000000000..8ac7a8ff54 --- /dev/null +++ b/meta-oe/recipes-devtools/memstat/memstat/0001-makefile-Do-not-override-cflags.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From a0806283da1b82b511aa879fa2f71deb01f849bd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 26 Jan 2026 22:22:54 -0800 | ||
| 4 | Subject: [PATCH] makefile: Do not override cflags | ||
| 5 | |||
| 6 | bitbake environment passes correct clfags for OE env | ||
| 7 | overriding it means some important flags for cross-compiling | ||
| 8 | go missing and causes | ||
| 9 | |||
| 10 | memstat-1.0-r0 do_package_qa: QA Issue: File /usr/bin/.debug/memstat in package memstat-dbg contains reference to TMPDIR [buildpaths] | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [OE-specific] | ||
| 13 | |||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | Makefile | 1 - | ||
| 17 | 1 file changed, 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/Makefile b/Makefile | ||
| 20 | index 29f8129..5426bf4 100644 | ||
| 21 | --- a/Makefile | ||
| 22 | +++ b/Makefile | ||
| 23 | @@ -3,7 +3,6 @@ | ||
| 24 | # Copyright 1998, by Bernd Eckenfels <ecki@debian.org> | ||
| 25 | # This file is under the GPL. | ||
| 26 | # | ||
| 27 | -CFLAGS = -g -Wall -O2 | ||
| 28 | prefix = $(DESTDIR)/ | ||
| 29 | exec_prefix = $(prefix)/usr | ||
| 30 | |||
diff --git a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb index 6289f3a27a..a0b4d0b9cc 100644 --- a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb +++ b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb | |||
| @@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = "file://debian/copyright;md5=87be186443b1ac2cfa466f475e1ee0cb | |||
| 14 | 14 | ||
| 15 | SRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \ | 15 | SRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \ |
| 16 | file://0001-Include-limits.h-for-PATH_MAX-definition.patch \ | 16 | file://0001-Include-limits.h-for-PATH_MAX-definition.patch \ |
| 17 | file://0001-makefile-Do-not-override-cflags.patch \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | SRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94" | 20 | SRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94" |
