kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED

Many (but not all) of Blackfin boards give -O2 option
to compile under lib/ directory.
That means lib/ should be speed-optimized,
whereas other parts should be size-optimized.

We want to keep the same behavior,
but do not want to parse board/*/config.mk again and again.
We've got no choice but to invent a new method.

CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED, if it is enabled,
gives -O2 flag only for building under lib/ directory.

Dirty codes which I had marked as "FIX ME"
in board/${BOARD}/config.mk have been deleted.
Instead, CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED has been
defined in include/configs/${BOARD}.h.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
This commit is contained in:
Masahiro Yamada 2014-03-05 16:59:37 +09:00 committed by Tom Rini
parent 3775dcd9c4
commit e91df49fbb
49 changed files with 26 additions and 212 deletions

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 6 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 6

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -7,11 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6 LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -7,11 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --dma 6 LDR_FLAGS-BFIN_BOOT_PARA := --dma 6
LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1 LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16

View file

@ -1,15 +0,0 @@
#
# Copyright (c) Switchfin Org. <dpn@switchfin.org>
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -7,11 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --dma 6 LDR_FLAGS-BFIN_BOOT_PARA := --dma 6
LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1 LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16

View file

@ -7,11 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6 LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6

View file

@ -1,15 +0,0 @@
#
# Copyright (c) Switchfin Org. <dpn@switchfin.org>
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -1,13 +0,0 @@
#
# Copyright (c) 2005-2008 Analog Device Inc.
#
# (C) Copyright 2001
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier: GPL-2.0+
#
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif

View file

@ -7,10 +7,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
# FIX ME
ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
ccflags-y := -O2
endif
# Set some default LDR flags based on boot mode. # Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8

View file

@ -136,7 +136,7 @@
#define CONFIG_MTD_DEVICE #define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS #define CONFIG_MTD_PARTITIONS
#define CONFIG_SYS_HUSH_PARSER #define CONFIG_SYS_HUSH_PARSER
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -155,7 +155,7 @@
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -153,6 +153,7 @@
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 1 #define CONFIG_UART_CONSOLE 1
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* define to enable run status via led */ /* define to enable run status via led */
/* #define CONFIG_STATUS_LED */ /* #define CONFIG_STATUS_LED */

View file

@ -136,7 +136,7 @@
*/ */
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -179,7 +179,7 @@
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 1 #define CONFIG_UART_CONSOLE 1
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -112,7 +112,7 @@
*/ */
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -110,7 +110,7 @@
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -185,6 +185,7 @@
*/ */
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* FLASH/ETHERNET uses the same async bank */ /* FLASH/ETHERNET uses the same async bank */
#define SHARED_RESOURCES 1 #define SHARED_RESOURCES 1

View file

@ -254,6 +254,7 @@
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* Define if want to do post memory test */ /* Define if want to do post memory test */
#undef CONFIG_POST #undef CONFIG_POST

View file

@ -134,7 +134,7 @@
*/ */
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -181,6 +181,7 @@
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 1 #define CONFIG_UART_CONSOLE 1
#define CONFIG_BFIN_SPI_IMG_SIZE 0x50000 #define CONFIG_BFIN_SPI_IMG_SIZE 0x50000
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
#define CONFIG_ADI_GPIO2 #define CONFIG_ADI_GPIO2

View file

@ -160,7 +160,7 @@
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_BAUDRATE 57600 #define CONFIG_BAUDRATE 57600
#define CONFIG_SYS_PROMPT "Acvilon> " #define CONFIG_SYS_PROMPT "Acvilon> "
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -102,6 +102,7 @@
* Misc Settings * Misc Settings
*/ */
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Run core 1 from L1 SRAM start address when init uboot on core 0 * Run core 1 from L1 SRAM start address when init uboot on core 0

View file

@ -135,7 +135,7 @@
#define CONFIG_BOOTCOMMAND "run nandboot" #define CONFIG_BOOTCOMMAND "run nandboot"
#define CONFIG_BOOTDELAY 2 #define CONFIG_BOOTDELAY 2
#define CONFIG_LOADADDR 0x2000000 #define CONFIG_LOADADDR 0x2000000
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -128,7 +128,7 @@
#define FLASHBOOT_ENV_SETTINGS \ #define FLASHBOOT_ENV_SETTINGS \
"flashboot=flread 20040000 1000000 300000;" \ "flashboot=flread 20040000 1000000 300000;" \
"bootm 0x1000000\0" "bootm 0x1000000\0"
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -97,7 +97,7 @@
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_BOOTCOMMAND "run flashboot" #define CONFIG_BOOTCOMMAND "run flashboot"
#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0" #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -146,6 +146,7 @@
"flashboot=flread 20040000 1000000 3c0000;" \ "flashboot=flread 20040000 1000000 3c0000;" \
"bootm 0x1000000\0" "bootm 0x1000000\0"
#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024)) #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -143,7 +143,7 @@
"flashboot=flread 20040000 1000000 300000;" \ "flashboot=flread 20040000 1000000 300000;" \
"bootm 0x1000000\0" "bootm 0x1000000\0"
#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024)) #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -117,6 +117,7 @@
#define CONFIG_UART_CONSOLE 1 #define CONFIG_UART_CONSOLE 1
#define CONFIG_BOOTCOMMAND "run flashboot" #define CONFIG_BOOTCOMMAND "run flashboot"
#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0" #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
#define CONFIG_ADI_GPIO2 #define CONFIG_ADI_GPIO2

View file

@ -99,7 +99,7 @@
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_BOOTCOMMAND "run flashboot" #define CONFIG_BOOTCOMMAND "run flashboot"
#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0" #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -132,6 +132,7 @@
#define CONFIG_BAUDRATE 115200 #define CONFIG_BAUDRATE 115200
#define CONFIG_MISC_INIT_R /* needed for MAC address */ #define CONFIG_MISC_INIT_R /* needed for MAC address */
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
#undef CONFIG_SHOW_BOOT_PROGRESS #undef CONFIG_SHOW_BOOT_PROGRESS
/* Enable this if bootretry required; currently it's disabled */ /* Enable this if bootretry required; currently it's disabled */

View file

@ -135,7 +135,7 @@
#define CONFIG_BOOTCOMMAND "run nandboot" #define CONFIG_BOOTCOMMAND "run nandboot"
#define CONFIG_BOOTDELAY 2 #define CONFIG_BOOTDELAY 2
#define CONFIG_LOADADDR 0x2000000 #define CONFIG_LOADADDR 0x2000000
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -116,7 +116,7 @@
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
#define CONFIG_BOOTCOMMAND "run flashboot" #define CONFIG_BOOTCOMMAND "run flashboot"
#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0" #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -145,7 +145,7 @@
"flashboot=flread 20040000 1000000 300000;" \ "flashboot=flread 20040000 1000000 300000;" \
"bootm 0x1000000\0" "bootm 0x1000000\0"
#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024)) #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))
#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
/* /*
* Pull in common ADI header for remaining command/environment setup * Pull in common ADI header for remaining command/environment setup

View file

@ -65,3 +65,5 @@ obj-y += vsprintf.o
obj-$(CONFIG_RANDOM_MACADDR) += rand.o obj-$(CONFIG_RANDOM_MACADDR) += rand.o
obj-$(CONFIG_BOOTP_RANDOM_DELAY) += rand.o obj-$(CONFIG_BOOTP_RANDOM_DELAY) += rand.o
obj-$(CONFIG_CMD_LINK_LOCAL) += rand.o obj-$(CONFIG_CMD_LINK_LOCAL) += rand.o
subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2