Add CONFIG_USE_PREBOOT to boards that use CONFIG_PREBOOT
authorSimon Glass <sjg@chromium.org>
Sun, 21 Jul 2019 02:51:13 +0000 (20:51 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 2 Aug 2019 15:17:58 +0000 (11:17 -0400)
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 <sjg@chromium.org>
59 files changed:
include/configs/MPC8349EMDS.h
include/configs/TQM834x.h
include/configs/am3517_crane.h
include/configs/am3517_evm.h
include/configs/apf27.h
include/configs/arndale.h
include/configs/bcmstb.h
include/configs/bk4r1.h
include/configs/bur_cfg_common.h
include/configs/cm_fx6.h
include/configs/conga-qeval20-qa3-e3845.h
include/configs/controlcenterdc.h
include/configs/dfi-bt700.h
include/configs/ds414.h
include/configs/gw_ventana.h
include/configs/hrcon.h
include/configs/ids8313.h
include/configs/m53menlo.h
include/configs/meesc.h
include/configs/meson64.h
include/configs/microblaze-generic.h
include/configs/mv-common.h
include/configs/mvebu_armada-37xx.h
include/configs/mvebu_armada-8k.h
include/configs/mx51evk.h
include/configs/mx53cx9020.h
include/configs/mx53loco.h
include/configs/mx6cuboxi.h
include/configs/nitrogen6x.h
include/configs/nokia_rx51.h
include/configs/omap3_beagle.h
include/configs/omap3_logic.h
include/configs/opos6uldev.h
include/configs/ot1200.h
include/configs/platinum.h
include/configs/qemu-arm.h
include/configs/rk3036_common.h
include/configs/rk3188_common.h
include/configs/rk322x_common.h
include/configs/rk3288_common.h
include/configs/rpi.h
include/configs/siemens-am33x-common.h
include/configs/socfpga_dbm_soc1.h
include/configs/socfpga_vining_fpga.h
include/configs/socrates.h
include/configs/strider.h
include/configs/sunxi-common.h
include/configs/tbs2910.h
include/configs/tegra-common-post.h
include/configs/theadorable-x86-common.h
include/configs/theadorable.h
include/configs/topic_miami.h
include/configs/turris_mox.h
include/configs/xpedite517x.h
include/configs/xpedite520x.h
include/configs/xpedite537x.h
include/configs/xpedite550x.h
include/configs/zmx25.h
include/configs/zynq-common.h

index 7640d76..b37f3a8 100644 (file)
 
 #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"
index 0da34d0..0c2df7e 100644 (file)
                                /* 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"
index cacd799..e9a9da3 100644 (file)
@@ -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 */
 
index c2c5c1f..1b9dafa 100644 (file)
@@ -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 */
 
index b7a7ec5..d7af4f9 100644 (file)
@@ -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;"
 
 /*
index 841f361..0485e7a 100644 (file)
@@ -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
index cc28924..648a4db 100644 (file)
@@ -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};"    \
index 05ebb7d..76dc387 100644 (file)
@@ -37,6 +37,7 @@
                        "run manage_userdata; "
 
 /* Enable PREBOOT variable */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 /* Set ARP_TIMEOUT to 500ms */
index 0f29384..0a8d41b 100644 (file)
@@ -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 */
index 2e8dda8..7b9640f 100644 (file)
                        "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) \
index 94aa273..1978074 100644 (file)
@@ -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 */
index 3affdb0..f0f460a 100644 (file)
 #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                                              \
index f7bad8e..d3a4a61 100644 (file)
@@ -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 */
index 7269c42..2b44437 100644 (file)
@@ -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"
 
index 02ceb4c..aec5d61 100644 (file)
 
 /* Miscellaneous configurable options */
 #define CONFIG_HWCONFIG
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 /* Memory configuration */
index 6e6c171..31ce410 100644 (file)
@@ -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                                       \
index b1d01c5..8bc8e00 100644 (file)
 #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"
index e98dbfb..0fe83be 100644 (file)
 /*
  * Extra Environments
  */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT         "run try_bootscript"
 #define CONFIG_HOSTNAME                "m53menlo"
 
index a1fd5f6..6cf8c67 100644 (file)
@@ -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 */
 
 /*
index d82a674..7ced667 100644 (file)
@@ -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"
index d1ab40e..f99bd71 100644 (file)
 /* 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" \
index a803093..6ee0443 100644 (file)
@@ -38,6 +38,7 @@
 #endif
 
 /* auto boot */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 /*
index 10b94f4..dbedad1 100644 (file)
@@ -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, \
index b28f3b9..2931014 100644 (file)
@@ -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, \
index f5fd01d..8e66a2b 100644 (file)
@@ -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
index ab61a07..fb57a21 100644 (file)
 
 /* Framebuffer and LCD */
 #define CONFIG_IMX_VIDEO_SKIP
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 #endif /* __CONFIG_H */
index 4f17908..6eca8b6 100644 (file)
 #endif
 
 /* Framebuffer and LCD */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 #define CONFIG_VIDEO_BMP_RLE8
 #define CONFIG_SPLASH_SCREEN
index 7b4ae21..cde8fa2 100644 (file)
@@ -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; "                  \
index afaa908..3709fa6 100644 (file)
@@ -67,6 +67,7 @@
 #define CONFIG_IMX_HDMI
 #define CONFIG_IMX_VIDEO_SKIP
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                 ""
 
 #ifdef CONFIG_CMD_MMC
index d9f4bdc..43dfeea 100644 (file)
@@ -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;" \
index a2a6be7..0bf2df2 100644 (file)
@@ -58,6 +58,7 @@
 
 /* TWL4030 LED Support */
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                  "usb start"
 
 #define MEM_LAYOUT_ENV_SETTINGS \
index 1fbd371..8b1773e 100644 (file)
@@ -60,6 +60,7 @@
 
 /* Environment information */
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT \
        "setenv preboot;"                                               \
        "saveenv;"
index e0c76ff..d7dd77e 100644 (file)
@@ -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"
 
index 925e7ae..307797d 100644 (file)
@@ -77,6 +77,7 @@
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
 #endif
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                 ""
 
 /* Thermal support */
index d1ebaf5..ced843f 100644 (file)
 #define CONFIG_BOOTCOMMAND                     "run bootubi_scr"
 
 /* Miscellaneous configurable options */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 /* MTD/UBI/UBIFS config */
index 35e3c5a..afbf7a8 100644 (file)
@@ -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" \
index 73be079..5f864fd 100644 (file)
@@ -56,6 +56,7 @@
        BOOTENV
 #endif
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 #endif
index 92524b0..455d284 100644 (file)
@@ -61,6 +61,7 @@
 
 #endif /* CONFIG_SPL_BUILD */
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 #endif
index 9582cdf..4489b21 100644 (file)
@@ -56,6 +56,7 @@
        BOOTENV
 #endif
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 #endif
index da10e29..0a66b07 100644 (file)
@@ -70,6 +70,7 @@
        BOOTENV
 #endif
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 #endif
index f76c7d1..0a612a6 100644 (file)
@@ -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 */
index c07814f..f1ce7a0 100644 (file)
 /* UBI Support */
 
 /* Commen environment */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 #define COMMON_ENV_DFU_ARGS    "dfu_args=run bootargs_defaults;" \
                                "setenv bootargs ${bootargs};" \
index fc1db24..9e0d5d4 100644 (file)
@@ -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
index 5416c4b..7fc1a95 100644 (file)
@@ -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}) => \" ; "  \
index 7d266d1..ee3cf87 100644 (file)
 #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"
index 8b942e3..525b548 100644 (file)
@@ -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                                       \
index 7be94ee..7d92c21 100644 (file)
@@ -286,6 +286,7 @@ extern int soft_i2c_gpio_scl;
 #endif
 
 #ifdef CONFIG_USB_KEYBOARD
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 #endif
 
index a753d41..c935577 100644 (file)
@@ -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 " \
index 9685ee5..f192187 100644 (file)
@@ -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 ""
index e0a033b..ac7ee2e 100644 (file)
@@ -13,6 +13,7 @@
 
 #define CONFIG_SYS_MONITOR_LEN         (1 << 20)
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 #define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
index 6d41d18..d289784 100644 (file)
@@ -47,6 +47,7 @@
 
 #define PHY_ANEG_TIMEOUT       8000    /* PHY needs a longer aneg time */
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 /* Keep device tree and initrd in lower memory so the kernel can access them */
index 69aa79b..3d48ab2 100644 (file)
@@ -79,6 +79,7 @@
 # define EXTRA_ENV_USB
 #endif
 
+#define CONFIG_USE_PREBOOT
 #undef CONFIG_PREBOOT
 
 #undef CONFIG_EXTRA_ENV_SETTINGS
index 0de40ed..fc0fe15 100644 (file)
@@ -21,6 +21,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, \
index 1ef803b..710bcae 100644 (file)
@@ -472,6 +472,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  */
 #define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
 #define CONFIG_LOADADDR                0x1000000       /* default location for tftp and bootm */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                         /* enable preboot variable */
 #define CONFIG_INTEGRITY                       /* support booting INTEGRITY OS */
 
index 5737cfe..ee22042 100644 (file)
  */
 #define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
 #define CONFIG_LOADADDR                0x1000000       /* default location for tftp and bootm */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                         /* enable preboot variable */
 #define CONFIG_INTEGRITY                       /* support booting INTEGRITY OS */
 #define CONFIG_INTERRUPTS              /* enable pci, srio, ddr interrupts */
index 0a87f22..c33a6e0 100644 (file)
@@ -322,6 +322,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  */
 #define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
 #define CONFIG_LOADADDR                0x1000000       /* default location for tftp and bootm */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                         /* enable preboot variable */
 #define CONFIG_INTEGRITY                       /* support booting INTEGRITY OS */
 
index 0389874..f42987c 100644 (file)
@@ -320,6 +320,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  */
 #define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
 #define CONFIG_LOADADDR                0x1000000       /* default location for tftp and bootm */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT                         /* enable preboot variable */
 #define CONFIG_INTEGRITY                       /* support booting INTEGRITY OS */
 
index c8b6161..bc94192 100644 (file)
@@ -98,6 +98,7 @@
 #define CONFIG_SYS_MEMTEST_START       (PHYS_SDRAM + (512*1024))
 #define CONFIG_SYS_MEMTEST_END         (PHYS_SDRAM + PHYS_SDRAM_SIZE)
 
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT  ""
 
 
index 62fbf88..364ffbc 100644 (file)
 #define CONFIG_ENV_OVERWRITE
 
 /* enable preboot to be loaded before CONFIG_BOOTDELAY */
+#define CONFIG_USE_PREBOOT
 #define CONFIG_PREBOOT
 
 /* Boot configuration */