mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 12:47:30 +00:00
from a launchpad-buildd-like setup, which passes ARCH and SUBARCH in the environment, because auto/config and auto/build both rely on this. So don't scatter dpkg --print-architecture calls throughout, especially when many of these are not cross-build-aware.
21 lines
491 B
Bash
21 lines
491 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $ARCH 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
|
|
# will read only 4 header bytes if its a single
|
|
# line but our header has 5 byte. by having two
|
|
# entries like this in the config it magically
|
|
# switches to the 5 byte header type
|
|
/boot/uboot/uboot.env 0x0000 0x20000
|
|
/boot/uboot/uboot.env 0x0000 0x20000
|
|
EOF
|
|
;;
|
|
esac
|