diff options
| author | Jason Wu <jason.wu.misc@gmail.com> | 2016-04-11 23:13:59 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-04-12 23:27:05 +1000 |
| commit | 3e5f94162160e1a6fcf4d1d063ebab050a074477 (patch) | |
| tree | d373b7f99c14606a6c623a7210f028d0d4bee6d7 | |
| parent | af63fc4926cc4685c338600d11ee01557bd8b249 (diff) | |
| download | meta-xilinx-3e5f94162160e1a6fcf4d1d063ebab050a074477.tar.gz | |
device-tree: Add C pre-process for dts
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
| -rw-r--r-- | recipes-bsp/device-tree/device-tree.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-bsp/device-tree/device-tree.bb b/recipes-bsp/device-tree/device-tree.bb index c5dd2a6b..3733754c 100644 --- a/recipes-bsp/device-tree/device-tree.bb +++ b/recipes-bsp/device-tree/device-tree.bb | |||
| @@ -44,9 +44,13 @@ do_compile() { | |||
| 44 | DTS_NAME=`basename -s .dts ${DTS_FILE}` | 44 | DTS_NAME=`basename -s .dts ${DTS_FILE}` |
| 45 | for d in ${KERNEL_DTS_INCLUDE}; do | 45 | for d in ${KERNEL_DTS_INCLUDE}; do |
| 46 | dtc_include="${dtc_include} -i $d" | 46 | dtc_include="${dtc_include} -i $d" |
| 47 | cpp_include="${cpp_include} -I${d}" | ||
| 47 | done | 48 | done |
| 49 | ${CPP} -E -nostdinc -Ulinux -I${WORKDIR}/devicetree \ | ||
| 50 | ${cpp_include} -x assembler-with-cpp \ | ||
| 51 | -o ${DTS_FILE}.pp ${DTS_FILE} | ||
| 48 | dtc -I dts -O dtb ${DEVICETREE_FLAGS} -i ${WORKDIR}/devicetree \ | 52 | dtc -I dts -O dtb ${DEVICETREE_FLAGS} -i ${WORKDIR}/devicetree \ |
| 49 | ${dtc_include} -o ${DTS_NAME}.dtb ${DTS_FILE} | 53 | ${dtc_include} -o ${DTS_NAME}.dtb ${DTS_FILE}.pp |
| 50 | done | 54 | done |
| 51 | } | 55 | } |
| 52 | 56 | ||
