blob: 86eeb28ed46fbbdc6e8f1a31fd63858c9ccdb90d [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
DESCRIPTION="Das U-Boot boot scripts"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="-* arm"
IUSE=""
S=${WORKDIR}
src_compile() {
local base="${FILESDIR}"/boot.scr
sed 's/\${KERNEL_PART}/2/g;s/\${ROOT_PART}/3/g' "${base}" >boot-A.scr || die
sed 's/\${KERNEL_PART}/4/g;s/\${ROOT_PART}/5/g' "${base}" >boot-B.scr || die
local script
for script in boot-{A,B}.scr; do
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
-n "${script}" -d "${script}" "${script}.uimg" >/dev/null || die
done
}
src_install() {
insinto /boot
doins boot-{A,B}.scr.uimg
}