Generate TOOLCHAIN file during 'build' step#12
Conversation
|
|
||
| ifdef T_A | ||
| install: TOOLCHAIN | ||
| build: TOOLCHAIN |
There was a problem hiding this comment.
@anjohnson do you agree?
fyi. The TOOLCHAIN files from Base use buildInstall:. This TOOLCHAIN file is not installed, and so maybe should be different?
@JJL772 Out of curiosity, why not just |
|
For Yocto recipes the build and install steps are separate (though technically there's nothing wrong with doing all of the compilation & installing during the install step). This is pretty much the only time I use |
|
In However I would personally completely remove the diff --git a/configure/Makefile b/configure/Makefile
index d8b46c7..4bda617 100644
--- a/configure/Makefile
+++ b/configure/Makefile
@@ -7,11 +7,9 @@ CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
CFG += CONFIG_LINSTAT_VERSION
-include $(TOP)/configure/RULES
+TARGETS += TOOLCHAIN
-ifdef T_A
-install: TOOLCHAIN
+include $(TOP)/configure/RULES
TOOLCHAIN: toolchain.cpp
$(CXX) -E $< | grep '^LINSTAT_' > $@
-endif |
|
@mdavidsaver Yep, that change fixes the issue. Thanks! |
I'm not sure if this is the correct solution, but this fixes the
buildrule. Prior to this change,make buildandmake build.linux-x86_64would fail with: