mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
+13
-2
@@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# Makefile.host
|
# 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>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -70,7 +70,7 @@ endif
|
|||||||
all: b16$(HOSTEXEEXT) bdf-converter$(HOSTEXEEXT) cmpconfig$(HOSTEXEEXT) \
|
all: b16$(HOSTEXEEXT) bdf-converter$(HOSTEXEEXT) cmpconfig$(HOSTEXEEXT) \
|
||||||
configure$(HOSTEXEEXT) mkconfig$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT) \
|
configure$(HOSTEXEEXT) mkconfig$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT) \
|
||||||
mksymtab$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkversion$(HOSTEXEEXT) \
|
mksymtab$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkversion$(HOSTEXEEXT) \
|
||||||
cnvwindeps$(HOSTEXEEXT) nxstyle$(HOSTEXEEXT)
|
cnvwindeps$(HOSTEXEEXT) nxstyle$(HOSTEXEEXT) initialconfig$(HOSTEXEEXT)
|
||||||
default: mkconfig$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT) \
|
default: mkconfig$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT) \
|
||||||
cnvwindeps$(HOSTEXEEXT)
|
cnvwindeps$(HOSTEXEEXT)
|
||||||
|
|
||||||
@@ -171,6 +171,17 @@ ifdef HOSTEXEEXT
|
|||||||
nxstyle: nxstyle$(HOSTEXEEXT)
|
nxstyle: nxstyle$(HOSTEXEEXT)
|
||||||
endif
|
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
|
# cnvwindeps - Convert dependences generated by a Windows native toolchain
|
||||||
# for use in a Cygwin/POSIX build environment
|
# for use in a Cygwin/POSIX build environment
|
||||||
|
|
||||||
|
|||||||
@@ -82,6 +82,15 @@ cmdconfig.c
|
|||||||
This C file can be used to build a utility for comparing two NuttX
|
This C file can be used to build a utility for comparing two NuttX
|
||||||
configuration files.
|
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
|
kconfig2html.c
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -210,7 +210,7 @@ void parse_file(FILE *stream, struct variable_s **list)
|
|||||||
|
|
||||||
parse_line(ptr, &varname, &varval);
|
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.
|
* ignore it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user