[meta-xilinx] [PATCH 2/2] device-tree: Add C pre-process for dts

Nathan Rossi nathan at nathanrossi.com
Tue Apr 12 06:34:56 PDT 2016


On Mon, Apr 11, 2016 at 11:13 PM, Jason Wu <jason.wu.misc at gmail.com> wrote:
> Signed-off-by: Jason Wu <jason.wu.misc at gmail.com>

Applied.

I have some some follow on patches to this to update and fix up stuff
for this recipe, will send them out shortly.

Thanks,
Nathan

>
> diff --git a/recipes-bsp/device-tree/device-tree.bb b/recipes-bsp/device-tree/device-tree.bb
> index c5dd2a6..3733754 100644
> --- a/recipes-bsp/device-tree/device-tree.bb
> +++ b/recipes-bsp/device-tree/device-tree.bb
> @@ -44,9 +44,13 @@ do_compile() {
>                 DTS_NAME=`basename -s .dts ${DTS_FILE}`
>                 for d in ${KERNEL_DTS_INCLUDE}; do
>                         dtc_include="${dtc_include} -i $d"
> +                       cpp_include="${cpp_include} -I${d}"
>                 done
> +               ${CPP} -E -nostdinc -Ulinux -I${WORKDIR}/devicetree \
> +                       ${cpp_include} -x assembler-with-cpp \
> +                       -o ${DTS_FILE}.pp ${DTS_FILE}
>                 dtc -I dts -O dtb ${DEVICETREE_FLAGS} -i ${WORKDIR}/devicetree \
> -                       ${dtc_include} -o ${DTS_NAME}.dtb ${DTS_FILE}
> +                       ${dtc_include} -o ${DTS_NAME}.dtb ${DTS_FILE}.pp
>         done
>  }
>
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list