Kconfig and arch/Kconfig: Add some protection so that you cannot select an architecture-specific header file if the architecture does not provide the header file.
This commit is contained in:
parent
20f4e05b09
commit
a5a7fe2d8a
32
Kconfig
32
Kconfig
@ -355,9 +355,17 @@ endmenu # Binary Output Formats
|
|||||||
|
|
||||||
menu "Customize Header Files"
|
menu "Customize Header Files"
|
||||||
|
|
||||||
|
config ARCH_HAVE_STDINT_H
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Selected by architecture specific logic if the architecture provides
|
||||||
|
a stdint.h header file.
|
||||||
|
|
||||||
config ARCH_STDINT_H
|
config ARCH_STDINT_H
|
||||||
bool "stdint.h"
|
bool "stdint.h"
|
||||||
default n
|
default n
|
||||||
|
depends on ARCH_HAVE_STDINT_H
|
||||||
---help---
|
---help---
|
||||||
The stdint.h header file can be found at nuttx/include/stdint.h.
|
The stdint.h header file can be found at nuttx/include/stdint.h.
|
||||||
However, that header includes logic to redirect the inclusion of an
|
However, that header includes logic to redirect the inclusion of an
|
||||||
@ -372,9 +380,17 @@ config ARCH_STDINT_H
|
|||||||
Recall that that include path, include/arch, is a symbolic link and
|
Recall that that include path, include/arch, is a symbolic link and
|
||||||
will refer to a version of stdint.h at nuttx/arch/<architecture>/include/stdint.h.
|
will refer to a version of stdint.h at nuttx/arch/<architecture>/include/stdint.h.
|
||||||
|
|
||||||
|
config ARCH_HAVE_STDBOOL_H
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Selected by architecture specific logic if the architecture provides
|
||||||
|
a stdbool.h header file.
|
||||||
|
|
||||||
config ARCH_STDBOOL_H
|
config ARCH_STDBOOL_H
|
||||||
bool "stdbool.h"
|
bool "stdbool.h"
|
||||||
default n
|
default n
|
||||||
|
depends on ARCH_HAVE_STDBOOL_H
|
||||||
---help---
|
---help---
|
||||||
The stdbool.h header file can be found at nuttx/include/stdbool.h.
|
The stdbool.h header file can be found at nuttx/include/stdbool.h.
|
||||||
However, that header includes logic to redirect the inclusion of an
|
However, that header includes logic to redirect the inclusion of an
|
||||||
@ -389,8 +405,16 @@ config ARCH_STDBOOL_H
|
|||||||
Recall that that include path, include/arch, is a symbolic link and
|
Recall that that include path, include/arch, is a symbolic link and
|
||||||
will refer to a version of stdbool.h at nuttx/arch/<architecture>/include/stdbool.h.
|
will refer to a version of stdbool.h at nuttx/arch/<architecture>/include/stdbool.h.
|
||||||
|
|
||||||
|
config ARCH_HAVE_MATH_H
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Selected by architecture specific logic if the architecture provides
|
||||||
|
a math.h header file.
|
||||||
|
|
||||||
config ARCH_MATH_H
|
config ARCH_MATH_H
|
||||||
bool "math.h"
|
bool "math.h"
|
||||||
|
depends on ARCH_HAVE_MATH_H
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
There is also a re-directing version of math.h in the source tree.
|
There is also a re-directing version of math.h in the source tree.
|
||||||
@ -421,8 +445,16 @@ config ARCH_FLOAT_H
|
|||||||
there is no assurance that the settings in this float.h are actually
|
there is no assurance that the settings in this float.h are actually
|
||||||
correct for your platform!
|
correct for your platform!
|
||||||
|
|
||||||
|
config ARCH_HAVE_STDARG_H
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Selected by architecture specific logic if the architecture provides
|
||||||
|
a math.h header file.
|
||||||
|
|
||||||
config ARCH_STDARG_H
|
config ARCH_STDARG_H
|
||||||
bool "stdarg.h"
|
bool "stdarg.h"
|
||||||
|
depends on ARCH_HAVE_STDARG_H
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
There is a redirecting version of stdarg.h in the source tree. It
|
There is a redirecting version of stdarg.h in the source tree. It
|
||||||
|
@ -14,6 +14,7 @@ config ARCH_ARM
|
|||||||
select ARCH_HAVE_VFORK
|
select ARCH_HAVE_VFORK
|
||||||
select ARCH_HAVE_STACKCHECK
|
select ARCH_HAVE_STACKCHECK
|
||||||
select ARCH_HAVE_CUSTOMOPT
|
select ARCH_HAVE_CUSTOMOPT
|
||||||
|
select ARCH_HAVE_STDARG_H
|
||||||
---help---
|
---help---
|
||||||
The ARM architectures
|
The ARM architectures
|
||||||
|
|
||||||
@ -43,6 +44,7 @@ config ARCH_MISOC
|
|||||||
bool "MISOC"
|
bool "MISOC"
|
||||||
select ARCH_HAVE_INTERRUPTSTACK
|
select ARCH_HAVE_INTERRUPTSTACK
|
||||||
select ARCH_HAVE_CUSTOMOPT
|
select ARCH_HAVE_CUSTOMOPT
|
||||||
|
select ARCH_HAVE_STDARG_H
|
||||||
---help---
|
---help---
|
||||||
MISOC
|
MISOC
|
||||||
|
|
||||||
@ -57,6 +59,7 @@ config ARCH_RISCV
|
|||||||
bool "RISC-V"
|
bool "RISC-V"
|
||||||
select ARCH_HAVE_INTERRUPTSTACK
|
select ARCH_HAVE_INTERRUPTSTACK
|
||||||
select ARCH_HAVE_CUSTOMOPT
|
select ARCH_HAVE_CUSTOMOPT
|
||||||
|
select ARCH_HAVE_STDARG_H
|
||||||
---help---
|
---help---
|
||||||
RISC-V 32 and 64-bit RV32 / RV64 architectures.
|
RISC-V 32 and 64-bit RV32 / RV64 architectures.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user