diff --git a/common/Makefile b/common/Makefile index e6e2efb..7f5bdb7 100644 --- a/common/Makefile +++ b/common/Makefile @@ -23,9 +23,9 @@ $(obj)/startup.o: include/uboot_default_env.h $(obj)/env.o: include/uboot_default_env.h -ENV_FILES := $(shell find $(CONFIG_DEFAULT_ENVIRONMENT_PATH)) +ENV_FILES := $(shell find $(srctree)/$(CONFIG_DEFAULT_ENVIRONMENT_PATH)) endif # ifdef CONFIG_DEFAULT_ENVIRONMENT include/uboot_default_env.h: $(ENV_FILES) - $(Q)scripts/ubootenv -s $(CONFIG_DEFAULT_ENVIRONMENT_PATH) uboot_default_env + $(Q)scripts/ubootenv -s $(srctree)/$(CONFIG_DEFAULT_ENVIRONMENT_PATH) uboot_default_env $(Q)cat uboot_default_env | scripts/bin2c default_environment > $@