1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-05-08 20:40:20 +00:00

lego-ev3: Add support for LEGO Mindstorms EV3 (AM1808)

Thanks for the feedback! Updated patch below. Changes:
 - Change SERIAL_CONSOLE to new SERIAL_CONSOLES format.
 - Move SPL_BINARY variable into lego-ev3 machine config
 - Check for KERNEL_DEVICETREE_BUNDLE before uImage manipulation.
 - Fix line wrapping errors introduced by MUA

Signed-off-by: Jeremy Grosser <jeremy@synack.me>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Jeremy Grosser
2018-10-18 13:35:23 +00:00
committed by Denys Dmytriyenko
parent fab8b9c033
commit e3e20300d4
4 changed files with 50 additions and 0 deletions
@@ -0,0 +1,26 @@
# Upstream kernel-devicetree.bbclass only supports bundling the DTB with
# zImage. The factory u-boot on lego-ev3 EEPROM only supports uImage, so we
# append the DTB to the final uImage here.
do_deploy_append() {
if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
install -d ${DEPLOYDIR}
for dtbf in ${KERNEL_DEVICETREE}; do
dtb=`normalize_dtb "$dtbf"`
dtb_ext=${dtb##*.}
dtb_base_name=`basename $dtb .$dtb_ext`
for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do
if [ "$type" = "uImage" ]; then
cat ${D}/${KERNEL_IMAGEDEST}/$type \
${DEPLOYDIR}/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \
> ${DEPLOYDIR}/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin
ln -sf $type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin \
${DEPLOYDIR}/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext.bin
cat ${D}/${KERNEL_IMAGEDEST}/$type \
${DEPLOYDIR}/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \
> ${DEPLOYDIR}/$type
fi
done
done
fi
}
@@ -8,6 +8,7 @@ inherit kernel
require recipes-kernel/linux/setup-defconfig.inc
require recipes-kernel/linux/cmem.inc
require recipes-kernel/linux/ti-uio.inc
require recipes-kernel/linux/bundle-devicetree.inc
# Look in the generic major.minor directory for files
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.14:"