Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ap143/boot/u-boot/config.mk b/ap143/boot/u-boot/config.mk
- index dfd830e..eb3ebf2 100644
- --- a/ap143/boot/u-boot/config.mk
- +++ b/ap143/boot/u-boot/config.mk
- @@ -116,7 +116,7 @@ RANLIB = $(CROSS_COMPILE)RANLIB
- RELFLAGS= $(PLATFORM_RELFLAGS)
- DBGFLAGS= -g #-DDEBUG
- -OPTFLAGS= -Os #-fomit-frame-pointer
- +OPTFLAGS= -O ### SHITWARE -Os => -O ### #-fomit-frame-pointer
- ifndef LDSCRIPT
- #LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
- LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
- @@ -127,11 +127,13 @@ LDSCRIPT_BOOTSTRAP := $(TOPDIR)/board/$(BOARDDIR)/u-boot-bootstrap.lds
- gccincdir := $(shell $(CC) -print-file-name=include)
- +### SHITWARE $(SHITWARE_UBOOT_EXTRA_CPPFLAGS) ###
- CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
- -D__KERNEL__ -DTEXT_BASE=$(TEXT_BASE) \
- -I$(TOPDIR)/include \
- -fno-builtin -ffreestanding -nostdinc -isystem \
- - $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)
- + $(gccincdir) -pipe $(PLATFORM_CPPFLAGS) \
- + $(SHITWARE_UBOOT_EXTRA_CPPFLAGS)
- ifdef BUILD_TAG
- CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes \
- @@ -143,7 +145,9 @@ CFLAGS += -DCOMPRESSED_UBOOT=1
- endif
- ifeq ($(BUILD_OPTIMIZED),y)
- -CFLAGS += -Os -funit-at-a-time -mips32r2 -mtune=mips32r2
- +### SHITWARE -mips32r2 -mtune=mips32r2 => -mtune=34kc ===> SHITWARE_UBOOT_EXTRA_MIPSFLAGS ###
- +### SHITWARE -Os => -O ===> OPTFLAGS ###
- +CFLAGS += -funit-at-a-time
- endif
- endif
- @@ -213,7 +217,8 @@ ifeq ($(PCI_CLOCK),PCI_66M)
- CFLAGS := $(CFLAGS) -DPCI_66M
- endif
- -CFLAGS += $(UBOOT_GCC_4_3_3_EXTRA_CFLAGS) -g
- +### SHITWARE $(UBOOT_GCC_4_3_3_EXTRA_CFLAGS) => $(SHITWARE_UBOOT_EXTRA_MIPSFLAGS) ###
- +CFLAGS += -g
- #########################################################################
- diff --git a/ap143/boot/u-boot/cpu/mips/config.mk b/ap143/boot/u-boot/cpu/mips/config.mk
- index fb2ccf7..402565f 100644
- --- a/ap143/boot/u-boot/cpu/mips/config.mk
- +++ b/ap143/boot/u-boot/cpu/mips/config.mk
- @@ -35,6 +35,7 @@ ENDIANNESS = -EL
- #ENDIANNESS = -EB
- endif
- -MIPSFLAGS += $(ENDIANNESS) -mabicalls -march=mips32r2
- +### SHITWARE $(SHITWARE_UBOOT_EXTRA_MIPSFLAGS) ###
- +MIPSFLAGS += $(ENDIANNESS) -mabicalls -march=mips32r2 $(SHITWARE_UBOOT_EXTRA_MIPSFLAGS)
- PLATFORM_CPPFLAGS += $(MIPSFLAGS)
- diff --git a/build/products_config/wr841nv9_en/basic.config b/build/products_config/wr841nv9_en/basic.config
- index 0a6e40a..f5b8067 100755
- --- a/build/products_config/wr841nv9_en/basic.config
- +++ b/build/products_config/wr841nv9_en/basic.config
- @@ -2,9 +2,15 @@
- export BOARD_TYPE=ap143
- export CFG_BOARD_TYPE=$(BOARD_TYPE)
- export TOOLCHAIN=gcc-4.3.3
- -export TOOLPREFIX=mips-linux-uclibc-
- +export TOOLPREFIX=mips-openwrt-linux-uclibc-
- export TOOLARCH=build_mips/staging_dir/usr
- -export UBOOT_GCC_4_3_3_EXTRA_CFLAGS=-fPIC
- +### export UBOOT_GCC_4_3_3_EXTRA_CFLAGS=-fPIC
- +
- +### SHITWARE SHITWARE_UBOOT_EXTRA_MIPSFLAGS ###
- +export SHITWARE_UBOOT_EXTRA_MIPSFLAGS=-G 0 -fPIC -msoft-float -fno-schedule-insns -fno-schedule-insns2 -mips32r2 -mtune=34kc
- +
- +### SHITWARE SHITWARE_UBOOT_EXTRA_CPPFLAGS ###
- +export SHITWARE_UBOOT_EXTRA_CPPFLAGS=-fno-reorder-functions -fno-delete-null-pointer-checks
- export KERNEL=mips-linux-2.6.31
- export KERNELVER=2.6.31
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement