summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-02-22 07:34:58 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-07 19:03:17 (GMT)
commitdbe3877285549d1cdc549826673cdf8f07cf154c (patch)
tree0f0c188389c9dd60da7307be452a5faf59562e35 /kconfig
parentd9d4d090265b56dc158b9ffa7a875d0a68f9c57f (diff)
Install ct-ng
Also, move kconfig.mk into the main driver - we'd want kconfig to be a sub-package so there's no sense in writing the installation framework for the ct-ng-specific fragment in an otherwise independent directory. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/Makefile.am4
-rw-r--r--kconfig/kconfig.mk68
2 files changed, 3 insertions, 69 deletions
diff --git a/kconfig/Makefile.am b/kconfig/Makefile.am
index 1b4a06c..413d944 100644
--- a/kconfig/Makefile.am
+++ b/kconfig/Makefile.am
@@ -1,7 +1,9 @@
## vim: set noet :
-## TBD install into lib/crosstool-ng/kconfig?
## TBD turn off program renaming for these? Or account for it in ct-ng script?
+transform = s,x,x,
+
+## TBD install into lib/crosstool-ng/kconfig? or move to libexec which seems more suitable
pkglibexec_PROGRAMS = conf nconf mconf
AM_LFLAGS = -L -Pzconf
diff --git a/kconfig/kconfig.mk b/kconfig/kconfig.mk
deleted file mode 100644
index c489c72..0000000
--- a/kconfig/kconfig.mk
+++ /dev/null
@@ -1,68 +0,0 @@
-# ===========================================================================
-# crosstool-NG configuration targets
-# These targets are used from top-level makefile
-
-#-----------------------------------------------------------
-# The configurators rules
-
-# Top file of crosstool-NG configuration
-export KCONFIG_TOP = $(CT_LIB_DIR)/config/config.in
-
-# We need CONF for savedefconfig in scripts/saveSample.sh
-export CONF := $(CT_LIB_DIR)/kconfig/conf
-MCONF := $(CT_LIB_DIR)/kconfig/mconf
-NCONF := $(CT_LIB_DIR)/kconfig/nconf
-
-# Used by conf/mconf/nconf to find the .in files
-export srctree=$(CT_LIB_DIR)
-
-.PHONY: menuconfig nconfig oldconfig savedefconfig defconfig
-
-menuconfig:
- @$(CT_ECHO) " CONF $@"
- $(SILENT)$(MCONF) $(KCONFIG_TOP)
-
-nconfig:
- @$(CT_ECHO) " CONF $@"
- $(SILENT)$(NCONF) $(KCONFIG_TOP)
-
-oldconfig: .config
- @$(CT_ECHO) " CONF $@"
- $(SILENT)$(sed) -i -r -f $(CT_LIB_DIR)/scripts/upgrade.sed $<
- $(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
-
-savedefconfig: .config
- @$(CT_ECHO) ' GEN $@'
- $(SILENT)$(CONF) --savedefconfig=$${DEFCONFIG-defconfig} $(KCONFIG_TOP)
-
-defconfig:
- @$(CT_ECHO) ' CONF $@'
- $(SILENT)$(CONF) --defconfig=$${DEFCONFIG-defconfig} $(KCONFIG_TOP)
-
-# Always be silent, the stdout an be >.config
-extractconfig:
- @$(awk) 'BEGIN { dump=0; } \
- dump==1 && $$0~/^\[.....\][[:space:]]+(# )?CT_/ { \
- $$1=""; \
- gsub("^[[:space:]]",""); \
- print; \
- } \
- $$0~/Dumping user-supplied crosstool-NG configuration: done in/ { \
- dump=0; \
- } \
- $$0~/Dumping user-supplied crosstool-NG configuration$$/ { \
- dump=1; \
- }'
-
-#-----------------------------------------------------------
-# Help text used by make help
-
-help-config::
- @echo ' menuconfig - Update current config using a menu based program'
- @echo ' nconfig - Update current config using a menu based program'
- @echo ' oldconfig - Update current config using a provided .config as base'
- @echo ' extractconfig - Extract to stdout the configuration items from a'
- @echo ' build.log file piped to stdin'
- @echo ' savedefconfig - Save current config as a mini-defconfig to $${DEFCONFIG}'
- @echo ' defconfig - Update config from a mini-defconfig $${DEFCONFIG}'
- @echo ' (default: $${DEFCONFIG}=./defconfig)'