From b98d30a2b3d5f72ea666444115c8dea320998186 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 23 Mar 2014 14:33:37 -0700 Subject: [PATCH] Fix generating luma images when cross-compiling. --- src/modules/lumas/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/lumas/Makefile b/src/modules/lumas/Makefile index ed514822..a9b802a1 100644 --- a/src/modules/lumas/Makefile +++ b/src/modules/lumas/Makefile @@ -5,6 +5,12 @@ all: luma create_lumas @./create_lumas luma: luma.c +# When cross-compiling, use the host OS compiler to build the luma +# binary because the files are generated at build time. +# Strips the CROSS prefix from the C compiler variable. +ifdef CROSS + $(subst $(CROSS),,$(CC)) -o $@ luma.c +endif create_lumas: -- 2.39.2