blob: da40ac2ece2912c30a5ef53856e29505340e1bf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __BOOT_H
#define __BOOT_H
#include <of.h>
#include <environment.h>
#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 */
|