From 61d678727cb4ec73a6424d56f4a04894cf65b0d8 Mon Sep 17 00:00:00 2001 From: Baikal Electronics Date: Mon, 26 Sep 2022 03:05:16 +0300 Subject: [PATCH] Replace DATE with more representative DATETIME variable --- meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc b/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc index 34d3d47..9116dcc 100644 --- a/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc +++ b/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc @@ -8,8 +8,10 @@ ENV_SIZE = "0x10000" UBOOT_DEF_ENV = "${MACHINE}.def-2022" do_build_baikal_environment () { - sed -e "s/build_date=.*$/build_date=${DATE}/; s/build_target=.*$/build_target=${MACHINE}/; s/^\s*#.*$//; /^$/d; " \ + sed -e "s/build_date=.*$/build_date=${DATETME}/; s/build_target=.*$/build_target=${MACHINE}/; s/^\s*#.*$//; /^$/d; " \ ${BOOTROM_DIR}/${UBOOT_DEF_ENV} > ${WORKDIR}/${MACHINE}.env uboot-mkenvimage -s ${ENV_SIZE} -o ${WORKDIR}/${MACHINE}.bin ${WORKDIR}/${MACHINE}.env } addtask build_baikal_environment before do_install after do_compile + +do_build_baikal_environment[vardepsexclude] = "DATETIME" -- 2.39.5