]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
include: env: phytec: k3: Add deprecation warning to legacy boot flow
authorWadim Egorov <w.egorov@phytec.de>
Wed, 30 Jul 2025 15:42:17 +0000 (17:42 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 11 Aug 2025 20:53:56 +0000 (14:53 -0600)
We switched towards standard boot with still keeping a fallback
using legacy boot command alive. Add a deprecation warning to
make it more clear that we will remove it in future versions.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
include/env/phytec/k3_mmc.env
include/env/phytec/k3_net.env
include/env/phytec/k3_spi.env

index 3f67e312f6597455a437dd52433b212ecbbc87c1..95d0204b6dade19d26aa73ca1f1d5d7f37d508ef 100644 (file)
@@ -14,7 +14,8 @@ mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
        ${optargs}
 mmcloadimage=load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} Image
 mmcloadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
-mmcboot=if test ${doraucboot} = 1; then run raucinit; fi;
+mmcboot=echo DEPRECATION WARNING: mmcboot will be removed in future versions. Use standard boot instead.;
+       if test ${doraucboot} = 1; then run raucinit; fi;
        run mmcargs;
        mmc dev ${mmcdev};
        mmc rescan;
index 4d5c703cae99f8616374fd8a4936775f2c682b5b..669787928a242b541f5e75ee27dab7b2e53b2b23 100644 (file)
@@ -12,7 +12,8 @@ netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp rw
        nfsroot=${serverip}:${nfsroot},vers=4,tcp ${optargs}
 netloadimage=${get_cmd} ${kernel_addr_r} ${serverip}:/Image
 netloadfdt=${get_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile}
-netboot=run netargs;
+netboot=echo DEPRECATION WARNING: netboot will be removed in future versions. Use standard boot instead.;
+       run netargs;
        setenv autoload no;
        dhcp;
        run netloadimage;
index 8e9cfce3b4cec90e282426d322ae5e2a7e9641cd..28fe69b4e57a106f51d05c26c62e44f5dc18f727 100644 (file)
@@ -10,7 +10,9 @@ spiargs=setenv bootargs console=${console} earlycon=${earlycon} ${optargs}
 spiloadimage=sf read ${kernel_addr_r} ${spi_image_addr} ${size_kern}
 spiloadfdt=sf read ${fdt_addr_r} ${spi_fdt_addr} ${size_fdt}
 spiloadramdisk=sf read ${ramdisk_addr_r} ${spi_ramdisk_addr} ${size_fs}
-spiboot=run spiargs;
+
+spiboot=echo DEPRECATION WARNING: spiboot will be removed in future versions. Use standard boot instead.;
+       run spiargs;
        sf probe;
        run spiloadimage;
        run spiloadfdt;