diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-07 11:46:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-07 11:46:19 -0600 |
commit | 3c1ac20ddbe5c1743e0505b9983b00f35f1fcc36 (patch) | |
tree | 42813d6b03f8941b30d02a166f512e38527aa2a5 /misc/buildroot/toolchain/kconfig-frontends | |
parent | 6d5fc053bfffeba6cd2b2b9b133b1828e2f7df12 (diff) | |
download | nuttx-3c1ac20ddbe5c1743e0505b9983b00f35f1fcc36.tar.gz nuttx-3c1ac20ddbe5c1743e0505b9983b00f35f1fcc36.tar.bz2 nuttx-3c1ac20ddbe5c1743e0505b9983b00f35f1fcc36.zip |
Add support for the kconfig-frontends tools
Diffstat (limited to 'misc/buildroot/toolchain/kconfig-frontends')
-rw-r--r-- | misc/buildroot/toolchain/kconfig-frontends/Config.in | 34 | ||||
-rw-r--r-- | misc/buildroot/toolchain/kconfig-frontends/kconfig-frontends.mk | 86 |
2 files changed, 120 insertions, 0 deletions
diff --git a/misc/buildroot/toolchain/kconfig-frontends/Config.in b/misc/buildroot/toolchain/kconfig-frontends/Config.in new file mode 100644 index 000000000..034051cdb --- /dev/null +++ b/misc/buildroot/toolchain/kconfig-frontends/Config.in @@ -0,0 +1,34 @@ +config BR2_PACKAGE_KCONFIG_FRONTENDS + bool "Build kconfig-frontends" + default y + help + The kconfig-frontends are required to configure NuttX. See + http://ymorin.is-a-geek.org/projects/kconfig-frontends + + NOTE: You must have the ncurses library installed on your computer + +if BR2_PACKAGE_KCONFIG_FRONTENDS + +config BR2_NCONF_FRONTEND + bool "Build nconfig frontend" + default n + help + NOTE: You must have the ncurses library installed on your computer + +config BR2_GCONF_FRONTEND + bool "Build GTK gconf frontend" + default n + help + NOTE: You must have the QTK developer library installed on your computer + +config BR2_QCONF_FRONTEND + bool "Build Qt qconfig frontend" + default n + help + NOTE: You must have the QTK developer library installed on your computer + +config BR2_KCONFIG_FRONTENDS_VERSION + string + default "3.12.0.0" + +endif # BR2_PACKAGE_KCONFIG_FRONTENDS diff --git a/misc/buildroot/toolchain/kconfig-frontends/kconfig-frontends.mk b/misc/buildroot/toolchain/kconfig-frontends/kconfig-frontends.mk new file mode 100644 index 000000000..2aedc1627 --- /dev/null +++ b/misc/buildroot/toolchain/kconfig-frontends/kconfig-frontends.mk @@ -0,0 +1,86 @@ +###################################################################### +# +# kconfig-frontends +# +###################################################################### + +KCONFIGS_VERSION:=$(strip $(subst ",, $(BR2_KCONFIG_FRONTENDS_VERSION))) +KCONFIGS_SOURCE:=kconfig-frontends-$(KCONFIGS_VERSION).tar.bz2 +KCONFIGS_BUILD:=$(TOOL_BUILD_DIR)/kconfig-frontends-$(KCONFIGS_VERSION) +KCONFIGS_SITE:=http://ymorin.is-a-geek.org/download/kconfig-frontends +KCONFIGS_CAT:=$(BZCAT) + +ifeq ($(strip $(BR2_NCONF_FRONTEND)),y) +KCONFIGS_ENABLE_NCONF:=--enable-nconf +else +KCONFIGS_ENABLE_NCONF:=--disable-nconf +endif + +ifeq ($(strip $(BR2_GCONF_FRONTEND)),y) +KCONFIGS_ENABLE_GCONF:=--enable-gconf +else +KCONFIGS_ENABLE_GCONF:=--disable-gconf +endif + +ifeq ($(strip $(BR2_QCONF_FRONTEND)),y) +KCONFIGS_ENABLE_QCONF:=--enable-qconf +else +KCONFIGS_ENABLE_QCONF:=--disable-qconf +endif + +$(DL_DIR)/$(KCONFIGS_SOURCE): + mkdir -p $(DL_DIR) + $(WGET) -P $(DL_DIR) $(KCONFIGS_SITE)/$(KCONFIGS_SOURCE) + +$(KCONFIGS_BUILD)/.unpacked : $(DL_DIR)/$(KCONFIGS_SOURCE) + $(BZCAT) $(DL_DIR)/$(KCONFIGS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - + @#toolchain/patch-kernel.sh $(KCONFIGS_BUILD) toolchain/kconfig-frontends \*.patch + touch $@ + +$(KCONFIGS_BUILD)/.configured : $(KCONFIGS_BUILD)/.unpacked + (cd $(KCONFIGS_BUILD); \ + CC="$(HOSTCC)" \ + ./configure \ + --enable-mconf \ + --disable-shared \ + --enable-static \ + --disable-utils \ + $(KCONFIGS_ENABLE_NCONF) \ + $(KCONFIGS_ENABLE_GCONF) \ + $(KCONFIGS_ENABLE_QCONF) \ + --prefix=$(STAGING_DIR) \ + --build=$(GNU_HOST_NAME) \ + --host=$(GNU_HOST_NAME) \ + --disable-werror); + touch $@ + +$(KCONFIGS_BUILD)/.compiled : $(KCONFIGS_BUILD)/.configured + $(MAKE) -C $(KCONFIGS_BUILD) + touch $@ + +$(KCONFIGS_BUILD)/.installed: $(KCONFIGS_BUILD)/.compiled + $(MAKE) -C $(KCONFIGS_BUILD) install + touch $@ + +kconfig-frontends: $(KCONFIGS_BUILD)/.installed + +kconfig-frontends-source: + +kconfig-frontends-clean: + rm -f $(STAGING_DIR)/bin/kconfig-conf + rm -f $(STAGING_DIR)/bin/kconfig-mconf + rm -f $(STAGING_DIR)/bin/kconfig-nconf + rm -f $(STAGING_DIR)/bin/kconfig-gconf + rm -f $(STAGING_DIR)/bin/kconfig-qconf + (if [ -d $(KCONFIGS_BUILD) ]; then $(MAKE) -C $(KCONFIGS_BUILD) clean; fi) + rm -f $(KCONFIGS_BUILD)/.installed + rm -f $(KCONFIGS_BUILD)/.compiled + rm -f $(KCONFIGS_BUILD)/.configured + rm -f $(KCONFIGS_BUILD)/.unpacked + +kconfig-frontends-dirclean: + rm -rf $(KCONFIGS_BUILD) + +ifeq ($(strip $(BR2_PACKAGE_KCONFIG_FRONTENDS)),y) +TARGETS+=kconfig-frontends +endif |