Skip to content

Commit

Permalink
kconfig: Move REGEX to Kconfig
Browse files Browse the repository at this point in the history
Having this as a Kconfig allows it to be a dependent feature.

Signed-off-by: Joe Hershberger <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
  • Loading branch information
jhershbe authored and trini committed May 10, 2015
1 parent 27e7215 commit 1a60650
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 6 deletions.
1 change: 1 addition & 0 deletions configs/acadia_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_ACADIA=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/bamboo_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_BAMBOO=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/bubinga_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_BUBINGA=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/canyonlands_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ CONFIG_CANYONLANDS=y
CONFIG_DEFAULT_DEVICE_TREE="canyonlands"
CONFIG_OF_CONTROL=y
CONFIG_OF_EMBED=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/dlvision-10g_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_DLVISION_10G=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/dlvision_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_DLVISION=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/ebony_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_EBONY=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/gdppc440etx_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_GDPPC440ETX=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/icon_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_ICON=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/intip_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SYS_EXTRA_OPTIONS="INTIB"
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_INTIP=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/io64_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_IO64=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/io_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_IO=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/iocon_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_IOCON=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/katmai_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_KATMAI=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/kilauea_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SYS_EXTRA_OPTIONS="KILAUEA"
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_KILAUEA=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/luan_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_LUAN=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/m28evk_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_SPL=y
CONFIG_ARM=y
CONFIG_TARGET_M28EVK=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/m53evk_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/denx/m53evk/imximage.cfg"
CONFIG_ARM=y
CONFIG_TARGET_M53EVK=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/makalu_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_MAKALU=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/neo_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_NEO=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/novena_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SPL=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6Q"
CONFIG_ARM=y
CONFIG_TARGET_KOSAGI_NOVENA=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/ocotea_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_OCOTEA=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/redwood_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_REDWOOD=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/sequoia_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SYS_EXTRA_OPTIONS="SEQUOIA"
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_SEQUOIA=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/socfpga_arria5_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ CONFIG_ARCH_SOCFPGA=y
CONFIG_TARGET_SOCFPGA_ARRIA5=y
CONFIG_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_socdk"
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/socfpga_cyclone5_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk"
CONFIG_ETH_DESIGNWARE=y
CONFIG_NETDEVICES=y
CONFIG_NET=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/t3corp_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_T3CORP=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/taihu_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_TAIHU=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/taishan_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_TAISHAN=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/walnut_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_WALNUT=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/yosemite_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_SYS_EXTRA_OPTIONS="YOSEMITE"
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_YOSEMITE=y
CONFIG_REGEX=y
1 change: 1 addition & 0 deletions configs/yucca_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PPC=y
CONFIG_4xx=y
CONFIG_TARGET_YUCCA=y
CONFIG_REGEX=y
1 change: 0 additions & 1 deletion include/configs/amcc-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
#define CONFIG_LOADS_ECHO /* echo on for serial download */
#define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */

#define CONFIG_REGEX /* Enable regular expression support */
/*
* BOOTP options
*/
Expand Down
1 change: 0 additions & 1 deletion include/configs/m28evk.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#define CONFIG_CMD_USB
#define CONFIG_VIDEO

#define CONFIG_REGEX /* Enable regular expression support */

/* Memory configuration */
#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
Expand Down
1 change: 0 additions & 1 deletion include/configs/m53evk.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#define CONFIG_CMD_USB
#define CONFIG_VIDEO

#define CONFIG_REGEX /* Enable regular expression support */

/*
* Memory configurations
Expand Down
1 change: 0 additions & 1 deletion include/configs/novena.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define CONFIG_KEYBOARD
#define CONFIG_MXC_GPIO
#define CONFIG_OF_LIBFDT
#define CONFIG_REGEX
#define CONFIG_SYS_GENERIC_BOARD
#define CONFIG_SYS_NO_FLASH

Expand Down
1 change: 0 additions & 1 deletion include/configs/socfpga_arria5.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#define CONFIG_CMD_USB
#define CONFIG_CMD_USB_MASS_STORAGE

#define CONFIG_REGEX /* Enable regular expression support */

/* Memory configurations */
#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */
Expand Down
1 change: 0 additions & 1 deletion include/configs/socfpga_cyclone5.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#define CONFIG_CMD_USB
#define CONFIG_CMD_USB_MASS_STORAGE

#define CONFIG_REGEX /* Enable regular expression support */

/* Memory configurations */
#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */
Expand Down
8 changes: 8 additions & 0 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ config SYS_VSNPRINTF
Thumb-2, about 420 bytes). Enable this option for safety when
using sprintf() with data you do not control.

config REGEX
bool "Enable regular expression support"
help
If this variable is defined, U-Boot is linked against the
SLRE (Super Light Regular Expression) library, which adds
regex support to some commands, for example "env grep" and
"setexpr".

source lib/rsa/Kconfig

menu "Hashing Support"
Expand Down

0 comments on commit 1a60650

Please sign in to comment.