configs: move board specific config vars from Makefile to configs/<board>.h
This commit is contained in:
parent
19e56e0de4
commit
cb87eab8a2
8
Makefile
8
Makefile
|
@ -31,18 +31,10 @@ BOARD_TYPE:=
|
||||||
|
|
||||||
skylab_config:
|
skylab_config:
|
||||||
export COMPRESSED_UBOOT=0
|
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
|
export CARABOOT_RELEASE=v2.2-dev
|
||||||
|
|
||||||
carambola2_config:
|
carambola2_config:
|
||||||
export COMPRESSED_UBOOT=0
|
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
|
export CARABOOT_RELEASE=v2.2-dev
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
|
|
|
@ -272,33 +272,19 @@ unconfig:
|
||||||
#========================================================================
|
#========================================================================
|
||||||
|
|
||||||
carambola2_config: unconfig hornet_common_config
|
carambola2_config: unconfig hornet_common_config
|
||||||
@echo "#define FLASH_SIZE $(FLASH_SIZE)" >>include/config.h
|
|
||||||
@echo "#define CARABOOT_RELEASE \"$(CARABOOT_RELEASE)\"" >>include/config.h
|
@echo "#define CARABOOT_RELEASE \"$(CARABOOT_RELEASE)\"" >>include/config.h
|
||||||
@./mkconfig -a carambola2 mips mips carambola2 ar7240 ar7240
|
@./mkconfig -a carambola2 mips mips carambola2 ar7240 ar7240
|
||||||
|
|
||||||
skylab_config: unconfig hornet_common_config
|
skylab_config: unconfig hornet_common_config
|
||||||
@echo "#define FLASH_SIZE $(FLASH_SIZE)" >>include/config.h
|
|
||||||
@echo "#define CARABOOT_RELEASE \"$(CARABOOT_RELEASE)\"" >>include/config.h
|
@echo "#define CARABOOT_RELEASE \"$(CARABOOT_RELEASE)\"" >>include/config.h
|
||||||
@./mkconfig -a skylab mips mips carambola2 ar7240 ar7240
|
@./mkconfig -a skylab mips mips carambola2 ar7240 ar7240
|
||||||
|
|
||||||
|
|
||||||
hornet_common_config :
|
hornet_common_config :
|
||||||
@ >include/config.h
|
@ >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)
|
ifeq ($(AG7240_BROADCAST_ENABLE), 1)
|
||||||
@echo "#define AG7240_BROADCAST_ENABLE 1" >>include/config.h
|
@echo "#define AG7240_BROADCAST_ENABLE 1" >>include/config.h
|
||||||
endif
|
endif
|
||||||
ifeq ($(NEW_DDR_TAP_CAL), 1)
|
|
||||||
@echo "#define NEW_DDR_TAP_CAL 1" >>include/config.h
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,13 @@
|
||||||
#include <configs/ar7240.h>
|
#include <configs/ar7240.h>
|
||||||
#include <config.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 */
|
/* enable watchdog */
|
||||||
#define CONFIG_HW_WATCHDOG
|
#define CONFIG_HW_WATCHDOG
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,12 @@
|
||||||
#include <configs/ar7240.h>
|
#include <configs/ar7240.h>
|
||||||
#include <config.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 */
|
/* enable watchdog */
|
||||||
#define CONFIG_HW_WATCHDOG
|
#define CONFIG_HW_WATCHDOG
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue