Created
February 3, 2018 23:42
-
-
Save kernelOfTruth/76c576da615f0bf1c001d8744a9071d3 to your computer and use it in GitHub Desktop.
updated 005-lzma-mips74kc-optimize.patch to apply on 02/2018 upstream LEDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/target/linux/ar71xx/image/lzma-loader/src/Makefile b/target/linux/ar71xx/image/lzma-loader/src/Makefile | |
| index 5f10bdb..15932cc 100644 | |
| --- a/target/linux/ar71xx/image/lzma-loader/src/Makefile | |
| +++ b/target/linux/ar71xx/image/lzma-loader/src/Makefile | |
| @@ -30,12 +30,12 @@ OBJDUMP := $(CROSS_COMPILE)objdump | |
| BIN_FLAGS := -O binary -R .reginfo -R .note -R .comment -R .mdebug \ | |
| -R .MIPS.abiflags -S | |
| -CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \ | |
| +CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ | |
| -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \ | |
| - -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls \ | |
| + -mno-abicalls -fno-pic -ffunction-sections -pipe \ | |
| -fno-common -ffreestanding -fhonour-copts -nostartfiles \ | |
| - -mabi=32 -march=mips32r2 \ | |
| - -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap | |
| + -mabi=32 -march=74kc -mno-branch-likely -mno-mips16 -mno-interlink-compressed -msym32 -fno-caller-saves -fomit-frame-pointer -mframe-header-opt \ | |
| + -Wa,-32 -Wa,-march=74kc -mno-branch-likely -mno-mips16 -mno-interlink-compressed -msym32 -fno-caller-saves -fomit-frame-pointer -mframe-header-opt -Wa,-march=74kc -mno-branch-likely -mno-mips16 -mno-interlink-compressed -msym32 -fno-caller-saves -fomit-frame-pointer -mframe-header-opt -Wa,--trap | |
| CFLAGS += -D_LZMA_PROB32 | |
| ASFLAGS = $(CFLAGS) -D__ASSEMBLY__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment