]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/serial/serial-uclass.c
spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
[people/ms/u-boot.git] / drivers / serial / serial-uclass.c
index f360534683961c2e3391face53d5931b1b5bd984..9cae9fbd871a9a621e92851c27423b9e56f7bc80 100644 (file)
@@ -23,8 +23,8 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 static const unsigned long baudrate_table[] = CONFIG_SYS_BAUDRATE_TABLE;
 
-#ifndef CONFIG_SYS_MALLOC_F_LEN
-#error "Serial is required before relocation - define CONFIG_SYS_MALLOC_F_LEN to make this work"
+#if !CONFIG_VAL(SYS_MALLOC_F_LEN)
+#error "Serial is required before relocation - define CONFIG_$(SPL_)SYS_MALLOC_F_LEN to make this work"
 #endif
 
 static int serial_check_stdout(const void *blob, struct udevice **devp)