Skip to contentSkip to conversation

Makefile: add savedefconfig target.

PATCH In review Avery Pennarun 2 participants 2 messages Apr 30, 2014 – May 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: add savedefconfig target.

This writes a file called 'defconfig' which contains only the deltas from the default configuration. It's suitable for use as an input defconfig file for later builds.

---
 backport/Makefile.real | 5 +++++
 1 file changed, 5 insertions(+)
backport/Makefile.real +5 -0
index b010dd7..f60d5ca 100644
@@ -32,6 +32,11 @@ usedefconfig:
 	@$(MAKE) -C kconf conf
 	@./kconf/conf --defconfig=defconfig Kconfig
 
+.PHONY: savedefconfig
+savedefconfig:
+	@$(MAKE) -C kconf conf
+	@./kconf/conf --savedefconfig=defconfig Kconfig
+
 defconfig-%::
 	@$(MAKE) -C kconf conf
 	@./kconf/conf --defconfig=defconfigs/$(@:defconfig-%=%) Kconfig
Signature · 1 line
1.9.1.423.g4596e3a
#1 lore raw
Quoted 5 lines · Avery Pennarun

This writes a file called 'defconfig' which contains only the deltas from the default configuration. It's suitable for use as an input defconfig file for later builds.

Neat, thanks, applieds!

Luis