From: Markus Stockhausen Date: Mon, 15 Jun 2026 18:27:24 +0000 (+0200) Subject: realtek: rt-loader increase gcc optimization level X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f5c2685ff3fa97405c2d565f913deef86bebff;p=thirdparty%2Fopenwrt.git realtek: rt-loader increase gcc optimization level Switch from -O2 to -O3. This increases the loader code size by 5KB and brings down the decompression time on RTL838x from ~6.5 seconds to ~3.5 seconds. Link: https://github.com/openwrt/openwrt/pull/23811 Signed-off-by: Markus Stockhausen --- diff --git a/target/linux/realtek/image/rt-loader/Makefile b/target/linux/realtek/image/rt-loader/Makefile index 198506bce8f..90f8349c967 100644 --- a/target/linux/realtek/image/rt-loader/Makefile +++ b/target/linux/realtek/image/rt-loader/Makefile @@ -73,7 +73,7 @@ LD := $(CROSS_COMPILE)ld OBJCOPY := $(CROSS_COMPILE)objcopy OBJDUMP := $(CROSS_COMPILE)objdump -CFLAGS = -fpic -mabicalls -O2 -fno-builtin-printf -Iinclude +CFLAGS = -fpic -mabicalls -O3 -fno-builtin-printf -Iinclude CFLAGS += -DFLASH_ADDR=$(FLASH_ADDR) CFLAGS += -DKERNEL_ADDR=$(KERNEL_ADDR)