Build system: Fix CONFIG_BUILD_KERNEL logic directories that have ubin and kbin subdirectories. Conditional logic was fine for CONFIG_BUILD_FLAT and CONFIG_BUILD_PROTECTED but generated useless dependencies if CONFIG_BUILD_KERNEL.

This commit is contained in:
Gregory Nutt 2017-11-15 11:39:30 -06:00
parent 1fc3b47565
commit 37ca491be6
3 changed files with 47 additions and 28 deletions

View File

@ -949,12 +949,20 @@ Where <subdir> is one of the following:
2015-04-30
Appears to be fully functional.
nx
--
This a simple test using the graphic example at apps/example/nx. This
configuration illustrates the use of the LCD with the lower performance
SPI interface.
nxwm
----
This is a special configuration setup for the NxWM window manager
UnitTest.
NOTES:
1. The NxWM window manager can be found here:
nuttx-code/NxWidgets/nxwm
@ -972,12 +980,15 @@ Where <subdir> is one of the following:
1. Install the nxwm configuration
$ cd ~/nuttx-code/nuttx/tools
$ ./configure.sh stm32f429i-disco/nxwm
$ cd ~/nuttx-code/nuttx
$ tools/configure.sh -l stm32f429i-disco/nxwm
When the -l option on configure.sh indicates that you are
configuring for a Linux host build environment. Try
'tools/configure.sh -h' for other options.
2. Make the build context (only)
$ cd ..
$ make context
...
@ -986,8 +997,8 @@ Where <subdir> is one of the following:
$ cd ~/nuttx-code/NxWidgets
$ tools/install.sh ~/nuttx-code/apps nxwm
Creating symbolic link
- To ~/nuttx-code/NxWidgets/UnitTests/nxwm
- At ~/nuttx-code/apps/external
- To ~/nuttx-code/NxWidgets/UnitTests/nxwm
- At ~/nuttx-code/apps/external
4. Build the NxWidgets library
@ -1006,19 +1017,25 @@ Where <subdir> is one of the following:
$ cd ~/nuttx-code/nuttx
$ make
3. Performance is not so good in this example configuration because it
uses the slower SPI interfaces.
STATUS:
17-01-08: There are instabilities in this configuration that make it
not usable on this platform. While the equivalent configuration works
on other platforms, this one does not: The calculator display does
not form properly. There are fails in the NxTerm display, usually around
the point where the display should scroll up.
not usable on this platform. While the equivalent configuration works
on other platforms, this one does not: The calculator display does
not form properly. There are fails in the NxTerm display, usually
around the point where the display should scroll up.
Update: With all optimizations disabled, the issue seems to go away.
So this is most likely due to using high levels of optimization with a
bleeding edge GCC toolchain.
Update: With all optimizations disabled, the issue seems to go away.
So this is most likely due to using high levels of optimization with a
bleeding edge GCC toolchain.
17-11-15: The original configuration used the slower SPI LCD interface.
The configuration was converted to use the high performance LTDC frame
buffer interface. Performance is now excellent and I see none of the
instabilities mentioned above even at high levels of optimization.
The difficulty that I experienced was touching the tiny icons on the
menus. The touscreen controller (along with my fat fingers) does not
appear to have sufficient precision to work in this way. Larger icons
would likely make the interface easier to use.
usbnsh:
------

View File

@ -54,7 +54,7 @@ CONFIG_START_MONTH=12
CONFIG_START_YEAR=2011
CONFIG_STM32_CCMEXCLUDE=y
CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y
CONFIG_STM32_DMA2D_NLAYERS=4
CONFIG_STM32_DMA2D_NLAYERS=1
CONFIG_STM32_DMA2D=y
CONFIG_STM32_FSMC_SRAM=y
CONFIG_STM32_FSMC=y

View File

@ -1,6 +1,4 @@
# CONFIG_ARCH_FPU is not set
# CONFIG_NSH_DISABLE_IFCONFIG is not set
# CONFIG_NSH_DISABLE_PS is not set
# CONFIG_NX_DISABLE_16BPP is not set
# CONFIG_NXTK_DEFAULT_BORDERCOLORS is not set
# CONFIG_STM32_FLASH_PREFETCH is not set
@ -22,20 +20,17 @@ CONFIG_DISABLE_POLL=y
CONFIG_FAT_LCNAMES=y
CONFIG_FAT_LFN=y
CONFIG_FS_FAT=y
CONFIG_FS_PROCFS=y
CONFIG_HAVE_CXX=y
CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_HEAP2_BASE=0xD0000000
CONFIG_HEAP2_SIZE=8388608
CONFIG_I2C_POLLED=y
CONFIG_HEAP2_BASE=0xd0000000
CONFIG_HEAP2_SIZE=8081408
CONFIG_INPUT_STMPE811=y
CONFIG_INPUT=y
CONFIG_INTELHEX_BINARY=y
CONFIG_LCD_ILI9341_IFACE0=y
CONFIG_LCD_ILI9341=y
CONFIG_LCD=y
CONFIG_MAX_TASKS=16
CONFIG_MAX_WDOGPARMS=2
CONFIG_MM_REGIONS=3
CONFIG_MM_REGIONS=2
CONFIG_MQ_MAXMSGSIZE=64
CONFIG_NFILE_DESCRIPTORS=8
CONFIG_NFILE_STREAMS=8
@ -69,10 +64,12 @@ CONFIG_NXWIDGETS_DEFAULT_SHADOWEDGECOLOR=0x21e9
CONFIG_NXWIDGETS_DEFAULT_SHINEEDGECOLOR=0xffdf
CONFIG_NXWIDGETS_SIZEOFCHAR=1
CONFIG_NXWIDGETS=y
CONFIG_NXWM_CALIBRATION_MESSAGES=y
CONFIG_NXWM_CALIBRATION_AVERAGE=y
CONFIG_NXWM_CALIBRATION_NSAMPLES=2
CONFIG_NXWM_HEXCALCULATOR_CUSTOM_FONTID=y
CONFIG_NXWM_HEXCALCULATOR_FONTID=5
CONFIG_NXWM_KEYBOARD=y
CONFIG_NXWM_STARTWINDOW_MQNAME="nxwm"
CONFIG_NXWM_TASKBAR_LEFT=y
CONFIG_NXWM_TASKBAR_VSPACING=4
CONFIG_NXWM_TOUCHSCREEN_LISTENERSTACK=1596
@ -92,15 +89,20 @@ CONFIG_SDCLONE_DISABLE=y
CONFIG_START_DAY=6
CONFIG_START_MONTH=12
CONFIG_START_YEAR=2011
CONFIG_STM32_CCMEXCLUDE=y
CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y
CONFIG_STM32_DMA2D_NLAYERS=1
CONFIG_STM32_DMA2D=y
CONFIG_STM32_FSMC_SRAM=y
CONFIG_STM32_FSMC=y
CONFIG_STM32_I2C3=y
CONFIG_STM32_JTAG_SW_ENABLE=y
CONFIG_STM32_LTDC_FB_BASE=0xd07b5000
CONFIG_STM32_LTDC_FB_SIZE=307200
CONFIG_STM32_LTDC_INTERFACE=y
CONFIG_STM32_LTDC=y
CONFIG_STM32_PWR=y
CONFIG_STM32_USART1=y
CONFIG_STM32F429I_DISCO_ILI9341_SPIBITS16=y
CONFIG_STM32F429I_DISCO_ILI9341_SPIFREQUENCY=20000000
CONFIG_STM32F429I_DISCO_ILI9341=y
CONFIG_STMPE811_ACTIVELOW=y
CONFIG_STMPE811_EDGE=y