tools/: Add initialconfig.c so that perhaps in the future we will be able to use this to generate a new configuration from scratch (rather than having to derive new configurations from existing configurations)

This commit is contained in:
Gregory Nutt
2017-06-02 10:17:30 -06:00
parent ff2b54a5e0
commit 624bd0b9e9
4 changed files with 868 additions and 3 deletions
+13 -2
View File
@@ -1,7 +1,7 @@
############################################################################
# Makefile.host
#
# Copyright (C) 2007, 2008, 2011-2012, 2015 Gregory Nutt. All rights reserved.
# Copyright (C) 2007, 2008, 2011-2012, 2015, 2017 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@@ -70,7 +70,7 @@ endif
all: b16$(HOSTEXEEXT) bdf-converter$(HOSTEXEEXT) cmpconfig$(HOSTEXEEXT) \
configure$(HOSTEXEEXT) mkconfig$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT) \
mksymtab$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkversion$(HOSTEXEEXT) \
cnvwindeps$(HOSTEXEEXT) nxstyle$(HOSTEXEEXT)
cnvwindeps$(HOSTEXEEXT) nxstyle$(HOSTEXEEXT) initialconfig$(HOSTEXEEXT)
default: mkconfig$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT) \
cnvwindeps$(HOSTEXEEXT)
@@ -171,6 +171,17 @@ ifdef HOSTEXEEXT
nxstyle: nxstyle$(HOSTEXEEXT)
endif
# initialconfig - Create a barebones .config file sufficient only for
# instantiating the symbolic links necesary to do a real configuration
# from scratch.
initialconfig$(HOSTEXEEXT): initialconfig.c
$(Q) $(HOSTCC) $(HOSTCFLAGS) -o initialconfig$(HOSTEXEEXT) initialconfig.c
ifdef HOSTEXEEXT
initialconfig: initialconfig$(HOSTEXEEXT)
endif
# cnvwindeps - Convert dependences generated by a Windows native toolchain
# for use in a Cygwin/POSIX build environment
+9
View File
@@ -82,6 +82,15 @@ cmdconfig.c
This C file can be used to build a utility for comparing two NuttX
configuration files.
initialconfig.c
---------------
This is a C file that can be used create an initial configuration.
This permits creating a new configuration from scratch, without
relying on any existing board configuration in place. This utility
will create a barebones .config file sufficient only for
instantiating the symbolic links necesary to do a real configuration.
kconfig2html.c
--------------
+1 -1
View File
@@ -210,7 +210,7 @@ void parse_file(FILE *stream, struct variable_s **list)
parse_line(ptr, &varname, &varval);
/* If the variable has not value (or the special value 'n'), then
/* If the variable has no value (or the special value 'n'), then
* ignore it.
*/
File diff suppressed because it is too large Load Diff