Atlas - makefile.patch
Home / ext / kconfiglib Lines: 1 | Size: 1437 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1From 93daf46f309b0c8f86149ef58c4906387d054c22 Mon Sep 17 00:00:00 2001 2From: Ulf Magnusson <[email protected]> 3Date: Tue, 9 Jun 2015 13:01:34 +0200 4Subject: [PATCH] Kconfiglib scripts/kconfig/Makefile patch 5 6--- 7 scripts/kconfig/Makefile | 29 +++++++++++++++++++++++++++++ 8 1 file changed, 29 insertions(+) 9 10diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile 11index 3f327e21f60e..8b7dd1292005 100644 12--- a/scripts/kconfig/Makefile 13+++ b/scripts/kconfig/Makefile 14@@ -27,2 +27,31 @@ gconfig: $(obj)/gconf 15 16+PHONY += scriptconfig iscriptconfig kmenuconfig guiconfig dumpvarsconfig 17+ 18+PYTHONCMD ?= python 19+kpython := PYTHONPATH=$(srctree)/Kconfiglib:$$PYTHONPATH $(PYTHONCMD) 20+ 21+ifneq ($(filter scriptconfig,$(MAKECMDGOALS)),) 22+ifndef SCRIPT 23+$(error Use "make scriptconfig SCRIPT=<path to script> [SCRIPT_ARG=<argument>]") 24+endif 25+endif 26+ 27+scriptconfig: 28+ $(Q)$(kpython) $(SCRIPT) $(Kconfig) $(if $(SCRIPT_ARG),"$(SCRIPT_ARG)") 29+ 30+iscriptconfig: 31+ $(Q)$(kpython) -i -c \ 32+ "import kconfiglib; \ 33+ kconf = kconfiglib.Kconfig('$(Kconfig)'); \ 34+ print('A Kconfig instance \'kconf\' for the architecture $(ARCH) has been created.')" 35+ 36+kmenuconfig: 37+ $(Q)$(kpython) $(srctree)/Kconfiglib/menuconfig.py $(Kconfig) 38+ 39+guiconfig: 40+ $(Q)$(kpython) $(srctree)/Kconfiglib/guiconfig.py $(Kconfig) 41+ 42+dumpvarsconfig: 43+ $(Q)$(kpython) $(srctree)/Kconfiglib/examples/dumpvars.py $(Kconfig) 44+ 45 menuconfig: $(obj)/mconf 46-- 472.20.1 48 49[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.