[OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

Andreas Oberritter obi at opendreambox.org
Tue Sep 12 14:45:31 UTC 2017


Hi Otavio,

On Tue, 12 Sep 2017 10:45:51 -0300
Otavio Salvador <otavio at ossystems.com.br> wrote:

> +do_configure_devicetree() {
> +	if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
> +		if echo ${KERNEL_IMAGETYPE_FOR_MAKE} | grep -q 'zImage'; then
> +			config="${B}/.config"
> +			if ! grep -q 'CONFIG_ARM_APPENDED_DTB=y' $config; then
> +				bbwarn 'CONFIG_ARM_APPENDED_DTB is NOT enabled in the kernel. Enabling it to allow the kernel to boot with the Device Tree appended!'
> +				sed -i "/CONFIG_ARM_APPENDED_DTB[ =]/d" $config
> +				echo "CONFIG_ARM_APPENDED_DTB=y" >> $config
> +				echo "# CONFIG_ARM_ATAG_DTB_COMPAT is not set" >> $config

what about CONFIG_MIPS_APPENDED_DTB?

Can we ever make sure to cover all relevant architectures?

Regards,
Andreas

> +			fi
> +		else
> +			bberror 'The KERNEL_DEVICETREE_BUNDLE requires the KERNEL_IMAGETYPE to contain zImage.'
> +		fi
> +	fi
> +}




More information about the Openembedded-core mailing list