Ah yes, that's a lot of help
Oh I mean I run into problems when running ./patch_LEDE.sh
This might need to be updated?
001-mips-cflag-optimization.patch
002-mips74kc-set-optimization.patch
Also I'm not sure about patch #003-005, I just know for sure those 2 files are causing problems, I removed #001-005 to test out the other patches and it seems to be fine
Here's a snippet of target/linux/ar71xx/Makefile
ARCH:=mips
BOARD:=ar71xx
BOARDNAME:=Atheros AR7xxx/AR9xxx
FEATURES:=
CPU_TYPE:=24kc
SUBTARGETS:=generic nand mikrotik
versus your patch
ARCH:=mips
BOARD:=ar71xx
BOARDNAME:=Atheros AR7xxx/AR9xxx
-FEATURES:=mips16 usbgadget
-CPU_TYPE:=24kc
+FEATURES:=usbgadget
+CPU_TYPE=74kc
+CPU_SUBTYPE:=dsp2
SUBTARGETS:=generic nand mikrotik