]> git.sur5r.net Git - u-boot/blobdiff - env/ext4.c
env: Create a location driver for each location
[u-boot] / env / ext4.c
index 7bb4ce7cffa1e88af380a71da3038c4c91780bee..c6a84925d99186028ab54237606c063d9bf19e3a 100644 (file)
@@ -127,3 +127,11 @@ void env_relocate_spec(void)
 err_env_relocate:
        set_default_env(NULL);
 }
+
+U_BOOT_ENV_LOCATION(ext4) = {
+       .location       = ENVL_EXT4,
+       .get_char       = env_get_char_spec,
+       .load           = env_relocate_spec,
+       .save           = env_save_ptr(saveenv),
+       .init           = env_init,
+};