diff options
| author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2021-05-25 14:00:27 +0300 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-05-29 11:02:09 -0700 |
| commit | 587fe58949c7efae60c6eee580bda3233621245e (patch) | |
| tree | 6d42f68f19bdad809986934e8fe7afb4f559728c | |
| parent | 943f5560aa3b34f1c0baa0b8093fe978d5db558d (diff) | |
| download | meta-openembedded-587fe58949c7efae60c6eee580bda3233621245e.tar.gz | |
ebtables: use bitbake optimization levels
Don't overwrite with O3 optimization. Reduces ebtables
binary package size from 416241 to 412145 bytes, and
enables further optimizations with e.g. -Os flags
via bitbake distro wide settings.
Only ebtables versions up to 2.0.10-4 and dunfell are affected.
The version 2.0.11 from hardknott and master branch use system
wide flags already.
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables_optimizations.patch | 19 | ||||
| -rw-r--r-- | meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables_optimizations.patch b/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables_optimizations.patch new file mode 100644 index 0000000000..21d4cfd822 --- /dev/null +++ b/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables_optimizations.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | ebtables: use optimizations from bitbake | ||
| 2 | |||
| 3 | Enables building with O2 or Os to create smaller binaries. | ||
| 4 | |||
| 5 | Upstream-Status: Inappropriate [configuration] | ||
| 6 | |||
| 7 | Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> | ||
| 8 | |||
| 9 | --- a/Makefile 2021-04-16 12:43:40.475431286 +0000 | ||
| 10 | +++ b/Makefile 2021-04-16 12:45:23.654597711 +0000 | ||
| 11 | @@ -18,7 +18,7 @@ SYSCONFIGDIR:=/etc/sysconfig | ||
| 12 | DESTDIR:= | ||
| 13 | |||
| 14 | CFLAGS:=-Wall -Wunused -Werror | ||
| 15 | -CFLAGS_SH_LIB:=-fPIC -O3 | ||
| 16 | +CFLAGS_SH_LIB:=-fPIC | ||
| 17 | CC:=gcc | ||
| 18 | |||
| 19 | ifeq ($(shell uname -m),sparc64) | ||
diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb index 276784009f..8b6dcea439 100644 --- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb +++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb | |||
| @@ -31,6 +31,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/ebtables/ebtables-v${PV}.tar.gz \ | |||
| 31 | file://0007-extensions-Use-stdint-types.patch \ | 31 | file://0007-extensions-Use-stdint-types.patch \ |
| 32 | file://0008-ethernetdb.h-Remove-C-specific-compiler-hint-macro-_.patch \ | 32 | file://0008-ethernetdb.h-Remove-C-specific-compiler-hint-macro-_.patch \ |
| 33 | file://0009-ebtables-Allow-RETURN-target-rules-in-user-defined-c.patch \ | 33 | file://0009-ebtables-Allow-RETURN-target-rules-in-user-defined-c.patch \ |
| 34 | file://ebtables_optimizations.patch \ | ||
| 34 | " | 35 | " |
| 35 | 36 | ||
| 36 | SRC_URI_append_libc-musl = " file://0010-Adjust-header-include-sequence.patch" | 37 | SRC_URI_append_libc-musl = " file://0010-Adjust-header-include-sequence.patch" |
