From 040e4f031f2dc581c48253405da9036def035b68 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 23 Jul 2018 22:13:19 +0200 Subject: dtc-145: Deploy renamed binary only and add new class dtc-145-native is used by older U-Boot recipes. U-Boot only depends on the native dtc binary. So, to not clash with files from the regular dtc native build do only install the dtc binary renamed to dtc-145. Also, create a new class to handle with dtc-145 dependency. Signed-off-by: Max Krummenacher Signed-off-by: Fabio Berton --- classes/dtc-145.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 classes/dtc-145.bbclass (limited to 'classes') diff --git a/classes/dtc-145.bbclass b/classes/dtc-145.bbclass new file mode 100644 index 00000000..d4a30711 --- /dev/null +++ b/classes/dtc-145.bbclass @@ -0,0 +1,7 @@ +# Use this class for U-Boot 2017.03 or older. + +DEPENDS_append = " dtc-145-native" + +do_configure_prepend () { + sed -i -e 's/^DTC[[:space:]]*=[[:space:]]*dtc[[:space:]]*$/DTC = dtc-145/' ${S}/Makefile +} -- cgit v1.2.3-54-g00ecf