diff mbox

[04/12] kbuild: Avoid kconfig fragment defconfigs from having odd config order

Message ID 1299637966-18458-5-git-send-email-john.stultz@linaro.org
State Deferred
Headers show

Commit Message

John Stultz March 9, 2011, 2:32 a.m. UTC
Sort of a hack.

With the new kconfig framents, some config items may be defined
in a different order then usual. To preserve the normal order,
re-run sildentoldconfig after running defconfig.

CC: Jason Hui <jason.hui@linaro.org>
CC: patches@linaro.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 scripts/kconfig/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 320ac75..866dbca 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -130,6 +130,8 @@  $(old_defconfigs): %_defconfig: $(obj)/conf
 
 $(defconfigs): %_defconfig: $(obj)/conf
 	$(Q)$< --defconfig=/dev/null arch/$(SRCARCH)/configs/Kconfig.$*
+# use oldconfig reorder option properly
+	$(Q)$< --silentoldconfig $(Kconfig) > /dev/null
 
 # Help text used by make help
 help: