#!/bin/sh
set -ex

mkdir -p /target/boot
wget -Y off -O /target/boot/microcode.cpio http://osstest.xs.citrite.net/~osstest/osstest/lake-frog_microcode-cpio

mkdir -p /target/usr/sbin
wget -Y off -O /target/usr/sbin/osstest-initramfs-gzip http://osstest.xs.citrite.net/~osstest/osstest/lake-frog_microcode-gzip
chmod +x /target/usr/sbin/osstest-initramfs-gzip

mkdir -p /target/etc/initramfs-tools/conf.d/
echo COMPRESS=/usr/sbin/osstest-initramfs-gzip >> \
	/target/etc/initramfs-tools/conf.d/osstest-initramfs-gzip.conf
