From d21fbaa987b54d8f18232b452e87e4f26bbed7a8 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Thu, 9 Mar 2017 23:59:31 +1000 Subject: dtc: Only build libfdt for mingw32 Whilst building libfdt on mingw32 is functional, building dtc for mingw32 is not. This is due to dtc relying on certain POSIX functions as well as not handling the MSVCRT printf formatting. This change enables building and installing libfdt only for mingw32, disabling the build of device-tree-compiler itself. Signed-off-by: Nathan Rossi --- recipes-core/dtc/dtc_%.bbappend | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes-core/dtc/dtc_%.bbappend diff --git a/recipes-core/dtc/dtc_%.bbappend b/recipes-core/dtc/dtc_%.bbappend new file mode 100644 index 0000000..1406937 --- /dev/null +++ b/recipes-core/dtc/dtc_%.bbappend @@ -0,0 +1,16 @@ + +do_configure_append_mingw32 () { + # don't try to build the other dtc components when installing libs + sed -i 's/install-lib: all/install-lib: libfdt/g' ${S}/Makefile +} + +do_compile_mingw32 () { + oe_runmake libfdt +} + +do_install_mingw32 () { + oe_runmake install-lib install-includes +} + +RDEPENDS_${PN}-misc_remove_mingw32 = "bash" + -- cgit v1.2.3-54-g00ecf