mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +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
|
||||
#
|
||||
# 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
|
||||
|
||||
|
||||
@@ -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
@@ -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
Reference in New Issue
Block a user