configs: move board specific config vars from Makefile to configs/<board>.h

This commit is contained in:
Alexander Couzens 2015-03-04 18:55:02 +01:00
parent 19e56e0de4
commit cb87eab8a2
4 changed files with 13 additions and 22 deletions

View File

@ -31,18 +31,10 @@ BOARD_TYPE:=
skylab_config:
export COMPRESSED_UBOOT=0
export FLASH_SIZE=8
export NEW_DDR_TAP_CAL=1
export CONFIG_HORNET_1_1_WAR=1
export CONFIG_HORNET_XTAL=25
export CARABOOT_RELEASE=v2.2-dev
carambola2_config:
export COMPRESSED_UBOOT=0
export FLASH_SIZE=16
export NEW_DDR_TAP_CAL=1
export CONFIG_HORNET_XTAL=40
export CONFIG_HORNET_1_1_WAR=1
export CARABOOT_RELEASE=v2.2-dev
compile:

View File

@ -272,33 +272,19 @@ unconfig:
#========================================================================
carambola2_config: unconfig hornet_common_config
@echo "#define FLASH_SIZE $(FLASH_SIZE)" >>include/config.h
@echo "#define CARABOOT_RELEASE \"$(CARABOOT_RELEASE)\"" >>include/config.h
@./mkconfig -a carambola2 mips mips carambola2 ar7240 ar7240
skylab_config: unconfig hornet_common_config
@echo "#define FLASH_SIZE $(FLASH_SIZE)" >>include/config.h
@echo "#define CARABOOT_RELEASE \"$(CARABOOT_RELEASE)\"" >>include/config.h
@./mkconfig -a skylab mips mips carambola2 ar7240 ar7240
hornet_common_config :
@ >include/config.h
@echo "#define CONFIG_AR7240 1" >>include/config.h
@echo "#define CONFIG_MACH_HORNET 1" >>include/config.h
ifeq ($(CONFIG_HORNET_XTAL), 40)
@echo "#define CONFIG_40MHZ_XTAL_SUPPORT 1" >>include/config.h
endif
ifeq ($(CONFIG_HORNET_1_1_WAR), 1)
@echo "#define CONFIG_HORNET_1_1_WAR 1" >>include/config.h
endif
ifeq ($(AG7240_BROADCAST_ENABLE), 1)
@echo "#define AG7240_BROADCAST_ENABLE 1" >>include/config.h
endif
ifeq ($(NEW_DDR_TAP_CAL), 1)
@echo "#define NEW_DDR_TAP_CAL 1" >>include/config.h
endif
###############

View File

@ -8,6 +8,13 @@
#include <configs/ar7240.h>
#include <config.h>
#define FLASH_SIZE 16
#define CONFIG_AR7240 1
#define CONFIG_MACH_HORNET 1
#define CONFIG_40MHZ_XTAL_SUPPORT 1
#define CONFIG_HORNET_1_1_WAR 1
#define NEW_DDR_TAP_CAL 1
/* enable watchdog */
#define CONFIG_HW_WATCHDOG

View File

@ -8,6 +8,12 @@
#include <configs/ar7240.h>
#include <config.h>
#define FLASH_SIZE 8
#define CONFIG_AR7240 1
#define CONFIG_MACH_HORNET 1
#define CONFIG_HORNET_1_1_WAR 1
#define NEW_DDR_TAP_CAL 1
/* enable watchdog */
#define CONFIG_HW_WATCHDOG