Commit b462d0cc authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

ENV_DEVICE may differ from ROOT_DEVICE

parent b03eb82e
......@@ -20,6 +20,7 @@ opiplus2e: opiplus2e-boot-cmd opiplus2e-fw_env.config
ln -sf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_OPIPLUS2E" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -69,6 +70,7 @@ opiplus2e-mender: opiplus2e-boot-cmd-mender opiplus2e-fw_env.config-mender
ln -sf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_OPIPLUS2E_MENDER" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -112,6 +114,7 @@ opipcplus: opipcplus-boot-cmd opipcplus-fw_env.config
ln -sf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_OPIPCPLUS" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -161,6 +164,7 @@ opipcplus-mender: opipcplus-boot-cmd-mender opipcplus-fw_env.config-mender
ln -sf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_OPIPCPLUS_MENDER" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -196,6 +200,7 @@ terasicde10standard: terasicde10standard-boot-cmd terasicde10standard-fw_env.con
ln -sf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_TERASICDE10STANDARD" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
rm -rf u-boot-2020.04
terasicde10standard-boot-cmd:
......@@ -232,6 +237,7 @@ terasicde10standard-mender: terasicde10standard-boot-cmd-mender terasicde10stand
ln -sf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_TERASICDE10STANDARD_MENDER" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
rm -rf u-boot-2020.04
terasicde10standard-boot-cmd-mender:
......@@ -272,6 +278,7 @@ rpi3b: rpi3b-boot-cmd rpi3b-fw_env.config rpi3b-config
@echo "$$FW_ENV_RPI3" > /etc/fw_env.config
dd if=/dev/zero of=/uboot/uboot.env bs=1024 count=16
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -327,6 +334,7 @@ rpi3b-mender: rpi3b-boot-cmd-mender rpi3b-fw_env.config-mender rpi3b-config-mend
ln -svf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_RPI3_MENDER" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -389,6 +397,7 @@ amlogics905x: amlogics905x-boot-cmd amlogics905x-fw_env.config
@echo "$$FW_ENV_AMLOGICS905X" > /etc/fw_env.config
dd if=/dev/zero of=/uboot/uboot.env bs=1024 count=16
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......@@ -439,6 +448,7 @@ amlogics905x-mender: amlogics905x-boot-cmd-mender amlogics905x-fw_env.config-men
ln -svf /sbin/fw_printenv /sbin/fw_setenv
@echo "$$FW_ENV_AMLOGICS905X_MENDER" > /etc/fw_env.config
/sbin/fw_setenv reset
sed -i 's/$(ROOT_DEVICE)/$(ENV_DEVICE)/' /etc/fw_env.config
umount /dev/$(DISK)1
rm -rf u-boot-2020.04
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment