]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/env_callback.h
MIPS: start.S: use symbol __image_copy_end for U-Boot image relocation
[karo-tx-uboot.git] / include / env_callback.h
index 47fdc6fa9103e3dec208dc3311f45dde08ad8d8e..c583120c1c4aea220389cbd3eedfb515a2fabdea 100644 (file)
@@ -68,8 +68,16 @@ void env_callback_init(ENTRY *var_entry);
  * when associated through the ".callbacks" environment variable, the callback
  * will be executed any time the variable is inserted, overwritten, or deleted.
  */
+#ifdef CONFIG_SPL_BUILD
+#define U_BOOT_ENV_CALLBACK(name, callback) \
+       static inline void _u_boot_env_noop_##name(void) \
+       { \
+               (void)callback; \
+       }
+#else
 #define U_BOOT_ENV_CALLBACK(name, callback) \
        ll_entry_declare(struct env_clbk_tbl, name, env_clbk, env_clbk) = \
        {#name, callback}
+#endif
 
 #endif /* __ENV_CALLBACK_H__ */