Skip to content

Commit

Permalink
Add CONFIG_USE_PREBOOT to boards that use CONFIG_PREBOOT
Browse files Browse the repository at this point in the history
In order to use CONFIG_PREBOOT with Kconfig, CONFIG_USE_PREBOOT must be
defined for each board. To prepare for conversion to Kconfig, add this.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Aug 2, 2019
1 parent 9f53146 commit b06da06
Show file tree
Hide file tree
Showing 59 changed files with 60 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/configs/MPC8349EMDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@

#define CONFIG_LOADADDR 800000 /* default location for tftp and bootm */

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
"echo"
Expand Down
1 change: 1 addition & 0 deletions include/configs/TQM834x.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
/* default location for tftp and bootm */
#define CONFIG_LOADADDR 400000

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
"echo"
Expand Down
1 change: 1 addition & 0 deletions include/configs/am3517_crane.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
#ifdef CONFIG_USB_MUSB_HCD

#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#endif /* CONFIG_USB_KEYBOARD */

Expand Down
1 change: 1 addition & 0 deletions include/configs/am3517_evm.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#ifdef CONFIG_USB_MUSB_HOST

#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#endif /* CONFIG_USB_KEYBOARD */

Expand Down
1 change: 1 addition & 0 deletions include/configs/apf27.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
#define CONFIG_SYS_CBSIZE 2048 /* console I/O buffer */
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
/* Boot argument buffer size */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run check_flash check_env;"

/*
Expand Down
1 change: 1 addition & 0 deletions include/configs/arndale.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#define CONFIG_SYS_INIT_SP_ADDR CONFIG_IRAM_STACK

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#define CONFIG_S5P_PA_SYSRAM 0x02020000
Expand Down
1 change: 1 addition & 0 deletions include/configs/bcmstb.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ extern phys_addr_t prior_stage_fdt_address;
/*
* Save the prior stage provided DTB.
*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"fdt addr ${fdtcontroladdr};" \
"fdt move ${fdtcontroladdr} ${fdtsaveaddr};" \
Expand Down
1 change: 1 addition & 0 deletions include/configs/bk4r1.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"run manage_userdata; "

/* Enable PREBOOT variable */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

/* Set ARP_TIMEOUT to 500ms */
Expand Down
1 change: 1 addition & 0 deletions include/configs/bur_cfg_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"setcurs 1 10;lcdputs serverip; setcurs 10 10; lcdputs ${serverip};" \
"setenv stdout nc;setenv stdin nc;setenv stderr nc\0"

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run cfgscr; run brdefaultip"

/* Network defines */
Expand Down
1 change: 1 addition & 0 deletions include/configs/cm_fx6.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"echo WARNING: Could not determine dtb to use; fi; \0" \
BOOTENV

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start;sf probe"

#define BOOT_TARGET_DEVICES(func) \
Expand Down
1 change: 1 addition & 0 deletions include/configs/conga-qeval20-qa3-e3845.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"upd_uboot=tftp 100000 conga/u-boot.rom;" \
"sf probe;sf update 100000 0 800000;saveenv\0"

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif /* __CONFIG_H */
1 change: 1 addition & 0 deletions include/configs/controlcenterdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
#define CONFIG_ROOTPATH "/opt/nfsroot"
#define CONFIG_BOOTFILE "ccdc.img"

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */

#define CONFIG_EXTRA_ENV_SETTINGS \
Expand Down
1 change: 1 addition & 0 deletions include/configs/dfi-bt700.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"upd_uboot=usb reset;tftp 100000 dfi/u-boot.rom;" \
"sf probe;sf update 100000 0 800000;saveenv\0"

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif /* __CONFIG_H */
1 change: 1 addition & 0 deletions include/configs/ds414.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
/* Default Environment */
#define CONFIG_BOOTCOMMAND "sf read ${loadaddr} 0xd0000 0x700000; bootm"
#define CONFIG_LOADADDR 0x80000
#define CONFIG_USE_PREBOOT
#undef CONFIG_PREBOOT /* override preboot for USB and SPI flash init */
#define CONFIG_PREBOOT "usb start; sf probe"

