Place environment in U-Boot

This commit is contained in:
Rodrigo Arias 2024-08-30 11:54:45 +02:00
parent 93014c68b8
commit 8a123d93bf

View File

@ -221,6 +221,15 @@
./uboot-debug-ext-interrupts.patch ./uboot-debug-ext-interrupts.patch
./uboot-exception-extras.patch ./uboot-exception-extras.patch
]; ];
# Copy our environment to board/emulation/qemu-riscv/environ.env
preConfigure = ''
cp ${final.uboot-env} board/emulation/qemu-riscv/environ.env
'';
postConfigure = ''
echo --------------------------- generated config:
cat .config
echo ---------------------------
'';
# #
# CONFIG_SERIAL_PRESENT=n # CONFIG_SERIAL_PRESENT=n
# CONFIG_SYS_NS16550=n # CONFIG_SYS_NS16550=n
@ -248,6 +257,7 @@
CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMTEST=y
CONFIG_CMD_EXCEPTION=y CONFIG_CMD_EXCEPTION=y
CONFIG_CMD_TIMER=y CONFIG_CMD_TIMER=y
CONFIG_ENV_SOURCE_FILE="environ"
'' ''
# # Enable debug logs # # Enable debug logs
# + # +
@ -259,6 +269,7 @@
# '' # ''
; ;
extraMakeFlags = [ extraMakeFlags = [
"V=1"
#"KCPPFLAGS=-DLOG_DEBUG" #"KCPPFLAGS=-DLOG_DEBUG"
#"EXT_DTB=${final.ox-dtb}" #"EXT_DTB=${final.ox-dtb}"
]; ];