]> git.baikalelectronics.ru Git - openembedded-baikal.git/commitdiff
Replace DATE with more representative DATETIME variable
authorBaikal Electronics <support@baikalelectronics.ru>
Mon, 26 Sep 2022 00:05:16 +0000 (03:05 +0300)
committerBaikal Electronics <support@baikalelectronics.ru>
Mon, 26 Sep 2022 00:05:16 +0000 (03:05 +0300)
meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc

index 34d3d47a8381799ce4b0c08df6bac030d691b73a..9116dcc7f0d8b4f14ddef24ccde23a824517a2aa 100644 (file)
@@ -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"