Expand Down
1 change: 1 addition & 0 deletions include/configs/gw_ventana.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@

/* Miscellaneous configurable options */
#define CONFIG_HWCONFIG
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

/* Memory configuration */
Expand Down
1 change: 1 addition & 0 deletions include/configs/hrcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ void fpga_control_clear(unsigned int bus, int pin);
#define CONFIG_ROOTPATH "/opt/nfsroot"
#define CONFIG_BOOTFILE "uImage"

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */

#define CONFIG_EXTRA_ENV_SETTINGS \
Expand Down
1 change: 1 addition & 0 deletions include/configs/ids8313.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
#define CONFIG_SYS_LOAD_ADDR 0x100000
#define CONFIG_LOADS_ECHO
#define CONFIG_TIMESTAMP
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Type \\\"run nfsboot\\\" " \
"to mount root filesystem over NFS;echo"
Expand Down
1 change: 1 addition & 0 deletions include/configs/m53menlo.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
/*
* Extra Environments
*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run try_bootscript"
#define CONFIG_HOSTNAME "m53menlo"

Expand Down
1 change: 1 addition & 0 deletions include/configs/meesc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define CONFIG_REVISION_TAG
#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */

/*
Expand Down
1 change: 1 addition & 0 deletions include/configs/meson64.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#ifdef CONFIG_USB_KEYBOARD
#define STDIN_CFG "usbkbd,serial"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#else
#define STDIN_CFG "serial"
Expand Down
3 changes: 2 additions & 1 deletion include/configs/microblaze-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
/* architecture dependent code */
#define CONFIG_SYS_USR_EXCEP /* user exception */

#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo"

#ifndef CONFIG_EXTRA_ENV_SETTINGS
#define CONFIG_EXTRA_ENV_SETTINGS "unlock=yes\0" \
Expand Down
1 change: 1 addition & 0 deletions include/configs/mv-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#endif

/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

/*
Expand Down
1 change: 1 addition & 0 deletions include/configs/mvebu_armada-37xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define CONFIG_SYS_SDRAM_BASE 0x00000000

/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \
Expand Down
1 change: 1 addition & 0 deletions include/configs/mvebu_armada-8k.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define CONFIG_SYS_SDRAM_BASE 0x00000000

/* auto boot */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \
Expand Down
1 change: 1 addition & 0 deletions include/configs/mx51evk.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#define CONFIG_MXC_USB_FLAGS MXC_EHCI_POWER_PINS_ENABLED

/* Framebuffer and LCD */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_VIDEO_BMP_RLE8
#define CONFIG_SPLASH_SCREEN
Expand Down
1 change: 1 addition & 0 deletions include/configs/mx53cx9020.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@

/* Framebuffer and LCD */
#define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif /* __CONFIG_H */
1 change: 1 addition & 0 deletions include/configs/mx53loco.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
#endif

/* Framebuffer and LCD */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define CONFIG_VIDEO_BMP_RLE8
#define CONFIG_SPLASH_SCREEN
Expand Down
1 change: 1 addition & 0 deletions include/configs/mx6cuboxi.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
#define CONFIG_MXC_USB_FLAGS 0
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"if hdmidet; then " \
"usb start; " \
Expand Down
1 change: 1 addition & 0 deletions include/configs/nitrogen6x.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#define CONFIG_IMX_HDMI
#define CONFIG_IMX_VIDEO_SKIP

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT ""

#ifdef CONFIG_CMD_MMC
Expand Down
1 change: 1 addition & 0 deletions include/configs/nokia_rx51.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ int rx51_kp_getc(struct stdio_dev *sdev);
"bootmenu_delay=30\0" \
""

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"setenv mmcnum 1; setenv mmcpart 1;" \
"setenv mmcscriptfile bootmenu.scr;" \
Expand Down
1 change: 1 addition & 0 deletions include/configs/omap3_beagle.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

/* TWL4030 LED Support */

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"

#define MEM_LAYOUT_ENV_SETTINGS \
Expand Down
1 change: 1 addition & 0 deletions include/configs/omap3_logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

