mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 08:21:27 +01:00
The include file <command.h> does not need anything from <env.h>. Furthermore, include/env.h itself includes other headers which can lead to longer indirect inclusion paths. To prepare to remove <env.h> from <command.h> fix all of the places which had relied on this indirect inclusion to instead include <env.h> directly. Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org> # android, bcb Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> # spawn Signed-off-by: Tom Rini <trini@konsulko.com>
21 lines
369 B
C
21 lines
369 B
C
#include <command.h>
|
|
#include <env.h>
|
|
#include <env_attr.h>
|
|
#include <test/env.h>
|
|
#include <test/ut.h>
|
|
|
|
static int env_test_fdt_import(struct unit_test_state *uts)
|
|
{
|
|
const char *val;
|
|
|
|
val = env_get("from_fdt");
|
|
ut_assertnonnull(val);
|
|
ut_asserteq_str("yes", val);
|
|
|
|
val = env_get("fdt_env_path");
|
|
ut_assertnull(val);
|
|
|
|
return 0;
|
|
}
|
|
ENV_TEST(env_test_fdt_import, 0);
|