[RFC PATCH] kbuild: Allow specifying some base host CFLAGS

2017-10-13 Thread Douglas Anderson
that really knows what it's doing knows better than the kernel so KCFLAGS comes after the kernel's normal flags. One last note: I chose to add new variables rather than just having the build system try to pass HOSTCFLAGS in somehow (either through the environment or the command line) to avo

[PATCH v2 1/2] kbuild: Add a cache for generated variables

2017-10-04 Thread Douglas Anderson
already in our cache. The cache is stored in a format that it shouldn't need any invalidation since anything that might change should affect the "key" and any old cached value won't be used. Signed-off-by: Douglas Anderson --- Changes in v2: - Abstract at a different level (like sh

[PATCH v2 0/2] kbuild: Cache exploratory calls to the compiler

2017-10-04 Thread Douglas Anderson
Changes in v2: - Abstract at a different level (like shell-cached) per Masahiro Yamada - Include ld-version, which I missed the first time Douglas Anderson (2): kbuild: Add a cache for generated variables kbuild: Cache a few more calls to the compiler Documentation/kbuild/makefiles.txt | 21

[RFC PATCH 0/2] kbuild: Cache exploratory calls to the compiler

2017-09-26 Thread Douglas Anderson
ertain architectures you might need some extra escaping here and there. Douglas Anderson (2): kbuild: Add a cache for generated variables kbuild: Cache a few more calls to the compiler Documentation/kbuild/makefiles.txt | 21 ++ Makefile |

[RFC PATCH 1/2] kbuild: Add a cache for generated variables

2017-09-26 Thread Douglas Anderson
already in our cache. The cache is stored in a format that it shouldn't need any invalidation since anything that might change should affect the "key" and any old cached value won't be used. The cache will be cleaned by virtue of the ".o" suffix by a "make cl