/* Environment information */

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"setenv preboot;" \
"saveenv;"
Expand Down
1 change: 1 addition & 0 deletions include/configs/opos6uldev.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#define ACFG_CONSOLE_DEV ttymxc0
#define CONFIG_SYS_AUTOLOAD "no"
#define CONFIG_ROOTPATH "/tftpboot/" __stringify(CONFIG_BOARD_NAME) "-root"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run check_env"
#define CONFIG_BOOTCOMMAND "run emmcboot"

Expand Down
1 change: 1 addition & 0 deletions include/configs/ot1200.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
#endif

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT ""

/* Thermal support */
Expand Down
1 change: 1 addition & 0 deletions include/configs/platinum.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
#define CONFIG_BOOTCOMMAND "run bootubi_scr"

/* Miscellaneous configurable options */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

/* MTD/UBI/UBIFS config */
Expand Down
1 change: 1 addition & 0 deletions include/configs/qemu-arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <config_distro_bootcmd.h>

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "pci enum"
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_high=0xffffffff\0" \
Expand Down
1 change: 1 addition & 0 deletions include/configs/rk3036_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
BOOTENV
#endif

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif
1 change: 1 addition & 0 deletions include/configs/rk3188_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

#endif /* CONFIG_SPL_BUILD */

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif
1 change: 1 addition & 0 deletions include/configs/rk322x_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
BOOTENV
#endif

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif
1 change: 1 addition & 0 deletions include/configs/rk3288_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
BOOTENV
#endif

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT

#endif
1 change: 1 addition & 0 deletions include/configs/rpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
/* Environment */
#define CONFIG_ENV_SIZE SZ_16K
#define CONFIG_SYS_LOAD_ADDR 0x1000000
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"

/* Shell */
Expand Down
1 change: 1 addition & 0 deletions include/configs/siemens-am33x-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
/* UBI Support */

/* Commen environment */
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#define COMMON_ENV_DFU_ARGS "dfu_args=run bootargs_defaults;" \
"setenv bootargs ${bootargs};" \
Expand Down
1 change: 1 addition & 0 deletions include/configs/socfpga_dbm_soc1.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/* Booting Linux */
#define CONFIG_BOOTFILE "fitImage"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "run try_bootscript"
#define CONFIG_BOOTCOMMAND "run mmc_mmc"
#define CONFIG_LOADADDR 0x01000000
Expand Down
1 change: 1 addition & 0 deletions include/configs/socfpga_vining_fpga.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* if button B is not pressed, boot normal Linux system immediatelly
* if button B is pressed, wait $bootdelay and boot recovery system
*/
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"setenv hostname vining-${unit_serial} ; " \
"setenv PS1 \"${unit_ident} (${unit_serial}) => \" ; " \
Expand Down
1 change: 1 addition & 0 deletions include/configs/socrates.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
#define CONFIG_LOADADDR 200000 /* default addr for tftp & bootm*/


#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "echo;" \
"echo Welcome on the ABB Socrates Board;" \
"echo"
Expand Down
1 change: 1 addition & 0 deletions include/configs/strider.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ void fpga_control_clear(unsigned int bus, int pin);
#define CONFIG_ROOTPATH "/opt/nfsroot"
#define CONFIG_BOOTFILE "uImage"

#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT /* enable preboot variable */

#define CONFIG_EXTRA_ENV_SETTINGS \
Expand Down
1 change: 1 addition & 0 deletions include/configs/sunxi-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ extern int soft_i2c_gpio_scl;
#endif

#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT
#endif

Expand Down
1 change: 1 addition & 0 deletions include/configs/tbs2910.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
#define CONFIG_USBD_HS
#endif /* CONFIG_CMD_USB_MASS_STORAGE */
#ifdef CONFIG_USB_KEYBOARD
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT \
"usb start; " \
"if hdmidet; then " \
Expand Down
1 change: 1 addition & 0 deletions include/configs/tegra-common-post.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

#ifdef CONFIG_USB_KEYBOARD
#define STDIN_KBD_USB ",usbkbd"
#define CONFIG_USE_PREBOOT
#define CONFIG_PREBOOT "usb start"
#else
#define STDIN_KBD_USB ""
Expand Down
Loading

0 comments on commit b06da06

Please sign in to comment.