#ifndef __BOOT_H #define __BOOT_H #include #include #ifdef CONFIG_FLEXIBLE_BOOTARGS const char *linux_bootargs_get(void); int linux_bootargs_overwrite(const char *bootargs); #else static inline const char *linux_bootargs_get(void) { return getenv("bootargs"); } static inline int linux_bootargs_overwrite(const char *bootargs) { return setenv("bootargs", bootargs); } #endif #endif /* __BOOT_H */