blob: 2a5111603c9713d984b97c81bf36ae5d2bd7d99a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
RPI_DOM0_MEM ??= "256M"
RPI_DEBUG_XEN_ARGS ??= "sync_console bootscrub=0"
SRC_URI += "file://boot.cmd.xen.in"
# If the distro is Xen enabled, override the default boot.cmd.in with the
# alternative boot.cmd.xen.in from this layer, with variables subsitution here
do_compile_append() {
if [ "${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'yes', 'no', d)}" = "yes" ]; then
sed -e 's/@@RPI_DOM0_MEM@@/${RPI_DOM0_MEM}/' \
-e 's/@@RPI_DEBUG_XEN_ARGS@@/${RPI_DEBUG_XEN_ARGS}/' \
"${WORKDIR}/boot.cmd.xen.in" > "${WORKDIR}/boot.cmd"
mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
fi
}
|