configure /etc/fw_env.config for all arm arches on snappy

This commit is contained in:
Oliver Grawert 2015-12-10 15:05:29 +01:00
parent 822952f00e
commit ef219ff9ee
2 changed files with 12 additions and 4 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
livecd-rootfs (2.363) UNRELEASED; urgency=medium
* configure /etc/fw_env.config for all arm arches on snappy
-- Oliver Grawert <ogra@ubuntu.com> Thu, 10 Dec 2015 15:04:41 +0100
livecd-rootfs (2.362) xenial; urgency=medium
* make sure u-boot-tools is installed on snappy arm64

View File

@ -2,9 +2,10 @@
set -e
if [ "$(dpkg --print-architecture)" = "armhf" ]; then
mkdir -p /boot/uboot
cat > /etc/fw_env.config <<EOF
case "$(dpkg --print-architecture)" in
arm*)
mkdir -p /boot/uboot
cat > /etc/fw_env.config <<EOF
# snappy u-boot env config
# its crucial that we have the two entries here
# u-boot/tools/env/fw_env.c
@ -15,4 +16,5 @@ if [ "$(dpkg --print-architecture)" = "armhf" ]; then
/boot/uboot/uboot.env 0x0000 0x20000
/boot/uboot/uboot.env 0x0000 0x20000
EOF
fi
;;
esac